1. Documentation¶
1.1. How to add .h files¶
for example: we have a head File named
example.h
incomponents/sys
directory,then change todocs
directory,modify theINPUT
configuration in theDoxyfile
file,here we should add a line with../../components/sys/example.h
.change to
docs/zh_CH/API/sys
subdirectory,new a file namedexample.rst
.reference
docs/zh_CH/API/sys/cronalarms.rst
,here we replacecronalarms
withexample
.change to
docs/zh_CH
subdirectory,modifyindex.rst
,add a line withAPI/sys/example
in the last line of the file.
1.2. Building Documentation¶
At first,run
pip3 install --user -r requirements.txt
install environmentChange to docs/zh_CN subdirectory and run
make html
make
will probably prompt you to run a python pip install step to get some other Python-related prerequisites. Run the command as shown, then re-runmake html
to build the docs.