Files
esp-protocols/esp_modem/docs/generate_docs

21 lines
800 B
Plaintext
Raw Normal View History

2021-04-14 17:57:42 +02:00
# Cleanup the generated html
rm -rf html
2021-04-13 20:29:55 +02:00
2021-04-14 17:57:42 +02:00
# Generate C++ API header of the DCE
cat ../include/generate/esp_modem_command_declare.inc | clang++ -E -P -CC -xc++ -I../include -DGENERATE_DOCS - | sed -n '1,/DCE command documentation/!p' > esp_modem_dce.hpp
# Generate C API header of the modem_api.h
cat ../include/generate/esp_modem_command_declare.inc | clang -E -P -CC -xc -I../include -DGENERATE_DOCS - | sed -n '1,/DCE command documentation/!p' > esp_modem_api_commands.h
# RST with links to C++ API
cat ../include/generate/esp_modem_command_declare.inc | clang -E -P -xc -I../include -DGENERATE_DOCS -DGENERATE_RST_LINKS - | sed 's/NL/\n/g' > cxx_api_links.rst
# Run doxygen
doxygen
# Generate the docs
2021-04-13 20:29:55 +02:00
python -u -m sphinx.cmd.build -b html . html
2021-04-14 17:57:42 +02:00
# Cleanup the doxygen xml's
rm -rf xml