-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation migration from RTD to ESP-Docs (#9094)
- Loading branch information
1 parent
c1a4055
commit e4d6a8a
Showing
109 changed files
with
265 additions
and
194 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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Documentation Build and Deploy Production CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- release/* | ||
paths: | ||
- 'docs/**' | ||
- '.github/workflows/docs.yml' | ||
|
||
jobs: | ||
|
||
deploy-prod-docs: | ||
name: Deploy Documentation Production | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Deploy Preview | ||
env: | ||
# Deploy to production server | ||
DOCS_BUILD_DIR: "${CI_PROJECT_DIR}/docs/_build/" | ||
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_PROD_PRIVATEKEY }} | ||
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PROD_PATH }} | ||
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_PROD_SERVER }} | ||
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_PROD_URL_BASE }} | ||
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_PROD_USER }} | ||
run: | | ||
sudo apt update | ||
sudo apt install python3-pip python3-setuptools | ||
source ./docs/utils.sh | ||
add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER | ||
export GIT_VER=$(git describe --always) | ||
echo "PIP install requirements..." | ||
pip3 install --user -r ./docs/requirements.txt | ||
echo "Building the Docs..." | ||
cd ./docs && build-docs -l en | ||
echo "Deploy the Docs..." | ||
deploy-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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Documentation Build and Deploy CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'docs/**' | ||
- '.github/workflows/docs.yml' | ||
|
||
jobs: | ||
|
||
deploy-preview-docs: | ||
name: Deploy Documentation Preview | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Deploy Preview | ||
env: | ||
# Deploy to preview server | ||
DOCS_BUILD_DIR: "${CI_PROJECT_DIR}/docs/_build/" | ||
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_KEY }} | ||
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PATH }} | ||
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_SERVER }} | ||
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_URL }} | ||
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_USER }} | ||
run: | | ||
sudo apt update | ||
sudo apt install python3-pip python3-setuptools | ||
source ./docs/utils.sh | ||
add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER | ||
export GIT_VER=$(git describe --always) | ||
echo "PIP install requirements..." | ||
pip3 install --user -r ./docs/requirements.txt | ||
echo "Building the Docs..." | ||
cd ./docs && build-docs -l en | ||
echo "Deploy the Docs..." | ||
deploy-docs |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var DOCUMENTATION_VERSIONS = { | ||
DEFAULTS: { has_targets: false, | ||
supported_targets: [ "esp32" ] | ||
}, | ||
VERSIONS: [ | ||
{ name: "latest", has_targets: true, supported_targets: [ "esp32", "esp32s2", "esp32s3", "esp32c3", "esp32h2", "esp32c6" ] }, | ||
], | ||
IDF_TARGETS: [ | ||
{ text: "ESP32", value: "esp32"}, | ||
{ text: "ESP32-S2", value: "esp32s2"}, | ||
{ text: "ESP32-S3", value: "esp32s3"}, | ||
{ text: "ESP32-C3", value: "esp32c3"}, | ||
{ text: "ESP32-H2", value: "esp32h2"}, | ||
{ text: "ESP32-C6", value: "esp32c6"}, | ||
] | ||
}; |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# --------------------------------------------------------------- | ||
|
||
from esp_docs.conf_docs import * # noqa: F403,F401 | ||
|
||
languages = ["en"] | ||
|
||
# idf_targets = [ | ||
# "esp32", | ||
# "esp32s2", | ||
# "esp32s3", | ||
# "esp32c3", | ||
# "esp32c6", | ||
# "esp32h2", | ||
# ] | ||
|
||
# link roles config | ||
github_repo = "espressif/arduino-esp32" | ||
|
||
# context used by sphinx_idf_theme | ||
html_context["github_user"] = "espressif" | ||
html_context["github_repo"] = "arduino-esp32" | ||
|
||
html_static_path = ["../_static"] | ||
|
||
# Conditional content | ||
|
||
extensions += ['sphinx_copybutton', | ||
'sphinx_tabs.tabs', | ||
'esp_docs.esp_extensions.dummy_build_system', | ||
] | ||
|
||
# ESP32_DOCS = [ | ||
# "index.rst", | ||
# ] | ||
|
||
# ESP32S2_DOCS = ESP32_DOCS | ||
# ESP32C3_DOCS = ESP32S2_DOCS | ||
# ESP32S3_DOCS = ESP32S2_DOCS | ||
# ESP32C6_DOCS = ESP32S2_DOCS | ||
# ESP32H2_DOCS = ESP32S2_DOCS | ||
|
||
# conditional_include_dict = { | ||
# "esp32": ESP32_DOCS, | ||
# "esp32s2": ESP32S2_DOCS, | ||
# "esp32c3": ESP32C3_DOCS, | ||
# "esp32s3": ESP32S3_DOCS, | ||
# "esp32c6": ESP32C6_DOCS, | ||
# "esp32h2": ESP32H2_DOCS, | ||
# } | ||
|
||
# Extra options required by sphinx_idf_theme | ||
project_slug = "arduino-esp32" | ||
|
||
# versions_url = "./../_static/arduino_versions.js" |
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.
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
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 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 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 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.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# English Language RTD & Sphinx config file | ||
# | ||
# Uses ../conf_common.py for most non-language-specific settings. | ||
|
||
# Importing conf_common adds all the non-language-specific | ||
# parts to this conf module | ||
|
||
try: | ||
from conf_common import * # noqa: F403,F401 | ||
except ImportError: | ||
import os | ||
import sys | ||
sys.path.insert(0, os.path.abspath('../')) | ||
from conf_common import * # noqa: F403,F401 | ||
|
||
import datetime | ||
current_year = datetime.datetime.now().year | ||
|
||
# General information about the project. | ||
project = u'Arduino ESP32' | ||
copyright = u'2016 - {}, Espressif Systems (Shanghai) Co., Ltd'.format(current_year) | ||
pdf_title = u'Arduino ESP32 Documentation Guide' | ||
|
||
# The language for content autogenerated by Sphinx. Refer to documentation | ||
# for a list of supported languages. | ||
language = 'en' | ||
|
||
# Tracking ID for Google Analytics | ||
google_analytics_id = 'G-F58JM78930' |
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.
Oops, something went wrong.