How to contribute¶
The site is written in plain text files (Markdown) and turned into web pages by MkDocs. You don't need to know HTML.
Where things are¶
studio-docs/
├── mkdocs.yml ← site name, menu (nav) and settings
├── docs/ ← the pages
│ ├── index.md ← home page
│ ├── tools/ ← one .md file per script or add-on
│ ├── practice/ ← how we work: standards, templates, procedures
│ ├── links/ ← shared links (one page, edit the tables)
│ ├── downloads/ ← files people can download (scripts, templates)
│ ├── assets/ ← logo, fonts, images
│ └── stylesheets/studio.css ← colours and fonts
└── site/ ← the generated website (don't edit; it is rebuilt)
Add a page¶
- Copy an existing page, e.g.
docs/tools/simplify-2d.md, and rename it in lower case with hyphens:docs/tools/my-tool.md. -
Write the content. The essentials:
# Page title A paragraph. **Bold**, *italic*, [a link](other-page.md). ## Section - a list item 1. a numbered step  !!! warning "Save first" A boxed note. -
Add it to the menu in
mkdocs.ymlundernav::- Tools: - tools/index.md - Simplify 2D: tools/simplify-2d.md - My tool: tools/my-tool.md -
Add a row to the table on the section's overview page, e.g.
tools/index.md.
Change the structure¶
The menu is only the nav: list in mkdocs.yml. You can rename tabs, reorder them or add new ones (e.g. Templates) there. If you move or rename a page, add a redirect so old links keep working:
plugins:
- redirects:
redirect_maps:
"tools/old-name.md": "tools/new-name.md"
Preview and publish¶
You need Python 3, once per computer:
pip3 install mkdocs-material mkdocs-redirects
Then, inside the studio-docs folder:
mkdocs serve # preview at http://127.0.0.1:8000, updates as you save
mkdocs build # generates the site/ folder
To publish, copy the contents of site/ to the site folder on the Synology (the web shared folder, or the subfolder the site is served from), replacing what is there.
Look and feel¶
Colours and fonts are set in docs/stylesheets/studio.css. The variables at the top (--tm-bg, --tm-text…) change the whole site. The font, Archivo, is stored in docs/assets/fonts/, so the site works without internet.