Contributing
Documentation contribution workflow
Documentation source lives in docs/source/ and is built with Sphinx.
Published docs: https://cired.github.io/Res-IRF4/
Local docs setup
pip install -r docs/requirements.txt
Local quality checks
Run from repository root:
cd docs
make clean
sphinx-build -b html -W --keep-going source _build/html
sphinx-build -b linkcheck -W --keep-going source _build/linkcheck
Open _build/html/index.html in your browser to preview.
Adding or editing pages
Write docs pages as
.mdor.rstunderdocs/source/.Add each new page to an appropriate
toctree(usually indocs/source/index.rst).Store images in
docs/source/img/and tabular assets indocs/source/table/.Follow the Documentation Style Guide.
Docs PR checklist
page is linked in navigation (
toctree)commands and paths were tested
local Sphinx build passes with warnings as errors
local linkcheck passes
legacy references are clearly labeled as legacy where relevant
Git workflow
Create a branch:
git checkout master
git pull
git checkout -b <branch_name>
Update from master:
git checkout master
git pull
git checkout <branch_name>
git merge master
Push branch:
git push origin <branch_name>