amFOSS Wiki built with Sphinx using a theme provided by Read the Docs.
Before installing the Sphinx
and readthedocs.org
packages, you will need:
Like on Linux environments, on Microsoft Windows, you need to install:
- the
python
language and itspip
package manager - All the
python
modules requirements with thepip
command GNU Make
tool.git
tool.
To build the HTML website (or any other format supported by Sphinx, like PDF, EPUB or LaTeX), you need to install Sphinx >= 1.3 as well as (for the HTML) the readthedocs.org theme.
Those tools are best installed using pip, Python's module installer. The Python 3 version might be provided (on Linux distros) as pip3
or python3-pip
.
Clone the repository
$ git clone https://gitlab.com/amfoss/wiki.git
$ cd wiki
Create a python3 virtualenv, and activate the environment
$ virtualenv -p python3 venv
$ source venv/bin/activate
You can then run:
$ pip3 install -r requirements.txt
You can then build the HTML documentation from the root folder of this repository with:
$ make html
On Windows, building is still done at the root folder of this repository using the following command (make
linux command is replaced with make.exe
):
$ make.exe html
You can then test the changes live by opening build/html/index.html
in your favorite browser.
Debugging Tip:
- Delete the build cache before building documents if you make changes in the code by running the command
make clean
or using thesphinx-build -E
option.