dcmnttn/readme.md

67 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2022-11-08 15:18:03 +01:00
# Introduction
Call ```sphinx-quickstart``` to setup the project.
You can follow this guide to install Sphinx.
```
https://www.sphinx-doc.org/en/master/usage/installation.html
```
You can follow this guid to get started with Sphinx.
```
https://www.sphinx-doc.org/en/master/usage/quickstart.html#
```
# Build Documentation
## Python Dependencies
In order to generate the documentation,
first create a Python virtual environment using the
`venv` module included in Python like this.
2022-11-08 15:21:09 +01:00
* Create a virtual Python environment in the directory `venv` like this.
2022-11-08 15:18:03 +01:00
```
python3 -m venv venv
```
2022-11-08 15:21:09 +01:00
* Activate the virtual Python environment like this.
2022-11-08 15:18:03 +01:00
```
source venv/bin/activate
```
2022-11-08 15:21:09 +01:00
* Install the packages listed in [requirements.txt](./requirements.txt) using `pip` like this.
2022-11-08 15:18:03 +01:00
```
pip install -r requirements.txt
```
## Running Generator via Make
The top level directory contains a Makefile, for generation with all output formats use
`````
2022-11-08 15:31:40 +01:00
make html
2022-11-08 15:18:03 +01:00
`````
The output files of the final handbook can be found in the subfolder `./build`.
All generated intermediate artifacts and the final output files can be found in the `./build` subfolder.
### Clean up
1. Deactivate the virtual Python environment: ```deactivate```
2. Clean up the build sources: ```make clean``` and ```rm -r build bundle```
# File System
* `build`: build directory
* `make.bat`:
* `Makefile`:
* `readme.md`: this file
* `source`: source directory