编写文件¶
项目布局¶
Flower 文档位于 doc 目录中。基于 Sphinx 的文档系统支持 reStructuredText(.rst 文件)和 Markdown(.md 文件)。
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.
编辑现有页面¶
编辑
framework/docs/source/下现有的.rst(或.md) 文件Compile the docs:
cd framework/docs, thenpython -m poetry run 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, thenpython -m poetry run make htmlOpen
framework/docs/build/html/index.htmlin the browser to check the result