forked from espressif/esp-at
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf_common.py
More file actions
executable file
·76 lines (57 loc) · 2.45 KB
/
conf_common.py
File metadata and controls
executable file
·76 lines (57 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- coding: utf-8 -*-
#
# Common (non-language-specific) configuration for Sphinx
#
# This file is imported from a language-specific conf.py (ie en/conf.py or
# zh_CN/conf.py)
from __future__ import print_function, unicode_literals
import os.path
#ESP_DOCS_PATH = os.environ['ESP_DOCS_PATH']
try:
from esp_docs.conf_docs import * # noqa: F403,F401
except ImportError:
import os
import sys
sys.path.insert(0, os.path.abspath(ESP_DOCS_PATH))
from conf_docs import * # noqa: F403,F401
ESP32_DOCS = ['AT_Binary_Lists/ESP32_AT_binaries.rst',
'AT_Command_Examples/Ethernet_AT_Examples.rst',
'AT_Command_Examples/classic_bluetooth_at_examples.rst',
'AT_Command_Set/BT_AT_Commands.rst',
'AT_Command_Set/Ethernet_AT_Commands.rst',
'Compile_and_Develop/esp32-sdio-at-guide.rst',
'Compile_and_Develop/how_to_enable_at_classic_bluetooth.rst',
'Compile_and_Develop/How_to_enable_ESP_AT_Ethernet.rst']
ESP32C3_DOCS = ['AT_Binary_Lists/ESP32-C3_AT_binaries.rst',
'Compile_and_Develop/How_to_implement_SPI_AT.rst']
# reserved item
ESP8266_DOCS = []
ESP32S2_DOCS = []
# format: {tag needed to include: documents to included}, tags are parsed from sdkconfig and peripheral_caps.h headers
conditional_include_dict = {'esp32':ESP32_DOCS,
'esp32c3':ESP32C3_DOCS,
'esp8266':ESP8266_DOCS,
'esp32s2':ESP32S2_DOCS
}
extensions += ['sphinx_copybutton',
# Note: order is important here, events must
# be registered by one extension before they can be
# connected to another extension
'esp_docs.esp_extensions.dummy_build_system',
'esp_docs.esp_extensions.run_doxygen',
]
# link roles config
github_repo = 'espressif/esp-at'
# context used by sphinx_idf_theme
html_context['github_user'] = 'espressif'
html_context['github_repo'] = 'esp-at'
idf_targets = ['esp32', 'esp32c3', 'esp8266', 'esp32s2']
languages = ['en', 'zh_CN']
google_analytics_id = os.environ.get('CI_GOOGLE_ANALYTICS_ID', None)
project_homepage = 'https://github.com/espressif/esp-at'
html_static_path = ['../_static']
# Extra options required by sphinx_idf_theme
project_slug = 'esp-at'
versions_url = './_static/js/at_versions.js'
# Final PDF filename will contains target and version
pdf_file_prefix = u'esp-at'