DEPRECATED: Replaced by https://github.com/Skatteetaten/documentation-docusaurus-template
The project is built using npm from the current Node LTS. Install with nvm;
nvm install --lts
Then run
npm install
to install the dependencies.
npm start
will start a local web server and continuously build the documentation as you make changes. The documentation will be available at http://localhost:8000/documentation
- Make sure you have a branch called gh-pages in your project, this branch will publish the GitHub pages
- Go to repository settings and select gh-pages as source for GitHub pages and click save
To build the documentation pages with gatsby
npm run build
Then use the following command to publish to GitHub pages
npm run deploy
Add a folder in /docs/documentation. Name it properly, as it will be reflected in the url.
In that folder, add an index.md file. At the beginning of that file, add
---
icon: ""
title: ""
description: ""
---
The values will be displayed in the documentation root page. Finally, go wild with markdown.
Icon reference: https://skatteetaten.github.io/frontend-components/#icon
- Update this README.md at will
- Delete
package.lock.json
- Change name
name
anddescription
inpackage.json
- Change
title
,menu items
andpathPrefix
ingatsby-config.js
- run
npm install
- Make changes to the documentation via the contents in the docs folder