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-19 12:02:01 +02:00
|
|
|
# Cleans example and test build dirs (to reduce the component size before upload)
|
|
|
|
rm -rf ../examples/ap_to_pppos/build/ ../examples/simple_cxx_client/build/ ../examples/pppos_client/build/ ../examples/modem_console/build ../test/host_test/build/ ../test/target/build/
|
|
|
|
|
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
|