Write documentation¶
Project layout¶
The Flower documentation lives in the doc directory. The Sphinx-based documentation
system supports both reStructuredText (.rst files) and Markdown (.md files).
Note that, in order to build the documentation locally (with python -m poetry run make
html, as described below), Pandoc needs to be
installed on the system.
Edit an existing page¶
Edit an existing
.rst(or.md) file underframework/docs/source/Compile the docs:
cd framework/docs, thenpython -m poetry run make htmlOpen
framework/docs/build/html/index.htmlin the browser to check the result
Create a new page¶
Add new
.rstfile underframework/docs/source/Add content to the new
.rstfileLink to the new rst from
index.rstCompile the docs:
cd framework/docs, thenpython -m poetry run make htmlOpen
framework/docs/build/html/index.htmlin the browser to check the result