编写文件¶
项目布局¶
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.
编辑现有页面¶
编辑
framework/docs/source/下现有的.rst(或.md) 文件Compile the docs:
cd framework/docs, thenuv run --project .. make htmlOpen
framework/docs/build/html/index.htmlin the browser to check the result
创建新页面¶
在
framework/docs/source/下添加新的.rst文件为新的
.rst文件添加内容从
index.rst链接到新的 rstCompile the docs:
cd framework/docs, thenuv run --project .. make htmlOpen
framework/docs/build/html/index.htmlin the browser to check the result