User documentation for the Grassroots services, the Field Trials system and the mobile app.
The pages are Markdown files in services/ and mobile_app/. They are built into a website in the Read the Docs style using MkDocs.
python3 -m venv venv
venv/bin/pip install -r requirements.txt
venv/bin/mkdocs serve # preview at http://127.0.0.1:8000, reloads as you edit
venv/bin/mkdocs build # writes the static site to site/
- Add the Markdown file under
services/ormobile_app/, next to related pages. Put its images in theimages/folder beside it. - Add it to the
navsection ofmkdocs.ymlso that it appears in the sidebar. - Link to other pages with relative paths to their
.mdfiles, e.g.[Submitting Plots](submit_plots.md), rather than fullhttps://grassroots.tools/...addresses. - Run
venv/bin/mkdocs build --strictto check for broken links.
docs/ holds the home page, the extra stylesheet and symlinks to services/ and mobile_app/. MkDocs needs the pages in a folder below mkdocs.yml, and the symlinks let them stay where they are.