Skip to content

Commit

Permalink
docs: Prepare for versioned documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Oct 3, 2024
1 parent 885613b commit 351e676
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ insert_final_newline = true

[*.md]
indent_size = 4

[Makefile]
indent_style = tab
2 changes: 2 additions & 0 deletions packages/documentation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.venv/
public/
9 changes: 9 additions & 0 deletions packages/documentation/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.venv:
python3 -m venv .venv
. .venv/bin/activate; pip install mkdocs-material

docs: .venv
. .venv/bin/activate; mkdocs build --config-file mkdocs.yml --site-dir public

serve: .venv
. .venv/bin/activate; mkdocs serve --config-file mkdocs.yml
4 changes: 2 additions & 2 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"license": "MIT",
"author": "Oliver Salzburg <[email protected]>",
"scripts": {
"docs:build": ".scripts/build.sh",
"docs:build": "make docs",
"docs:nsd": "nsd --cwd=$INIT_CWD --docs-location=\"packages/documentation/docs/reference/Repository Scripts/\"",
"docs:serve": ".scripts/serve.sh"
"docs:serve": "make serve"
},
"devDependencies": {
"node-scripts-docs": "1.0.4"
Expand Down

0 comments on commit 351e676

Please sign in to comment.