This repository was archived by the owner on Apr 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconf.py.old
More file actions
127 lines (102 loc) · 3.96 KB
/
Copy pathconf.py.old
File metadata and controls
127 lines (102 loc) · 3.96 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import recommonmark
from recommonmark.transform import AutoStructify
from sphinx_markdown_parser.parser import MarkdownParser
from recommonmark.parser import CommonMarkParser
#'''PROJECT INFORMATION'''
project = 'Build The Earth Docs'
author = 'BTE Contributors'
copyright = '2021, BTE Contributors'
release = '2.0.0'
## The full version, including alpha/beta/rc tags
#'''GENERAL CONFIGURATION'''
templates_path = ['../common/_templates']
## Add any paths that contain templates here, relative to this directory.
#exclude_patterns = ['.textstyles.rst']
## List of patterns, relative to source directory, that match files and directories to ignore when looking for source files.
## This pattern also affects html_static_path and html_extra_path.
#'''INTERNATIONALIZATION OPTIONS'''
language = 'en'
#locale_dirs = ['locale/'] # path is example but recommended.
#gettext_compact = False # optional.
## Deprecated due to custom language handling.
#'''HTML OUTPUT OPTIONS'''
html_theme = 'sphinx_rtd_theme'
#html_theme_path = ['../theme/'] # Custom Theme, keep away if you don't know what you're doing
## The theme to use for HTML and HTML Help pages. See the documentation for a list of builtin themes.
html_theme_options = {
'analytics_id': 'G-BRFVM1X3NH', # Provided by Google in your dashboard
'analytics_anonymize_ip': False,
#'logo_only': False,
#'display_version': True,
#'prev_next_buttons_location': 'bottom',
#'style_external_links': False,
#'vcs_pageview_mode': '',
#'style_nav_header_background': 'white',
# Toc options
#'collapse_navigation': True,
#'sticky_navigation': True,
'navigation_depth': 4,
#'includehidden': True,
#'titles_only': False,
'github_url': 'https://github.com/BuildTheEarth/docs'
}
html_static_path = ['../common/_static']
## 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 built-in "default.css".
html_css_files = [
'css/textstyles.css',
'css/custom.css'
]
html_favicon = '../common/_static/img/logo.png'
html_title = "Build The Earth Docs"
html_short_title = "BTEDocs"
html_last_updated_fmt = ""
#'''rST BUILD OPTIONS'''
rst_prolog = """
.. include:: /../common/.textstyles.rst
"""
## rST Header include.
## Messes with warning output far too much right now to be justifiable until the right suppress_warnings option is available.
#'''GENERAL BUILD OPTIONS'''
keep_warnings = True
suppress_warnings = [
#'ref.ref'
]
#'''EXTENSION CONFIGURATION'''
extensions = [
'sphinx_markdown_parser',
#'recommonmark',
'sphinx.ext.todo',
'sphinx.ext.extlinks',
'sphinx.ext.autosectionlabel',
#'sphinx.ext.duration',
'sphinx_markdown_tables'
]
## Add any Sphinx extension module names here, as strings. They can be extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
todo_include_todos = True
todo_emit_warnings = True
extlinks = {
'bte': ('https://buildtheearth.net/%s', 'BuildTheEarth')
}
autosectionlabel_prefix_document = True
## Extension Options.
def setup(app):
class CustomCommonMarkParser(CommonMarkParser):
def visit_document(self, node):
pass
app.add_source_suffix('.md', 'markdown')
app.add_source_parser(CustomCommonMarkParser)
app.add_config_value('recommonmark_config', {
#'url_resolver': lambda url: github_doc_root + url,
#'auto_toc_tree_section': 'Contents',
'enable_math': False,
'enable_inline_math': False,
'enable_eval_rst': True,
}, True)
app.add_transform(AutoStructify)
# Sets AutoStructify up, enables a lot of great features not present in CommonMark (but present in ReCommonMark).