Editing these docs
The documentation site is a Docusaurus project in docs-site.
Where docs live
Documentation pages are Markdown files in docs-site/docs.
Current folders:
runbooks: longer start-to-finish workflowsorganisers: competition setup and organiser operationsclubs: club admin, gymnast, and testing workflowsjudges: judge portal and scoring workflowslive: public leaderboards and scoreboardssupport: troubleshooting, contact, legal, and docs maintenance
Edit an existing page
- Open the relevant
.mdfile indocs-site/docs. - Edit the front matter at the top if you need to change the page title or description.
- Edit the Markdown content below the front matter.
- Preview the docs locally before publishing.
Example front matter:
---
title: Judge portal
description: How judges use Salto on competition day.
---
Create a new page
- Add a new
.mdfile under the right folder indocs-site/docs. - Add front matter with at least a
title. - Write the page using normal Markdown headings and lists.
- Add the page id to
docs-site/sidebars.tsso it appears in the sidebar.
For example, a file at docs-site/docs/organisers/awards.md would be added to the sidebar as:
'organisers/awards'
Link between pages
Use relative Markdown links:
[Go-live checklist](../organisers/go-live-checklist.md)
Use plain external links for the app:
[Open Salto](https://saltoapp.au)
Preview locally
From the project root, run:
npm run docs:start
Docusaurus will print a local preview URL.
Check the production build
From the project root, run:
npm run docs:build
This catches broken links and build errors before deployment.
Publish
When the docs build passes and the changes are ready, deploy the docs hosting target:
npm run deploy:docs