This repository contains all the user content of KoboToolbox's official documentation, available at https://support.kobotoolbox.org/.
To build and test this documentation locally follow these steps:
Prerequisites:
- Python 3
- git
- npm
- Open terminal
- Clone repository:
git clone https://github.com/kobotoolbox/docs.git
- Change into the cloned directory:
cd docs
- Build the theme if you made any changes to it:
npm install && npm start
- Create a virtual environment:
python -m venv koboenv
- Activate the virtual environment
source koboenv/bin/activate
- Install requirements
pip install -r requirements.txt
- Build the html files:
make html
- Open the index page in the browser:
open _build/html/index.html
Note: if you have Python 3, you might need to use python3
command instead of python
(and pip3
instead of pip
).
Each commit to master
is automatically built into production.
When you already did everything from "Local installation" succesfully and just need to come back and work a bit more on the project, please use dev.sh
script from the root of the project.
We build our theme atop Read The Docs theme by replacing their CSS
with our own (which is a heavily modified copy of theirs).
To develop the theme:
- Install NPM dependencies:
npm install
- Build:
- To watch for style changes use
npm run dev
- To build the styles once use
npm start
Useful links:
- Jinja - templating language used in
.html
files - Official Sphinx documentation
- Alabaster theme source code
- Sphinx source code
- Basic Sphinx theme source code