This repo contains the source for the Altinn 3 documentation.
There are two ways to edit and test your changes to the docs:
See CONTRIBUTING for even more details.
- Install the required software (Git, Hugo, Node.js and Visual Studio Code)
- Clone the repo
git clone https://github.com/altinn/altinn-studio-docs
- Navigate to repo folder, install the npm dependencies (Designsystemet) and run Hugo
Search does not work with
npm ci hugo server --navigateToChanged
hugo serveralone, because the search index (Pagefind) is built in a separate step. To test search locally, build the site topublic/and generate the index:hugo npx -y pagefind --site "public"hugo serverthen serves the index frompublic/pagefind/. The index is a snapshot, so run both commands again to include new or changed pages. - The documentation can now be opened in browser at http://localhost:1313/
- Edit and save files to get the site refreshed in your browser, so you can test your changes
- When happy, push your changes