# Copyright 2014 The Emscripten Authors. All rights reserved.1# Emscripten is available under two separate licenses, the MIT license and the2# University of Illinois/NCSA Open Source License. Both these licenses can be3# found in the LICENSE file.45#6# Emscripten documentation build configuration file, created by7# sphinx-quickstart on Tue Jul 01 09:20:29 2014.8#9# This file is execfile()d with the current directory set to its10# containing dir.11#12# Note that not all possible configuration values are present in this13# autogenerated file.14#15# All configuration values have a default; values that are commented out16# serve to show the default.1718import sys19import os20from pathlib import Path212223# At the top. #HamishW https://pypi.python.org/pypi/sphinx-bootstrap-theme/ ...24#import sphinx_bootstrap_theme252627# At the top. #HamishW http://sphinx-better-theme.readthedocs.org/en/latest/installation.html easy_install sphinx_better_theme28#from better import better_theme_path29#html_theme_path = [better_theme_path]303132# At the top. #HamishW https://github.com/snide/sphinx_rtd_theme easy_install sphinx_rtd_theme33#import sphinx_rtd_theme34#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]3536html_theme_path = ['_themes',]3738394041424344# If extensions (or modules to document with autodoc) are in another directory,45# add these directories to sys.path here. If the directory is relative to the46# documentation root, use os.path.abspath to make it absolute, like shown here.47#sys.path.insert(0, os.path.abspath('.'))484950# -- General configuration ------------------------------------------------5152# If your documentation needs a minimal Sphinx version, state it here.53#needs_sphinx = '1.0'5455# Add any Sphinx extension module names here, as strings. They can be56# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom57# ones.58sys.path.insert(0, os.path.abspath('_themes'))59extensions = [60'sphinx.ext.autodoc',61'sphinx.ext.doctest',62'sphinx.ext.intersphinx',63'sphinx.ext.todo',64'sphinx.ext.coverage',65'sphinx.ext.ifconfig',66'sphinx.ext.viewcode',67'sphinxcontrib.jquery',68'emscripten_sphinx_rtd_theme',69# 'breathe', #added by HamishW70]717273#Build "Todo" notes into the source74#todo_include_todos = 'True'7576# Add any paths that contain templates here, relative to this directory.77templates_path = ['_templates']7879# The suffix of source filenames.80source_suffix = {'.rst': 'restructuredtext'}8182# The encoding of source files.83#source_encoding = 'utf-8-sig'8485# The master toctree document.86master_doc = 'index'8788# General information about the project.89project = u'Emscripten'90copyright = u'2015, '91# 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).92# Also so I could link to specific copyright page.939495# The version info for the project you're documenting, acts as replacement for96# |version| and |release|, also used in various other places throughout the97# built documents.98#99version_path = Path(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'emscripten-version.txt').resolve()100emscripten_version = version_path.read_text().strip().strip('"')101102# The short X.Y version.103version = emscripten_version[:emscripten_version.rindex('.')]104# The full version, including alpha/beta/rc tags.105release = emscripten_version + ' (dev)'106107# The language for content autogenerated by Sphinx. Refer to documentation108# for a list of supported languages.109#language = None110111# There are two options for replacing |today|: either, you set today to some112# non-false value, then it is used:113#today = ''114# Else, today_fmt is used as the format for a strftime call.115#today_fmt = '%B %d, %Y'116117# List of patterns, relative to source directory, that match files and118# directories to ignore when looking for source files.119exclude_patterns = []120121# The reST default role (used for this markup: `text`) to use for all122# documents.123#default_role = None124125# If true, '()' will be appended to :func: etc. cross-reference text.126#add_function_parentheses = True127128# If true, the current module name will be prepended to all description129# unit titles (such as .. function::).130#add_module_names = True131132# If true, sectionauthor and moduleauthor directives will be shown in the133# output. They are ignored by default.134#show_authors = False135136# The name of the Pygments (syntax highlighting) style to use.137pygments_style = 'sphinx'138139# A list of ignored prefixes for module index sorting.140#modindex_common_prefix = []141142# If true, keep warnings as "system message" paragraphs in the built documents.143#keep_warnings = False144145146# -- Options for HTML output ----------------------------------------------147148# The theme to use for HTML and HTML Help pages. See the documentation for149# a list of builtin themes.150#html_theme = 'default'151#html_theme = 'sphinxdoc'152#html_theme = 'agogo' #like this153#html_theme = 'scrolls'154#html_theme = 'bootstrap'155#html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()156#html_theme = 'better'157#html_theme = 'pyramid'158#html_theme = 'nature'159#html_theme = 'haiku'160#html_theme = "sphinx_rtd_theme"161html_theme = "emscripten_sphinx_rtd_theme"162163# Theme options are theme-specific and customize the look and feel of a theme164# further. For a list of options available for each theme, see the165# documentation.166html_theme_options = {167'logo_only': True168}169170171# Add any paths that contain custom themes here, relative to this directory.172#html_theme_path = []173174# The name for this set of Sphinx documents. If None, it defaults to175# "<project> v<release> documentation".176#html_title = None177178# A shorter title for the navigation bar. Default is the same as html_title.179#html_short_title = None180181# The name of an image file (relative to this directory) to place at the top182# of the sidebar.183html_logo = '_static/Emscripten_logo_full.png'184185186# The name of an image file (within the static path) to use as favicon of the187# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32188# pixels large.189html_favicon = '_static/emscripten.ico'190191# Add any paths that contain custom static files (such as style sheets) here,192# relative to this directory. They are copied after the builtin static files,193# so a file named "default.css" will overwrite the builtin "default.css".194html_static_path = ['_static']195196# Add any extra paths that contain custom files (such as robots.txt or197# .htaccess) here, relative to this directory. These files are copied198# directly to the root of the documentation.199#html_extra_path = []200201# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,202# using the given strftime format.203#html_last_updated_fmt = '%b %d, %Y'204205# If true, SmartyPants will be used to convert quotes and dashes to206# typographically correct entities.207#html_use_smartypants = True208209# Custom sidebar templates, maps document names to template names.210#html_sidebars = {}211212# Additional templates that should be rendered to pages, maps page names to213# template names.214#html_additional_pages = {}215216# If false, no module index is generated.217#html_domain_indices = True218219# If false, no index is generated.220#html_use_index = True221222# If true, the index is split into individual pages for each letter.223#html_split_index = False224225# If true, links to the reST sources are added to the pages.226html_show_sourcelink = False227228# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.229#html_show_sphinx = True230231# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.232#html_show_copyright = True233234# If true, an OpenSearch description file will be output, and all pages will235# contain a <link> tag referring to it. The value of this option must be the236# base URL from which the finished HTML is served.237#html_use_opensearch = ''238239# This is the file name suffix for HTML files (e.g. ".xhtml").240#html_file_suffix = None241242# Output file base name for HTML help builder.243htmlhelp_basename = 'Emscriptendoc'244245246# -- Options for LaTeX output ---------------------------------------------247248latex_elements = {249# The paper size ('letterpaper' or 'a4paper').250#'papersize': 'letterpaper',251252# The font size ('10pt', '11pt' or '12pt').253#'pointsize': '10pt',254255# Additional stuff for the LaTeX preamble.256#'preamble': '',257}258259# Grouping the document tree into LaTeX files. List of tuples260# (source start file, target name, title,261# author, documentclass [howto, manual, or own class]).262latex_documents = [263('index', 'Emscripten.tex', u'Emscripten Documentation',264u'Hamish Willee', 'manual'),265]266267# The name of an image file (relative to this directory) to place at the top of268# the title page.269#latex_logo = None270271# For "manual" documents, if this is true, then toplevel headings are parts,272# not chapters.273#latex_use_parts = False274275# If true, show page references after internal links.276#latex_show_pagerefs = False277278# If true, show URL addresses after external links.279#latex_show_urls = False280281# Documents to append as an appendix to all manuals.282#latex_appendices = []283284# If false, no module index is generated.285#latex_domain_indices = True286287288# -- Options for manual page output ---------------------------------------289290# One entry per manual page. List of tuples291# (source start file, name, description, authors, manual section).292man_pages = [293('index', 'emscripten', u'Emscripten Documentation',294[u'Hamish Willee'], 1)295]296297# If true, show URL addresses after external links.298#man_show_urls = False299300301# -- Options for Texinfo output -------------------------------------------302303# Grouping the document tree into Texinfo files. List of tuples304# (source start file, target name, title, author,305# dir menu entry, description, category)306texinfo_documents = [307('index', 'Emscripten', u'Emscripten Documentation',308u'Hamish Willee', 'Emscripten', 'One line description of project.',309'Miscellaneous'),310]311312# Documents to append as an appendix to all manuals.313#texinfo_appendices = []314315# If false, no module index is generated.316#texinfo_domain_indices = True317318# How to display URL addresses: 'footnote', 'no', or 'inline'.319#texinfo_show_urls = 'footnote'320321# If true, do not generate a @detailmenu in the "Top" node's menu.322#texinfo_no_detailmenu = False323324325# -- Options for Epub output ----------------------------------------------326327# Bibliographic Dublin Core info.328epub_title = u'Emscripten'329epub_author = u'Hamish Willee'330epub_publisher = u'Hamish Willee'331epub_copyright = u'2014, Emscripten Contributors'332333# The basename for the epub file. It defaults to the project name.334#epub_basename = u'Emscripten'335336# The HTML theme for the epub output. Since the default themes are not optimized337# for small screen space, using the same theme for HTML and epub output is338# usually not wise. This defaults to 'epub', a theme designed to save visual339# space.340#epub_theme = 'epub'341342# The language of the text. It defaults to the language option343# or en if the language is not set.344#epub_language = ''345346# The scheme of the identifier. Typical schemes are ISBN or URL.347#epub_scheme = ''348349# The unique identifier of the text. This can be a ISBN number350# or the project homepage.351#epub_identifier = ''352353# A unique identification for the text.354#epub_uid = ''355356# A tuple containing the cover image and cover page html template filenames.357#epub_cover = ()358359# A sequence of (type, uri, title) tuples for the guide element of content.opf.360#epub_guide = ()361362# HTML files that should be inserted before the pages created by sphinx.363# The format is a list of tuples containing the path and title.364#epub_pre_files = []365366# HTML files shat should be inserted after the pages created by sphinx.367# The format is a list of tuples containing the path and title.368#epub_post_files = []369370# A list of files that should not be packed into the epub file.371epub_exclude_files = ['search.html']372373# The depth of the table of contents in toc.ncx.374#epub_tocdepth = 3375376# Allow duplicate toc entries.377#epub_tocdup = True378379# Choose between 'default' and 'includehidden'.380#epub_tocscope = 'default'381382# Fix unsupported image types using the PIL.383#epub_fix_images = False384385# Scale large images.386#epub_max_image_width = 0387388# How to display URL addresses: 'footnote', 'no', or 'inline'.389#epub_show_urls = 'inline'390391# If false, no index is generated.392#epub_use_index = True393394#highlight_language = 'default'395396primary_domain = 'cpp'397398399