Our documentation is build with mkdocs. While you can write documentation with every text editor you like, if you want to build the documentation and want to see at how it will look you need to have python3 and mkdocs installed.
All documentation files are found in the
docs/content directory of
the hedgedoc/hedgedoc repo. These files are just normal
markdown files with nothing special about them.
The configuration for mkdocs lies in the
docs folder in a file called
mkdocs.yml. With that file
the theme and menu - among others - can be configured.
Please note: Any new files need to be linked to by other files or put in the navigation,
otherwise the files will be very hard to find on the documentation website.
To build the documentation locally you need to perform the following steps:
- Make sure you have python3 installed.
- Go into the
- Install all the dependencies (E.g. with a venv)
pip install -r requirements.txt
- Start the mkdocs dev server (
mkdocs serve) or build the documentation (
If you run
mkdcs serve a local server will serve the mkdocs files and change the served files as
you write documentation.
The documentation is deployed with mkdocs.
The repository docs.hedgedoc.org is used to deploy the actual website
to github.io. Currently only the
master branch is deployed as it contains the latest release.