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 poetry run make html,
like described below), Pandoc needs to be
installed on the system.
Edit an existing page¶
- Edit an existing - .rst(or- .md) file under- framework/docs/source/
- Compile the docs: - cd framework/docs, then- poetry run make html
- Open - framework/docs/build/html/index.htmlin the browser to check the result
Create a new page¶
- Add new - .rstfile under- framework/docs/source/
- Add content to the new - .rstfile
- Link to the new rst from - index.rst
- Compile the docs: - cd framework/docs, then- poetry run make html
- Open - framework/docs/build/html/index.htmlin the browser to check the result