forked from espressif/esp-iot-solution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf_common.py
57 lines (42 loc) · 1.91 KB
/
conf_common.py
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
# -*- 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)
#ESP_DOCS_PATH = os.environ['ESP_DOCS_PATH']
from esp_docs.conf_docs import * # noqa: F403,F401
# format: {tag needed to include: documents to included}, tags are parsed from sdkconfig and peripheral_caps.h headers
extensions += [ 'sphinx_copybutton',
'sphinxcontrib.wavedrom',
'esp_docs.esp_extensions.dummy_build_system',
'esp_docs.esp_extensions.run_doxygen',
]
# link roles config
github_repo = 'espressif/esp-iot-solution'
# context used by sphinx_idf_theme
html_context['github_user'] = 'espressif'
html_context['github_repo'] = 'esp-iot-solution'
languages = ['en', 'zh_CN']
project_homepage = 'https://github.com/espressif/esp-iot-solution'
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = '../_static/espressif-logo.svg'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['../_static']
# Extra options required by sphinx_idf_theme
project_slug = 'esp-iot-solution'
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build','README.md']
# Final PDF filename will contains target and version
pdf_file_prefix = u'esp-iot-solution'
# The name of an image file (relative to this directory) to place at the top of
# the title page.
latex_logo = '../_static/espressif2.pdf'
# add Tracking ID for Google Analytics
google_analytics_id = 'G-YK0H573CWX'