-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
111 changed files
with
2,055 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.next/ | ||
public/ | ||
node_modules/ | ||
/npm-debug.log | ||
.DS_Store | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": ["*.html"], | ||
"options": { | ||
"parser": "go-template", | ||
"goTemplateBracketSpacing": true, | ||
"bracketSameLine": true | ||
} | ||
}, | ||
{ | ||
"files": ["*.js", "*.ts"], | ||
"options": { | ||
"useTabs": true, | ||
"printWidth": 120, | ||
"singleQuote": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,57 @@ | ||
# Prerequisites | ||
- golang | ||
- https://gohugo.io | ||
- https://just.systems/ (optional) | ||
- npm | ||
- node | ||
|
||
|
||
# Setup | ||
```sh | ||
yarn | ||
yarn dev | ||
npm install | ||
``` | ||
[open browser](http://localhost:3000) | ||
|
||
|
||
# Local development | ||
|
||
in a seperate terminal: | ||
## Website | ||
```sh | ||
npx netlify-cms-proxy-server | ||
hugo server | ||
open http://localhost:1313 | ||
``` | ||
|
||
Start the website: | ||
```sh | ||
yarn run dev | ||
## Local admin | ||
Change the toplines in `./admin/config.yaml` to: | ||
|
||
```yaml | ||
local_backend: true | ||
publish_mode: editorial_workflow | ||
site_url: http://localhost:1313 | ||
backend: | ||
name: git-gateway | ||
branch: main | ||
``` | ||
Run the admin | ||
```sh | ||
just admin | ||
open http://localhost:8000 | ||
just admin-stop #when done | ||
|
||
# equivalent to: | ||
|
||
npx netlify-cms-proxy-server | ||
python3 -m http.server --directory ./admin | ||
``` | ||
http://localhost:3000/admin/index.html | ||
``` | ||
or | ||
|
||
## Test production version | ||
```sh | ||
cd public/admin | ||
python -m http.server | ||
``` | ||
just prod-test | ||
open http://localhost:8000 | ||
|
||
# equivalent to: | ||
|
||
python3 serve.py | ||
``` | ||
|
Oops, something went wrong.