The Altinn docs site is generated from markdown using the Hugo static site generator. We use YAML as front matter.
- Download and install Git and clone the docs repository to a local folder:
git clone https://github.com/altinn/docs
- We recommend downloading and using visual studio code with this extension for editing markdown.
- Download Hugo for your platform, and place the executable in the docs-folder.
- Open the docs repo-folder in visual studio code (or another editor)
- Run
hugo server --navigateToChanged
or click "Altinn docs" (Ctrl-Shift-D) in vs code. This generates the site and opens Chrome at https://loalhost:1313/docs/. - Edit and save a file in the
content
-folder to get a new local build of the site refreshed in your browser.
Whenever changes are pushed to the docs-repository, an automatic deploy is updating https://altinn.github.io/docs/
If you don't have write access to the docs-repo, you need to create a fork and submit a pull request.