Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/site/source/conf.py
4150 views
1
# Copyright 2014 The Emscripten Authors. All rights reserved.
2
# Emscripten is available under two separate licenses, the MIT license and the
3
# University of Illinois/NCSA Open Source License. Both these licenses can be
4
# found in the LICENSE file.
5
6
#
7
# Emscripten documentation build configuration file, created by
8
# sphinx-quickstart on Tue Jul 01 09:20:29 2014.
9
#
10
# This file is execfile()d with the current directory set to its
11
# containing dir.
12
#
13
# Note that not all possible configuration values are present in this
14
# autogenerated file.
15
#
16
# All configuration values have a default; values that are commented out
17
# serve to show the default.
18
19
import sys
20
import os
21
from pathlib import Path
22
23
24
# At the top. #HamishW https://pypi.python.org/pypi/sphinx-bootstrap-theme/ ...
25
#import sphinx_bootstrap_theme
26
27
28
# At the top. #HamishW http://sphinx-better-theme.readthedocs.org/en/latest/installation.html easy_install sphinx_better_theme
29
#from better import better_theme_path
30
#html_theme_path = [better_theme_path]
31
32
33
# At the top. #HamishW https://github.com/snide/sphinx_rtd_theme easy_install sphinx_rtd_theme
34
#import sphinx_rtd_theme
35
#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
36
37
html_theme_path = ['_themes',]
38
39
40
41
42
43
44
45
# If extensions (or modules to document with autodoc) are in another directory,
46
# add these directories to sys.path here. If the directory is relative to the
47
# documentation root, use os.path.abspath to make it absolute, like shown here.
48
#sys.path.insert(0, os.path.abspath('.'))
49
50
51
# -- General configuration ------------------------------------------------
52
53
# If your documentation needs a minimal Sphinx version, state it here.
54
#needs_sphinx = '1.0'
55
56
# Add any Sphinx extension module names here, as strings. They can be
57
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
58
# ones.
59
sys.path.insert(0, os.path.abspath('_themes'))
60
extensions = [
61
'sphinx.ext.autodoc',
62
'sphinx.ext.doctest',
63
'sphinx.ext.intersphinx',
64
'sphinx.ext.todo',
65
'sphinx.ext.coverage',
66
'sphinx.ext.ifconfig',
67
'sphinx.ext.viewcode',
68
'sphinxcontrib.jquery',
69
'emscripten_sphinx_rtd_theme',
70
# 'breathe', #added by HamishW
71
]
72
73
74
#Build "Todo" notes into the source
75
#todo_include_todos = 'True'
76
77
# Add any paths that contain templates here, relative to this directory.
78
templates_path = ['_templates']
79
80
# The suffix of source filenames.
81
source_suffix = {'.rst': 'restructuredtext'}
82
83
# The encoding of source files.
84
#source_encoding = 'utf-8-sig'
85
86
# The master toctree document.
87
master_doc = 'index'
88
89
# General information about the project.
90
project = u'Emscripten'
91
copyright = u'2015, '
92
# Note, theme was modified to allow this to display (fix breaks the translation code, which was breaking the above link and rendering it as text).
93
# Also so I could link to specific copyright page.
94
95
96
# The version info for the project you're documenting, acts as replacement for
97
# |version| and |release|, also used in various other places throughout the
98
# built documents.
99
#
100
version_path = Path(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'emscripten-version.txt').resolve()
101
emscripten_version = version_path.read_text().strip().strip('"')
102
103
# The short X.Y version.
104
version = emscripten_version[:emscripten_version.rindex('.')]
105
# The full version, including alpha/beta/rc tags.
106
release = emscripten_version + ' (dev)'
107
108
# The language for content autogenerated by Sphinx. Refer to documentation
109
# for a list of supported languages.
110
#language = None
111
112
# There are two options for replacing |today|: either, you set today to some
113
# non-false value, then it is used:
114
#today = ''
115
# Else, today_fmt is used as the format for a strftime call.
116
#today_fmt = '%B %d, %Y'
117
118
# List of patterns, relative to source directory, that match files and
119
# directories to ignore when looking for source files.
120
exclude_patterns = []
121
122
# The reST default role (used for this markup: `text`) to use for all
123
# documents.
124
#default_role = None
125
126
# If true, '()' will be appended to :func: etc. cross-reference text.
127
#add_function_parentheses = True
128
129
# If true, the current module name will be prepended to all description
130
# unit titles (such as .. function::).
131
#add_module_names = True
132
133
# If true, sectionauthor and moduleauthor directives will be shown in the
134
# output. They are ignored by default.
135
#show_authors = False
136
137
# The name of the Pygments (syntax highlighting) style to use.
138
pygments_style = 'sphinx'
139
140
# A list of ignored prefixes for module index sorting.
141
#modindex_common_prefix = []
142
143
# If true, keep warnings as "system message" paragraphs in the built documents.
144
#keep_warnings = False
145
146
147
# -- Options for HTML output ----------------------------------------------
148
149
# The theme to use for HTML and HTML Help pages. See the documentation for
150
# a list of builtin themes.
151
#html_theme = 'default'
152
#html_theme = 'sphinxdoc'
153
#html_theme = 'agogo' #like this
154
#html_theme = 'scrolls'
155
#html_theme = 'bootstrap'
156
#html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
157
#html_theme = 'better'
158
#html_theme = 'pyramid'
159
#html_theme = 'nature'
160
#html_theme = 'haiku'
161
#html_theme = "sphinx_rtd_theme"
162
html_theme = "emscripten_sphinx_rtd_theme"
163
164
# Theme options are theme-specific and customize the look and feel of a theme
165
# further. For a list of options available for each theme, see the
166
# documentation.
167
html_theme_options = {
168
'logo_only': True
169
}
170
171
172
# Add any paths that contain custom themes here, relative to this directory.
173
#html_theme_path = []
174
175
# The name for this set of Sphinx documents. If None, it defaults to
176
# "<project> v<release> documentation".
177
#html_title = None
178
179
# A shorter title for the navigation bar. Default is the same as html_title.
180
#html_short_title = None
181
182
# The name of an image file (relative to this directory) to place at the top
183
# of the sidebar.
184
html_logo = '_static/Emscripten_logo_full.png'
185
186
187
# The name of an image file (within the static path) to use as favicon of the
188
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
189
# pixels large.
190
html_favicon = '_static/emscripten.ico'
191
192
# Add any paths that contain custom static files (such as style sheets) here,
193
# relative to this directory. They are copied after the builtin static files,
194
# so a file named "default.css" will overwrite the builtin "default.css".
195
html_static_path = ['_static']
196
197
# Add any extra paths that contain custom files (such as robots.txt or
198
# .htaccess) here, relative to this directory. These files are copied
199
# directly to the root of the documentation.
200
#html_extra_path = []
201
202
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
203
# using the given strftime format.
204
#html_last_updated_fmt = '%b %d, %Y'
205
206
# If true, SmartyPants will be used to convert quotes and dashes to
207
# typographically correct entities.
208
#html_use_smartypants = True
209
210
# Custom sidebar templates, maps document names to template names.
211
#html_sidebars = {}
212
213
# Additional templates that should be rendered to pages, maps page names to
214
# template names.
215
#html_additional_pages = {}
216
217
# If false, no module index is generated.
218
#html_domain_indices = True
219
220
# If false, no index is generated.
221
#html_use_index = True
222
223
# If true, the index is split into individual pages for each letter.
224
#html_split_index = False
225
226
# If true, links to the reST sources are added to the pages.
227
html_show_sourcelink = False
228
229
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
230
#html_show_sphinx = True
231
232
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
233
#html_show_copyright = True
234
235
# If true, an OpenSearch description file will be output, and all pages will
236
# contain a <link> tag referring to it. The value of this option must be the
237
# base URL from which the finished HTML is served.
238
#html_use_opensearch = ''
239
240
# This is the file name suffix for HTML files (e.g. ".xhtml").
241
#html_file_suffix = None
242
243
# Output file base name for HTML help builder.
244
htmlhelp_basename = 'Emscriptendoc'
245
246
247
# -- Options for LaTeX output ---------------------------------------------
248
249
latex_elements = {
250
# The paper size ('letterpaper' or 'a4paper').
251
#'papersize': 'letterpaper',
252
253
# The font size ('10pt', '11pt' or '12pt').
254
#'pointsize': '10pt',
255
256
# Additional stuff for the LaTeX preamble.
257
#'preamble': '',
258
}
259
260
# Grouping the document tree into LaTeX files. List of tuples
261
# (source start file, target name, title,
262
# author, documentclass [howto, manual, or own class]).
263
latex_documents = [
264
('index', 'Emscripten.tex', u'Emscripten Documentation',
265
u'Hamish Willee', 'manual'),
266
]
267
268
# The name of an image file (relative to this directory) to place at the top of
269
# the title page.
270
#latex_logo = None
271
272
# For "manual" documents, if this is true, then toplevel headings are parts,
273
# not chapters.
274
#latex_use_parts = False
275
276
# If true, show page references after internal links.
277
#latex_show_pagerefs = False
278
279
# If true, show URL addresses after external links.
280
#latex_show_urls = False
281
282
# Documents to append as an appendix to all manuals.
283
#latex_appendices = []
284
285
# If false, no module index is generated.
286
#latex_domain_indices = True
287
288
289
# -- Options for manual page output ---------------------------------------
290
291
# One entry per manual page. List of tuples
292
# (source start file, name, description, authors, manual section).
293
man_pages = [
294
('index', 'emscripten', u'Emscripten Documentation',
295
[u'Hamish Willee'], 1)
296
]
297
298
# If true, show URL addresses after external links.
299
#man_show_urls = False
300
301
302
# -- Options for Texinfo output -------------------------------------------
303
304
# Grouping the document tree into Texinfo files. List of tuples
305
# (source start file, target name, title, author,
306
# dir menu entry, description, category)
307
texinfo_documents = [
308
('index', 'Emscripten', u'Emscripten Documentation',
309
u'Hamish Willee', 'Emscripten', 'One line description of project.',
310
'Miscellaneous'),
311
]
312
313
# Documents to append as an appendix to all manuals.
314
#texinfo_appendices = []
315
316
# If false, no module index is generated.
317
#texinfo_domain_indices = True
318
319
# How to display URL addresses: 'footnote', 'no', or 'inline'.
320
#texinfo_show_urls = 'footnote'
321
322
# If true, do not generate a @detailmenu in the "Top" node's menu.
323
#texinfo_no_detailmenu = False
324
325
326
# -- Options for Epub output ----------------------------------------------
327
328
# Bibliographic Dublin Core info.
329
epub_title = u'Emscripten'
330
epub_author = u'Hamish Willee'
331
epub_publisher = u'Hamish Willee'
332
epub_copyright = u'2014, Emscripten Contributors'
333
334
# The basename for the epub file. It defaults to the project name.
335
#epub_basename = u'Emscripten'
336
337
# The HTML theme for the epub output. Since the default themes are not optimized
338
# for small screen space, using the same theme for HTML and epub output is
339
# usually not wise. This defaults to 'epub', a theme designed to save visual
340
# space.
341
#epub_theme = 'epub'
342
343
# The language of the text. It defaults to the language option
344
# or en if the language is not set.
345
#epub_language = ''
346
347
# The scheme of the identifier. Typical schemes are ISBN or URL.
348
#epub_scheme = ''
349
350
# The unique identifier of the text. This can be a ISBN number
351
# or the project homepage.
352
#epub_identifier = ''
353
354
# A unique identification for the text.
355
#epub_uid = ''
356
357
# A tuple containing the cover image and cover page html template filenames.
358
#epub_cover = ()
359
360
# A sequence of (type, uri, title) tuples for the guide element of content.opf.
361
#epub_guide = ()
362
363
# HTML files that should be inserted before the pages created by sphinx.
364
# The format is a list of tuples containing the path and title.
365
#epub_pre_files = []
366
367
# HTML files shat should be inserted after the pages created by sphinx.
368
# The format is a list of tuples containing the path and title.
369
#epub_post_files = []
370
371
# A list of files that should not be packed into the epub file.
372
epub_exclude_files = ['search.html']
373
374
# The depth of the table of contents in toc.ncx.
375
#epub_tocdepth = 3
376
377
# Allow duplicate toc entries.
378
#epub_tocdup = True
379
380
# Choose between 'default' and 'includehidden'.
381
#epub_tocscope = 'default'
382
383
# Fix unsupported image types using the PIL.
384
#epub_fix_images = False
385
386
# Scale large images.
387
#epub_max_image_width = 0
388
389
# How to display URL addresses: 'footnote', 'no', or 'inline'.
390
#epub_show_urls = 'inline'
391
392
# If false, no index is generated.
393
#epub_use_index = True
394
395
#highlight_language = 'default'
396
397
primary_domain = 'cpp'
398
399