1. Documentation¶
1.1. How to add .h files¶
for example: we have a head File named
example.hincomponents/sysdirectory,then change todocsdirectory,modify theINPUTconfiguration in theDoxyfilefile,here we should add a line with../../components/sys/example.h.change to
docs/zh_CH/API/syssubdirectory,new a file namedexample.rst.reference
docs/zh_CH/API/sys/cronalarms.rst,here we replacecronalarmswithexample.change to
docs/zh_CHsubdirectory,modifyindex.rst,add a line withAPI/sys/examplein the last line of the file.
1.2. Building Documentation¶
At first,run
pip3 install --user -r requirements.txtinstall environmentChange to docs/zh_CN subdirectory and run
make htmlmakewill 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 htmlto build the docs.