|
2 | 2 | rm -rf html |
3 | 3 |
|
4 | 4 | # Generate C++ API header of the DCE |
5 | | -cat esp_modem_command_declare.inc | clang++ -E -P -CC -xc++ -I../../components/esp_modem/include -DGENERATE_DOCS - | sed -n '1,/DCE command documentation/!p' > en/esp_modem_dce.hpp |
| 5 | +cat ../../components/esp_modem/include/generate/esp_modem_command_declare.inc | clang++ -E -P -CC -xc++ -I../../components/esp_modem/include -DGENERATE_DOCS - | sed -n '1,/DCE command documentation/!p' > en/esp_modem_dce.hpp |
6 | 6 |
|
7 | 7 | # Generate C API header of the modem_api.h |
8 | | -cat esp_modem_command_declare.inc | clang -E -P -CC -xc -I../../components/esp_modem/include -DGENERATE_DOCS - | sed -n '1,/DCE command documentation/!p' > en/esp_modem_api_commands.h |
| 8 | +cat ../../components/esp_modem/include/generate/esp_modem_command_declare.inc | clang -E -P -CC -xc -I../../components/esp_modem/include -DGENERATE_DOCS - | sed -n '1,/DCE command documentation/!p' > en/esp_modem_api_commands.h |
9 | 9 |
|
10 | 10 |
|
11 | 11 | # RST with links to C++ API |
12 | | -cat esp_modem_command_declare.inc | clang -E -P -xc -I../../components/esp_modem/include -DGENERATE_DOCS -DGENERATE_RST_LINKS - | sed 's/NL/\n/g' > en/cxx_api_links.rst |
| 12 | +cat ../../components/esp_modem/include/generate/esp_modem_command_declare.inc | clang -E -P -xc -I../../components/esp_modem/include -DGENERATE_DOCS -DGENERATE_RST_LINKS - | sed 's/NL/\n/g' > en/cxx_api_links.rst |
13 | 13 |
|
14 | 14 | build-docs --target esp32 --language en |
15 | 15 |
|
16 | 16 | cp -rf _build/en/esp32/html . |
17 | 17 | rm -rf _build __pycache__ |
18 | 18 |
|
19 | | -## Modifes some version and target fields of index.html |
20 | | -#echo "<script type="text/javascript"> |
21 | | -#window.onload =(function() { |
22 | | -# var myAnchor = document.getElementById('version-select'); |
23 | | -# var mySpan = document.createElement('input'); |
24 | | -# mySpan.setAttribute('type', 'text'); |
25 | | -# mySpan.setAttribute('maxLength', '10'); |
26 | | -# mySpan.value = 'latest'; |
27 | | -# mySpan.setAttribute('disabled', true); |
28 | | -# myAnchor.parentNode.replaceChild(mySpan, myAnchor); |
29 | | -# |
30 | | -# var myAnchor = document.getElementById('target-select'); |
31 | | -# var mySpan = document.createElement('input'); |
32 | | -# mySpan.setAttribute('type', 'text'); |
33 | | -# mySpan.setAttribute('maxLength', '10'); |
34 | | -# mySpan.value = 'all targets'; |
35 | | -# mySpan.setAttribute('disabled', true); |
36 | | -# myAnchor.parentNode.replaceChild(mySpan, myAnchor); |
37 | | -# |
38 | | -#})(); |
39 | | -#</script>" >> html/index.html |
40 | 19 |
|
41 | 20 | # Modifes some version and target fields of index.html |
42 | 21 | echo "<script type='text/javascript'> |
|
0 commit comments