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
pythonlanguage and itspippackage manager - All the
pythonmodules requirements with thepipcommand GNU Maketool.gittool.
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 wikiCreate a python3 virtualenv, and activate the environment
$ virtualenv -p python3 venv
$ source venv/bin/activateYou can then run:
$ pip3 install -r requirements.txtYou can then build the HTML documentation from the root folder of this repository with:
$ make htmlOn 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 htmlYou 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 cleanor using thesphinx-build -Eoption.