23 copyright =
u'2019, Åke Nordlund' 24 author =
u'Åke Nordlund' 45 'sphinx.ext.ifconfig',
49 templates_path = [
'_templates']
54 source_suffix = [
'.rst',
'.md']
70 exclude_patterns = [
'_build',
'Thumbs.db',
'.DS_Store',
"../.git/.*",
".git/.*"]
77 html_extra_path = [
'_doxy/html']
83 html_theme =
'sphinx_rtd_theme' 94 html_static_path = [
'_static']
110 htmlhelp_basename =
'DISPATCHdoc' 137 (master_doc,
'DISPATCH.tex',
'DISPATCH Documentation',
138 u'Åke Nordlund',
'manual'),
147 (master_doc,
'dispatch',
'DISPATCH Documentation',
157 texinfo_documents = [
158 (master_doc,
'DISPATCH',
'DISPATCH Documentation',
159 author,
'DISPATCH',
'One line description of project.',
179 epub_exclude_files = [
'search.html']
187 todo_include_todos =
True 190 subprocess.call(
'doxygen', shell=
True)
191 subprocess.call(
'ls -R', shell=
True)
212 from six
import string_types
214 from sphinx
import version_info
219 if globals().get(
'source_suffix',
False):
220 if isinstance(source_suffix, string_types):
221 SUFFIX = source_suffix
222 elif isinstance(source_suffix, (list, tuple)):
224 SUFFIX = source_suffix[0]
225 elif isinstance(source_suffix, dict):
227 SUFFIX = list(source_suffix.keys())[0]
235 if not 'html_static_path' in globals():
236 html_static_path = []
237 if os.path.exists(
'_static'):
238 html_static_path.append(
'_static')
243 'html_theme' in globals()
and 244 html_theme
in [
'default']
and 246 'html_style' not in globals()
247 )
or 'html_theme' not in globals()
250 theme = importlib.import_module(
'sphinx_rtd_theme')
251 html_theme =
'sphinx_rtd_theme' 253 html_theme_options = {}
254 if 'html_theme_path' in globals():
255 html_theme_path.append(theme.get_html_theme_path())
257 html_theme_path = [theme.get_html_theme_path()]
259 if globals().get(
'websupport2_base_url',
False):
260 websupport2_base_url =
'https://readthedocs.org/websupport' 261 websupport2_static_url =
'https://assets.readthedocs.org/static/' 266 'using_theme': using_rtd_theme,
267 'html_theme': html_theme,
268 'current_version':
"latest",
269 'version_slug':
"latest",
270 'MEDIA_URL':
"https://media.readthedocs.org/",
271 'STATIC_URL':
"https://assets.readthedocs.org/static/",
272 'PRODUCTION_DOMAIN':
"readthedocs.org",
274 (
"latest",
"/en/latest/"),
275 (
"stable",
"/en/stable/"),
278 (
"pdf",
"//dispatch.readthedocs.io/_/downloads/en/latest/pdf/"),
279 (
"html",
"//dispatch.readthedocs.io/_/downloads/en/latest/htmlzip/"),
280 (
"epub",
"//dispatch.readthedocs.io/_/downloads/en/latest/epub/"),
286 'rtd_language':
u'en',
287 'programming_language':
u'words',
288 'canonical_url':
'https://dispatch.readthedocs.io/en/latest/',
289 'analytics_code':
'UA-142581668-2',
290 'single_version':
False,
291 'conf_py_path':
'/docs/',
292 'api_host':
'https://readthedocs.org',
293 'proxied_api_host':
'https://readthedocs.org',
294 'github_user':
'None',
295 'github_repo':
'None',
296 'github_version':
'master',
297 'display_github':
False,
298 'bitbucket_user':
'aanordlund',
299 'bitbucket_repo':
'dispatch',
300 'bitbucket_version':
'master',
301 'display_bitbucket':
True,
302 'gitlab_user':
'None',
303 'gitlab_repo':
'None',
304 'gitlab_version':
'master',
305 'display_gitlab':
False,
307 'using_theme': (html_theme ==
"default"),
308 'new_theme': (html_theme ==
"sphinx_rtd_theme"),
309 'source_suffix': SUFFIX,
311 'user_analytics_code':
'UA-142581668-2',
312 'global_analytics_code':
'UA-17997319-1',
313 'commit':
'f89d4f60',
319 if 'html_context' in globals():
321 html_context.update(context)
324 html_context = context
327 if 'extensions' in globals():
331 extensions.insert(0,
"readthedocs_ext.readthedocs")
333 extensions = [
"readthedocs_ext.readthedocs"]
336 if 'branch' ==
'external':
337 extensions.insert(1,
"readthedocs_ext.external_version_warning")
339 project_language =
'en' 342 language_user = globals().get(
'language',
None)
343 latex_engine_user = globals().get(
'latex_engine',
None)
344 latex_elements_user = globals().get(
'latex_elements',
None)
349 latex_use_xindy =
False 352 language_user
in (
'zh_CN',
'zh_TW'),
353 project_language
in (
'zh_CN',
'zh_TW'),
357 language_user ==
'ja',
358 project_language ==
'ja',
362 latex_engine = latex_engine_user
or 'xelatex' 364 latex_elements_rtd = {
365 'preamble':
'\\usepackage[UTF8]{ctex}\n',
367 latex_elements = latex_elements_user
or latex_elements_rtd
369 latex_engine = latex_engine_user
or 'platex'