This repository contains the sources files for the Mahuika support documentation.
Rendered pages are visible at https://docs.nesi.org.nz.
The repository is organised using the following folders:
checks: scripts intended to be run by CI,docs: markdown files, structure determines categories and sections1,docs/assets: non-template related files, e.g. images,overrides: theme overides or extensions for page templates.overrides/partials: Overrides and extensions for sub components.
Following pages contain information to help maintain the documentation:
- See contributing (local version), to learn how to you can contribute.
- See formatting, for examples of markdown syntax.
- See writing principles (local version), for what to write, whether to write it, and how much.
- See create a new page, for page structure, metadata, naming and tags.
- See macros, for
mkdocs-macros-pluginenvironment. - See checks, for information on quality assurance tests.
- See workflows, for information on CI workflows.
Every pull request is built and deployed to a preview site by demo_deploy.yml. A comment on the pull request links to the preview and to each changed page.
Previews are at https://callumwalley.github.io/mkdocs-demo-deploy/nesi/support-docs/NAME-OF-BRANCH,
and all of them are listed at https://callumwalley.github.io/mkdocs-demo-deploy.
We are using the mkdocs material theme.
The site uses Google analytics. You will need to ask a google workspace admin to add you to the project.
Occasionally you may want to update the dependencies used by mkdocs to build and lint this site.
Make a new branch and
pip-compile --allow-unsafe > requirements.txt
pip install -r requirements.txtMake sure to test it on a GitHub runner (not just locally), as this is the actual build environment. To run locally:
mkdocs serve -cMigration of the Zendesk documentation is done using our migration pipeline (NeSI internal GitLab).
Any one off filters (e.g. don't need to be checked every time, just when converting from ZD) should go there.
Footnotes
-
A section or category can be replaced by an
index.mdfile, this will replace the default nav with a page. ↩