hedgedoc/docs/content/dev/documentation.md
Philip Molares db9d42e7f3 Docs: Fix dev doc 'documentation'
Fix typos
Rewrite 'Deployment' paragraph. We currently don't and probably won't use Messor Structor.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-03-24 20:32:56 +01:00

1.3 KiB

Documentation

Our documentation is build with mkdocs.

Writing

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.

Building

To build the documentation locally you need to perform the following steps:

  1. Make sure you have python3 installed.
  2. Go into the docs folder.
  3. Install all the dependencies (E.g. with a venv) with pip install -r requirements.txt
  4. Start the mkdocs dev server (mkdocs serve) or build the documentation (mkdocs build).

Deployment

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.