Wiki
Wiki copied to clipboard
amFOSS Wiki
amFOSS Wiki
amFOSS Wiki built with Sphinx using a theme provided by Read the Docs.
:minidisc: Installation Instructions
Install requirements on Linux
Before installing the Sphinx and readthedocs.org packages, you will need:
Install requirements on Windows
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.
Installing Sphinx (every platform)
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
Building the HTML website
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 cleanor using thesphinx-build -Eoption.