This repo is the source for the official PiVPN Documentation.
PiVPN Documentation is powered by MKDocs-Material,
Please refer to MKDocs Documentation and MKDocs-Material Documentation for more detailed information for information on how to install or more detailed documentation
To add a new link on the navigation panel you need to edit the mkdocs.yml
file in the root of the repo. There is a guide for building the navbar at mkdocs wiki
To add a new document
- Navigate to the
docs/
directory - Create the file using a URL friendly filename.
EG.
docs/url-friendly.md
ordocs/guides/url-friendly.md
- Edit your document using Markdown, there are loads of resources available for the correct syntax.
When working on this repo, it is advised that you review your changes locally before committing them. The mkdocs serve
command can be used to live preview your changes (as you type) on your local machine.
- Install MKDocs-Material
- Fork the repo
- clone it locally with
git clone https://github.com/YOUR-USERNAME/docs
- run
mkdocs serve
- open browser, and access
localhost:8000
- Make your changes and verify them live while you do them
- Commit code
git commit -a
, make sure you add a nice message to your commit - Push code to your fork
git push origin master
- Make Pull Request
when commiting changes, use Angular commit message format.
Once changes are merged to master branch, CI Pipeline will run and take care of everything. It may take up to 24h until changes are visible on live documentation website.