1# -*- coding: utf-8 -*-
2
3# Default settings
4project = 'Test Builds'
5extensions = [
6 'sphinx_autorun',
7]
8
9latex_engine = 'xelatex' # allow us to build Unicode chars
10
11
12# Include all your settings here
13html_theme = 'sphinx_rtd_theme'
14
15
16
17
18###########################################################################
19# auto-created readthedocs.org specific configuration #
20###########################################################################
21
22
23#
24# The following code was added during an automated build on readthedocs.org
25# It is auto created and injected for every build. The result is based on the
26# conf.py.tmpl file found in the readthedocs.org codebase:
27# https://github.com/rtfd/readthedocs.org/blob/main/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
28#
29# Note: this file shouldn't rely on extra dependencies.
30
31import importlib
32import sys
33import os.path
34
35# Borrowed from six.
36PY3 = sys.version_info[0] == 3
37string_types = str if PY3 else basestring
38
39from sphinx import version_info
40
41# Get suffix for proper linking to GitHub
42# This is deprecated in Sphinx 1.3+,
43# as each page can have its own suffix
44if globals().get('source_suffix', False):
45 if isinstance(source_suffix, string_types):
46 SUFFIX = source_suffix
47 elif isinstance(source_suffix, (list, tuple)):
48 # Sphinx >= 1.3 supports list/tuple to define multiple suffixes
49 SUFFIX = source_suffix[0]
50 elif isinstance(source_suffix, dict):
51 # Sphinx >= 1.8 supports a mapping dictionary for multiple suffixes
52 SUFFIX = list(source_suffix.keys())[0] # make a ``list()`` for py2/py3 compatibility
53 else:
54 # default to .rst
55 SUFFIX = '.rst'
56else:
57 SUFFIX = '.rst'
58
59# Add RTD Static Path. Add to the end because it overwrites previous files.
60if not 'html_static_path' in globals():
61 html_static_path = []
62if os.path.exists('_static'):
63 html_static_path.append('_static')
64
65# Define this variable in case it's not defined by the user.
66# It defaults to `alabaster` which is the default from Sphinx.
67# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_theme
68html_theme = globals().get('html_theme', 'alabaster')
69
70#Add project information to the template context.
71context = {
72 'html_theme': html_theme,
73 'current_version': "humitos-patch-2",
74 'version_slug': "humitos-patch-2",
75 'MEDIA_URL': "https://media.readthedocs.org/",
76 'STATIC_URL': "https://assets.readthedocs.org/static/",
77 'PRODUCTION_DOMAIN': "readthedocs.org",
78 'proxied_static_path': "/_/static/",
79 'versions': [
80 ("latest", "/es/latest/"),
81 ("stable", "/es/stable/"),
82 ("5.0", "/es/5.0/"),
83 ("4.0", "/es/4.0/"),
84 ("wormhole", "/es/wormhole/"),
85 ("update-conda-startup", "/es/update-conda-startup/"),
86 ("ubuntu-22.04", "/es/ubuntu-22.04/"),
87 ("ubuntu-20.04-python-3.9", "/es/ubuntu-20.04-python-3.9/"),
88 ("ubuntu-20.04", "/es/ubuntu-20.04/"),
89 ("theme-1.0rc1", "/es/theme-1.0rc1/"),
90 ("test-ubuntu-20.04", "/es/test-ubuntu-20.04/"),
91 ("test-rebased-commit", "/es/test-rebased-commit/"),
92 ("test-parent-path-error", "/es/test-parent-path-error/"),
93 ("test-auto-cancel", "/es/test-auto-cancel/"),
94 ("template-config-file", "/es/template-config-file/"),
95 ("symlink-via-zipfile", "/es/symlink-via-zipfile/"),
96 ("sudo-commands", "/es/sudo-commands/"),
97 ("submodule-not-found", "/es/submodule-not-found/"),
98 ("staticrypt", "/es/staticrypt/"),
99 ("sphinx-tectonic-pdf", "/es/sphinx-tectonic-pdf/"),
100 ("sphinx-multipage-html", "/es/sphinx-multipage-html/"),
101 ("sphinx-mkdocstrings", "/es/sphinx-mkdocstrings/"),
102 ("sphinx-hoverxref", "/es/sphinx-hoverxref/"),
103 ("sphinx-fork", "/es/sphinx-fork/"),
104 ("sphinx-docs-zundler", "/es/sphinx-docs-zundler/"),
105 ("sphinx-conf-nonstandard", "/es/sphinx-conf-nonstandard/"),
106 ("sphinx-awesome", "/es/sphinx-awesome/"),
107 ("sphinx-7.0.x", "/es/sphinx-7.0.x/"),
108 ("sphinx6.x-default", "/es/sphinx6.x-default/"),
109 ("sphinx5.x-default-confpy", "/es/sphinx5.x-default-confpy/"),
110 ("sphinx-5.x", "/es/sphinx-5.x/"),
111 ("sphinx-1.8", "/es/sphinx-1.8/"),
112 ("sphinx-1.7", "/es/sphinx-1.7/"),
113 ("sphinx-1.6", "/es/sphinx-1.6/"),
114 ("skip-build-command-pr-test3", "/es/skip-build-command-pr-test3/"),
115 ("skip-build-command-pr-test2", "/es/skip-build-command-pr-test2/"),
116 ("skip-build-command-pr-test", "/es/skip-build-command-pr-test/"),
117 ("skip-build-command", "/es/skip-build-command/"),
118 ("singlehtml", "/es/singlehtml/"),
119 ("shot-scraper", "/es/shot-scraper/"),
120 ("search-special-chars", "/es/search-special-chars/"),
121 ("rust-1.70", "/es/rust-1.70/"),
122 ("rust", "/es/rust/"),
123 ("rtd-sphinx-ext", "/es/rtd-sphinx-ext/"),
124 ("robots-txt", "/es/robots-txt/"),
125 ("regular-404-page", "/es/regular-404-page/"),
126 ("recommonmark", "/es/recommonmark/"),
127 ("readthedocs-docs-build-commands", "/es/readthedocs-docs-build-commands/"),
128 ("python-system-packages", "/es/python-system-packages/"),
129 ("python-setuptools-package", "/es/python-setuptools-package/"),
130 ("py3.11a", "/es/py3.11a/"),
131 ("py3.11", "/es/py3.11/"),
132 ("py3.10", "/es/py3.10/"),
133 ("pr-visual-diff", "/es/pr-visual-diff/"),
134 ("pr-test-git-clone-test", "/es/pr-test-git-clone-test/"),
135 ("pr-test", "/es/pr-test/"),
136 ("pr-readthedocs_output", "/es/pr-readthedocs_output/"),
137 ("pr-js-client", "/es/pr-js-client/"),
138 ("pr-homepage-edition", "/es/pr-homepage-edition/"),
139 ("pr-docusaurus", "/es/pr-docusaurus/"),
140 ("poetry-asdf", "/es/poetry-asdf/"),
141 ("poetry", "/es/poetry/"),
142 ("pelican", "/es/pelican/"),
143 ("pdf-rinohtype", "/es/pdf-rinohtype/"),
144 ("pdf-multiple", "/es/pdf-multiple/"),
145 ("pdf-cmd-fail", "/es/pdf-cmd-fail/"),
146 ("pdf-build-jobs", "/es/pdf-build-jobs/"),
147 ("ooops-all-json", "/es/ooops-all-json/"),
148 ("old-output-directory", "/es/old-output-directory/"),
149 ("no-pr-build", "/es/no-pr-build/"),
150 ("no-html-theme-defined", "/es/no-html-theme-defined/"),
151 ("no-conf-py", "/es/no-conf-py/"),
152 ("no-config-file", "/es/no-config-file/"),
153 ("monorepo", "/es/monorepo/"),
154 ("mkdocs-pdf", "/es/mkdocs-pdf/"),
155 ("mkdocs-material", "/es/mkdocs-material/"),
156 ("mkdocs-htmlzip", "/es/mkdocs-htmlzip/"),
157 ("mkdocs-config-at-root", "/es/mkdocs-config-at-root/"),
158 ("mkdocs", "/es/mkdocs/"),
159 ("manual-integrations", "/es/manual-integrations/"),
160 ("manual-integration-docsify", "/es/manual-integration-docsify/"),
161 ("mamba", "/es/mamba/"),
162 ("main", "/es/main/"),
163 ("linkcheck", "/es/linkcheck/"),
164 ("jupyter-notebook", "/es/jupyter-notebook/"),
165 ("jupyter-book", "/es/jupyter-book/"),
166 ("jsdoc-autoapi", "/es/jsdoc-autoapi/"),
167 ("jsdoc", "/es/jsdoc/"),
168 ("invalid-docker-image", "/es/invalid-docker-image/"),
169 ("install-setuptools", "/es/install-setuptools/"),
170 ("image", "/es/image/"),
171 ("humitos-poetry", "/es/humitos-poetry/"),
172 ("humitos-patch-2", "/es/humitos-patch-2/"),
173 ("git-submodules-invalid", "/es/git-submodules-invalid/"),
174 ("git-submodules", "/es/git-submodules/"),
175 ("git-lfs-build-jobs", "/es/git-lfs-build-jobs/"),
176 ("furo", "/es/furo/"),
177 ("expose-env-pip-error", "/es/expose-env-pip-error/"),
178 ("explicit-flyout-placement", "/es/explicit-flyout-placement/"),
179 ("expirement", "/es/expirement/"),
180 ("envvar-config-file", "/es/envvar-config-file/"),
181 ("docusaurus", "/es/docusaurus/"),
182 ("docsify-ads", "/es/docsify-ads/"),
183 ("docsify", "/es/docsify/"),
184 ("delete-sources", "/es/delete-sources/"),
185 ("d2lbook", "/es/d2lbook/"),
186 ("custom-404-page", "/es/custom-404-page/"),
187 ("csrf", "/es/csrf/"),
188 ("build-tools-update-2", "/es/build-tools-update-2/"),
189 ("build-tools-mamba", "/es/build-tools-mamba/"),
190 ("build-tools-conda", "/es/build-tools-conda/"),
191 ("build-tools", "/es/build-tools/"),
192 ("build-os-error-message", "/es/build-os-error-message/"),
193 ("build-latest-python-3.8", "/es/build-latest-python-3.8/"),
194 ("build-jobs-spaces-in-command", "/es/build-jobs-spaces-in-command/"),
195 ("build-jobs-post-build", "/es/build-jobs-post-build/"),
196 ("build-jobs-multiline", "/es/build-jobs-multiline/"),
197 ("build-jobs-diff-exit", "/es/build-jobs-diff-exit/"),
198 ("build-jobs", "/es/build-jobs/"),
199 ("build-image", "/es/build-image/"),
200 ("build-commands-multiline", "/es/build-commands-multiline/"),
201 ("build-commands-env-vars", "/es/build-commands-env-vars/"),
202 ("build-commands", "/es/build-commands/"),
203 ("bare-commands", "/es/bare-commands/"),
204 ("all-formats-build-jobs", "/es/all-formats-build-jobs/"),
205 ("all-formats-build-commands", "/es/all-formats-build-commands/"),
206 ("agj-test-pr", "/es/agj-test-pr/"),
207 ("agj-rtd-tf-example", "/es/agj-rtd-tf-example/"),
208 ],
209 'downloads': [
210 ],
211 'subprojects': [
212 ("stsewd-demo", "https://test.org.stsewd.dev/stsewd-demo/en/custom-404-page/"),
213 ],
214 'slug': 'another-test-stsewd',
215 'name': u'another-test-stsewd',
216 'rtd_language': u'es',
217 'programming_language': u'words',
218 'canonical_url': '',
219 'analytics_code': 'None',
220 'single_version': False,
221 'conf_py_path': '/docs/',
222 'api_host': 'https://readthedocs.org',
223 'github_user': 'readthedocs',
224 'proxied_api_host': '/_',
225 'github_repo': 'test-builds',
226 'github_version': 'humitos-patch-2',
227 'display_github': True,
228 'bitbucket_user': 'None',
229 'bitbucket_repo': 'None',
230 'bitbucket_version': 'humitos-patch-2',
231 'display_bitbucket': False,
232 'gitlab_user': 'None',
233 'gitlab_repo': 'None',
234 'gitlab_version': 'humitos-patch-2',
235 'display_gitlab': False,
236 'READTHEDOCS': True,
237 'using_theme': (html_theme == "default"),
238 'new_theme': (html_theme == "sphinx_rtd_theme"),
239 'source_suffix': SUFFIX,
240 'ad_free': False,
241 'docsearch_disabled': False,
242 'user_analytics_code': '',
243 'global_analytics_code': 'UA-17997319-1',
244 'commit': '617672ce',
245}
246
247# For sphinx >=1.8 we can use html_baseurl to set the canonical URL.
248# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_baseurl
249if version_info >= (1, 8):
250 if not globals().get('html_baseurl'):
251 html_baseurl = context['canonical_url']
252 context['canonical_url'] = None
253
254
255
256
257
258if 'html_context' in globals():
259 for key in context:
260 if key not in html_context:
261 html_context[key] = context[key]
262else:
263 html_context = context
264
265# Add custom RTD extension
266if 'extensions' in globals():
267 # Insert at the beginning because it can interfere
268 # with other extensions.
269 # See https://github.com/rtfd/readthedocs.org/pull/4054
270 extensions.insert(0, "readthedocs_ext.readthedocs")
271else:
272 extensions = ["readthedocs_ext.readthedocs"]
273
274# Add External version warning banner to the external version documentation
275if 'branch' == 'external':
276 extensions.insert(1, "readthedocs_ext.external_version_warning")
277 readthedocs_vcs_url = 'None'
278 readthedocs_build_url = 'https://readthedocs.org/projects/another-test-stsewd/builds/21778239/'
279
280project_language = 'es'
281
282# User's Sphinx configurations
283language_user = globals().get('language', None)
284latex_engine_user = globals().get('latex_engine', None)
285latex_elements_user = globals().get('latex_elements', None)
286
287# Remove this once xindy gets installed in Docker image and XINDYOPS
288# env variable is supported
289# https://github.com/rtfd/readthedocs-docker-images/pull/98
290latex_use_xindy = False
291
292chinese = any([
293 language_user in ('zh_CN', 'zh_TW'),
294 project_language in ('zh_CN', 'zh_TW'),
295])
296
297japanese = any([
298 language_user == 'ja',
299 project_language == 'ja',
300])
301
302if chinese:
303 latex_engine = latex_engine_user or 'xelatex'
304
305 latex_elements_rtd = {
306 'preamble': '\\usepackage[UTF8]{ctex}\n',
307 }
308 latex_elements = latex_elements_user or latex_elements_rtd
309elif japanese:
310 latex_engine = latex_engine_user or 'platex'
311
312# Make sure our build directory is always excluded
313exclude_patterns = globals().get('exclude_patterns', [])
314exclude_patterns.extend(['_build'])