2022-07-15 13:27:16 +01:00
## Building the docs
You don't need to build and test the docs as long as you make sure the syntax is correct. But in case you do want to build the docs, feel free to do so.
2023-01-26 08:09:02 +00:00
```sh
# Make sure you're in the same directory as this README
# From the root of the Akkoma repo, you'll need to do
cd docs
2022-07-15 13:27:16 +01:00
2023-01-26 08:09:02 +00:00
# Optionally use a virtual environment
python3 -m venv venv
source venv/bin/activate
2022-07-15 13:27:16 +01:00
2023-01-26 08:09:02 +00:00
# Install dependencies
pip install -r requirements.txt
2022-07-15 13:27:16 +01:00
2023-01-26 08:09:02 +00:00
# Run an http server who rebuilds when files change
# Accessable on http://127.0.0.1:8000
mkdocs serve
2022-07-15 13:27:16 +01:00
2023-01-26 08:09:02 +00:00
# Build the docs
# The static html pages will have been created in the folder "site"
# You can serve them from a server by pointing your server software (nginx, apache...) to this location
mkdocs build
2022-07-15 13:27:16 +01:00
2023-01-26 08:09:02 +00:00
# To get out of the virtual environment, you do
2023-02-02 13:37:45 +00:00
deactivate
2022-07-15 13:27:16 +01:00
```