forked from espressif/esp-protocols
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(common): improving documentation
- update esp_modem to use esp_docs - migrated docs from github pages to docs.espressif.com
- Loading branch information
1 parent
f6ff132
commit ca3fce0
Showing
46 changed files
with
149 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,4 +137,4 @@ show_source = True | |
statistics = True | ||
|
||
exclude = | ||
components/asio/docs/conf_common.py | ||
docs/asio/conf_common.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,66 +5,47 @@ on: | |
branches: | ||
- master | ||
|
||
env: | ||
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_DEPLOY_URL_BASE }} | ||
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_DEPLOY_SERVER }} | ||
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_DEPLOY_SERVER_USER }} | ||
DOCS_DEPLOY_KEY: ${{ secrets.DOCS_DEPLOY_PRIVATEKEY }} | ||
DOCS_DEPLOY_PATH : ${{ secrets.DOCS_DEPLOY_PATH }} | ||
|
||
jobs: | ||
docs_build: | ||
name: Docs-Build-And-Upload | ||
runs-on: ubuntu-latest | ||
# Skip running on forks since it won't have access to secrets | ||
if: github.repository == 'espressif/esp-protocols' | ||
|
||
steps: | ||
- name: Checkout esp-protocols | ||
uses: actions/checkout@master | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Generate docs | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install doxygen clang python3-pip | ||
python -m pip install breathe recommonmark esp-docs | ||
cd $GITHUB_WORKSPACE/components/esp_modem/docs | ||
./generate_docs | ||
mkdir -p $GITHUB_WORKSPACE/docs/esp_modem | ||
cp -r html/. $GITHUB_WORKSPACE/docs/esp_modem | ||
cd $GITHUB_WORKSPACE/components/esp_websocket_client/docs | ||
./generate_docs | ||
mkdir -p $GITHUB_WORKSPACE/docs/esp_websocket_client | ||
cp -r html/. $GITHUB_WORKSPACE/docs/esp_websocket_client | ||
cd $GITHUB_WORKSPACE/components/mdns/docs | ||
./generate_docs | ||
mkdir -p $GITHUB_WORKSPACE/docs/mdns/en | ||
mkdir -p $GITHUB_WORKSPACE/docs/mdns/zh_CN | ||
cp -r html_en/. $GITHUB_WORKSPACE/docs/mdns/en | ||
cp -r html_zh_CN/. $GITHUB_WORKSPACE/docs/mdns/zh_CN | ||
cd $GITHUB_WORKSPACE/components/asio/docs | ||
./generate_docs | ||
mkdir -p $GITHUB_WORKSPACE/docs/asio | ||
cp -r html/. $GITHUB_WORKSPACE/docs/asio | ||
cd $GITHUB_WORKSPACE/docs | ||
touch .nojekyll | ||
echo '<a href="esp_modem/index.html">esp-modem</a><br>' > index.html | ||
echo '<a href="esp_websocket_client/index.html">esp-websocket-client</a><br>' >> index.html | ||
echo '<a href="asio/index.html">ASIO</a><br>' >> index.html | ||
echo '<a href="mdns/en/index.html">mDNS_en</a><br>' >> index.html | ||
echo '<a href="mdns/zh_CN/index.html">mDNS_zh_CN</a><br>' >> index.html | ||
sudo apt-get update | ||
sudo apt-get -y install doxygen clang python3-pip | ||
python -m pip install breathe recommonmark esp-docs==1.4.1 | ||
cd $GITHUB_WORKSPACE/docs | ||
./generate_docs | ||
- name: Deploying generated docs | ||
if: always() | ||
shell: bash | ||
run: | | ||
source $GITHUB_WORKSPACE/docs/utils.sh | ||
add_doc_server_ssh_keys $DOCS_DEPLOY_KEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER | ||
export GIT_VER=$(git describe --always) | ||
export GITHUB_REF_NAME=latest | ||
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs | ||
deploy-docs | ||
- name: Upload components to component service | ||
uses: espressif/github-actions/upload_components@master | ||
with: | ||
directories: "components/esp_modem;components/esp_websocket_client;components/mdns;components/asio" | ||
namespace: "espressif" | ||
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }} | ||
|
||
- name: Deploy generated docs | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
# Collection of protocol components for ESP-IDF | ||
|
||
[Documentation of esp-protocol](https://espressif.github.io/esp-protocols) | ||
|
||
## Components | ||
|
||
### esp_modem | ||
|
||
* Brief introduction [README](components/esp_modem/README.md) | ||
* Full html [documentation](https://espressif.github.io/esp-protocols/esp_modem/index.html) | ||
* Full html [documentation](https://docs.espressif.com/projects/esp-protocols/docs/latest/esp_modem/index.html) | ||
|
||
### mDNS | ||
|
||
* Brief introduction [README](components/mdns/README.md) | ||
* Full html [documentation(English)](https://espressif.github.io/esp-protocols/mdns/en/index.html) | ||
* Full html [documentation(Chinese)](https://espressif.github.io/esp-protocols/mdns/zh_CN/index.html) | ||
* Full html [documentation(English)](https://docs.espressif.com/projects/esp-protocols/mdns/latest/en/index.html) | ||
* Full html [documentation(Chinese)](https://docs.espressif.com/projects/esp-protocols/mdns/latest/zh_CN/index.html) | ||
|
||
### esp_websocket_client | ||
|
||
* Brief introduction [README](components/esp_websocket_client/README.md) | ||
* Full html [documentation](https://espressif.github.io/esp-protocols/esp_websocket_client/index.html) | ||
* Full html [documentation](https://docs.espressif.com/projects/esp-protocols/docs/latest/esp_websocket_client/index.html) | ||
|
||
### ASIO port | ||
|
||
* Brief introduction [README](components/asio/README.md) | ||
* Full html [documentation](https://espressif.github.io/esp-protocols/asio/index.html) | ||
* Full html [documentation](https://docs.espressif.com/projects/esp-protocols/docs/latest/asio/index.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.