Skip to content

Commit

Permalink
Merge pull request #283 from espressif/esp_modem/fix_build
Browse files Browse the repository at this point in the history
fix(esp_modem): fix esp_modem build issue
  • Loading branch information
gabsuren authored Apr 27, 2023
2 parents f67511c + ab94566 commit 31187b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.
#pragma once

#include "esp_modem_command_declare_helper.inc"
#include "generate/esp_modem_command_declare_helper.inc"


#define DECLARE_ALL_COMMAND_APIS(...) \
Expand Down
27 changes: 3 additions & 24 deletions docs/esp_modem/generate_docs
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,20 @@
rm -rf html

# Generate C++ API header of the DCE
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
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

# Generate C API header of the modem_api.h
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
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


# RST with links to C++ API
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
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

build-docs --target esp32 --language en

cp -rf _build/en/esp32/html .
rm -rf _build __pycache__

## Modifes some version and target fields of index.html
#echo "<script type="text/javascript">
#window.onload =(function() {
# var myAnchor = document.getElementById('version-select');
# var mySpan = document.createElement('input');
# mySpan.setAttribute('type', 'text');
# mySpan.setAttribute('maxLength', '10');
# mySpan.value = 'latest';
# mySpan.setAttribute('disabled', true);
# myAnchor.parentNode.replaceChild(mySpan, myAnchor);
#
# var myAnchor = document.getElementById('target-select');
# var mySpan = document.createElement('input');
# mySpan.setAttribute('type', 'text');
# mySpan.setAttribute('maxLength', '10');
# mySpan.value = 'all targets';
# mySpan.setAttribute('disabled', true);
# myAnchor.parentNode.replaceChild(mySpan, myAnchor);
#
#})();
#</script>" >> html/index.html

# Modifes some version and target fields of index.html
echo "<script type='text/javascript'>
Expand Down

0 comments on commit 31187b7

Please sign in to comment.