mirror of
https://github.com/espressif/esptool.git
synced 2025-10-15 12:37:18 +08:00
refactoring: Employ Black code formatting
This commit is contained in:
@@ -1,42 +1,45 @@
|
||||
from esp_docs.conf_docs import * # noqa: F403,F401
|
||||
|
||||
languages = ['en']
|
||||
idf_targets = ['esp8266', 'esp32', 'esp32s2', 'esp32s3', 'esp32c3']
|
||||
languages = ["en"]
|
||||
idf_targets = ["esp8266", "esp32", "esp32s2", "esp32s3", "esp32c3"]
|
||||
|
||||
# link roles config
|
||||
github_repo = 'espressif/esptool'
|
||||
github_repo = "espressif/esptool"
|
||||
|
||||
# context used by sphinx_idf_theme
|
||||
html_context['github_user'] = 'espressif'
|
||||
html_context['github_repo'] = 'esptool'
|
||||
html_context["github_user"] = "espressif"
|
||||
html_context["github_repo"] = "esptool"
|
||||
|
||||
html_static_path = ['../_static']
|
||||
html_static_path = ["../_static"]
|
||||
|
||||
# Conditional content
|
||||
extensions += ['esp_docs.esp_extensions.dummy_build_system']
|
||||
extensions += ["esp_docs.esp_extensions.dummy_build_system"]
|
||||
|
||||
ESP8266_DOCS = []
|
||||
|
||||
ESP32_DOCS = ['espefuse/index.rst',
|
||||
'espsecure/index.rst',
|
||||
]
|
||||
ESP32_DOCS = [
|
||||
"espefuse/index.rst",
|
||||
"espsecure/index.rst",
|
||||
]
|
||||
|
||||
ESP32S2_DOCS = ['espefuse/index.rst',
|
||||
'espsecure/index.rst',
|
||||
]
|
||||
ESP32S2_DOCS = [
|
||||
"espefuse/index.rst",
|
||||
"espsecure/index.rst",
|
||||
]
|
||||
|
||||
ESP32C3_DOCS = ESP32S2_DOCS
|
||||
|
||||
ESP32S3_DOCS = ESP32S2_DOCS
|
||||
|
||||
conditional_include_dict = {'esp8266': ESP8266_DOCS,
|
||||
'esp32': ESP32_DOCS,
|
||||
'esp32s2': ESP32S2_DOCS,
|
||||
'esp32c3': ESP32C3_DOCS,
|
||||
'esp32s3': ESP32S3_DOCS,
|
||||
}
|
||||
conditional_include_dict = {
|
||||
"esp8266": ESP8266_DOCS,
|
||||
"esp32": ESP32_DOCS,
|
||||
"esp32s2": ESP32S2_DOCS,
|
||||
"esp32c3": ESP32C3_DOCS,
|
||||
"esp32s3": ESP32S3_DOCS,
|
||||
}
|
||||
|
||||
# Extra options required by sphinx_idf_theme
|
||||
project_slug = 'esptool'
|
||||
project_slug = "esptool"
|
||||
|
||||
versions_url = './_static/esptool_versions.js'
|
||||
versions_url = "./_static/esptool_versions.js"
|
||||
|
Reference in New Issue
Block a user