编写文件

项目布局

The Flower documentation lives in the docs 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 uv run --project .. make html, as described below), Pandoc needs to be installed on the system.

编辑现有页面

  1. 编辑 framework/docs/source/ 下现有的 .rst (或 .md) 文件

  2. Compile the docs: cd framework/docs, then uv run --project .. make html

  3. Open framework/docs/build/html/index.html in the browser to check the result

创建新页面

  1. framework/docs/source/ 下添加新的 .rst 文件

  2. 为新的 .rst 文件添加内容

  3. index.rst 链接到新的 rst

  4. Compile the docs: cd framework/docs, then uv run --project .. make html

  5. Open framework/docs/build/html/index.html in the browser to check the result