on 4e4b7df help sign in
Idris-dev/docs/conf.py
368 lines 12 kB history raw
1# -*- coding: utf-8 -*-
2#
3# Idris Manual documentation build configuration file, created by
4# sphinx-quickstart on Sat Feb 28 20:41:47 2015.
5#
6# This file is execfile()d with the current directory set to its
7# containing dir.
8#
9# Note that not all possible configuration values are present in this
10# autogenerated file.
12# All configuration values have a default; values that are commented out
13# serve to show the default.
15import sys
16import os
18# True if the readthedocs theme is locally installed
19on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
21# If extensions (or modules to document with autodoc) are in another directory,
22# add these directories to sys.path here. If the directory is relative to the
23# documentation root, use os.path.abspath to make it absolute, like shown here.
24#sys.path.insert(0, os.path.abspath('.'))
26# -- General configuration ------------------------------------------------
28# If your documentation needs a minimal Sphinx version, state it here.
29#needs_sphinx = '1.0'
31# Add any Sphinx extension module names here, as strings. They can be
32# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33# ones.
34extensions = [
35 'sphinx.ext.todo',
36 'sphinx.ext.pngmath',
37 'sphinx.ext.ifconfig',
40# Add any paths that contain templates here, relative to this directory.
41templates_path = ['_templates']
43# The suffix of source filenames.
44source_suffix = '.rst'
46# The encoding of source files.
47#source_encoding = 'utf-8-sig'
49# The master toctree document.
50master_doc = 'index'
52# General information about the project.
53project = u'Idris'
54copyright = u'2015, The Idris Community'
55author = u'The Idris Community'
57# The version info for the project you're documenting, acts as replacement for
58# |version| and |release|, also used in various other places throughout the
59# built documents.
61# The short X.Y version.
62version = '0.10.2'
63# The full version, including alpha/beta/rc tags.
64release = '0.10.2'
66# The language for content autogenerated by Sphinx. Refer to documentation
67# for a list of supported languages.
69# This is also used if you do content translation via gettext catalogs.
70# Usually you set "language" from the command line for these cases.
71language = None
73# There are two options for replacing |today|: either, you set today to some
74# non-false value, then it is used:
75#today = ''
76# Else, today_fmt is used as the format for a strftime call.
77#today_fmt = '%B %d, %Y'
79# List of patterns, relative to source directory, that match files and
80# directories to ignore when looking for source files.
81exclude_patterns = ['_build']
83# The reST default role (used for this markup: `text`) to use for all
84# documents.
85#default_role = None
87# If true, '()' will be appended to :func: etc. cross-reference text.
88#add_function_parentheses = True
90# If true, the current module name will be prepended to all description
91# unit titles (such as .. function::).
92#add_module_names = True
94# If true, sectionauthor and moduleauthor directives will be shown in the
95# output. They are ignored by default.
96#show_authors = False
98# The name of the Pygments (syntax highlighting) style to use.
99pygments_style = 'sphinx'
101# A list of ignored prefixes for module index sorting.
102#modindex_common_prefix = []
104# If true, keep warnings as "system message" paragraphs in the built documents.
105#keep_warnings = False
107# If true, `todo` and `todoList` produce output, else they produce nothing.
108todo_include_todos = True
111# -- Options for HTML output ----------------------------------------------
113# The theme to use for HTML and HTML Help pages. See the documentation for
114# a list of builtin themes.
115html_theme = "default"
117if not on_rtd: # only import and set the theme if we're building docs locally
118 try:
119 import sphinx_rtd_theme
120 html_theme = 'sphinx_rtd_theme'
121 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122 except ImportError:
123 html_theme = "default"
125# Theme options are theme-specific and customize the look and feel of a theme
126# further. For a list of options available for each theme, see the
127# documentation.
128#html_theme_options = {}
130# Add any paths that contain custom themes here, relative to this directory.
131#html_theme_path = []
133# The name for this set of Sphinx documents. If None, it defaults to
134# "<project> v<release> documentation".
135#html_title = None
137# A shorter title for the navigation bar. Default is the same as html_title.
138#html_short_title = None
140# The name of an image file (relative to this directory) to place at the top
141# of the sidebar.
142#html_logo = None
144# The name of an image file (within the static path) to use as favicon of the
145# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
146# pixels large.
147#html_favicon = None
149# Add any paths that contain custom static files (such as style sheets) here,
150# relative to this directory. They are copied after the builtin static files,
151# so a file named "default.css" will overwrite the builtin "default.css".
152html_static_path = ['_static']
154# Add any extra paths that contain custom files (such as robots.txt or
155# .htaccess) here, relative to this directory. These files are copied
156# directly to the root of the documentation.
157#html_extra_path = []
159# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
160# using the given strftime format.
161#html_last_updated_fmt = '%b %d, %Y'
163# If true, SmartyPants will be used to convert quotes and dashes to
164# typographically correct entities.
165#html_use_smartypants = True
167# Custom sidebar templates, maps document names to template names.
168#html_sidebars = {}
170# Additional templates that should be rendered to pages, maps page names to
171# template names.
172#html_additional_pages = {}
174# If false, no module index is generated.
175#html_domain_indices = True
177# If false, no index is generated.
178#html_use_index = True
180# If true, the index is split into individual pages for each letter.
181#html_split_index = False
183# If true, links to the reST sources are added to the pages.
184#html_show_sourcelink = True
186# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
187#html_show_sphinx = True
189# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
190#html_show_copyright = True
192# If true, an OpenSearch description file will be output, and all pages will
193# contain a <link> tag referring to it. The value of this option must be the
194# base URL from which the finished HTML is served.
195#html_use_opensearch = ''
197# This is the file name suffix for HTML files (e.g. ".xhtml").
198#html_file_suffix = None
200# Language to be used for generating the HTML full-text search index.
201# Sphinx supports the following languages:
202# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
203# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
204#html_search_language = 'en'
206# A dictionary with options for the search language support, empty by default.
207# Now only 'ja' uses this config value
208#html_search_options = {'type': 'default'}
210# The name of a javascript file (relative to the configuration directory) that
211# implements a search results scorer. If empty, the default will be used.
212#html_search_scorer = 'scorer.js'
214# Output file base name for HTML help builder.
215htmlhelp_basename = 'IdrisManualdoc'
217# -- Options for LaTeX output ---------------------------------------------
219latex_elements = {
220# The paper size ('letterpaper' or 'a4paper').
221'papersize': 'a4paper',
223# The font size ('10pt', '11pt' or '12pt').
224'pointsize': '10pt',
226# Additional stuff for the LaTeX preamble.
227#'preamble': '',
229# Latex figure (float) alignment
230#'figure_align': 'htbp',
233# Grouping the document tree into LaTeX files. List of tuples
234# (source start file, target name, title,
235# author, documentclass [howto, manual, or own class]).
236latex_documents = [
237 ('tutorial/index', 'idris-tutorial.tex', u'The Idris Tutorial', u'The Idris Community', 'manual'),
238 ('guides/index', 'idris-guides.tex', u'Idris Tutorial Series', u'The Idris Community', 'manual'),
239# ('reference/index', 'idris-reference.tex', u'The Idris Reference', u'The Idris Community', 'manual'),
240 ('effects/index', 'eff-tutorial.tex', u'The Effects Tutorial', u'The Idris Community', 'manual')
241 ]
243# The name of an image file (relative to this directory) to place at the top of
244# the title page.
245#latex_logo = None
247# For "manual" documents, if this is true, then toplevel headings are parts,
248# not chapters.
249#latex_use_parts = True
251# If true, show page references after internal links.
252#latex_show_pagerefs = False
254# If true, show URL addresses after external links.
255#latex_show_urls = False
257# Documents to append as an appendix to all manuals.
258#latex_appendices = []
260# If false, no module index is generated.
261#latex_domain_indices = True
264# -- Options for manual page output ---------------------------------------
266# One entry per manual page. List of tuples
267# (source start file, name, description, authors, manual section).
268man_pages = [
269 (master_doc, 'idrismanual', u'Idris Manual Documentation',
270 [author], 1)
273# If true, show URL addresses after external links.
274#man_show_urls = False
277# -- Options for Texinfo output -------------------------------------------
279# Grouping the document tree into Texinfo files. List of tuples
280# (source start file, target name, title, author,
281# dir menu entry, description, category)
282texinfo_documents = [
283 (master_doc, 'IdrisManual', u'Idris Manual Documentation',
284 author, 'IdrisManual', 'One line description of project.',
285 'Miscellaneous'),
288# Documents to append as an appendix to all manuals.
289#texinfo_appendices = []
291# If false, no module index is generated.
292#texinfo_domain_indices = True
294# How to display URL addresses: 'footnote', 'no', or 'inline'.
295#texinfo_show_urls = 'footnote'
297# If true, do not generate a @detailmenu in the "Top" node's menu.
298#texinfo_no_detailmenu = False
301# -- Options for Epub output ----------------------------------------------
303# Bibliographic Dublin Core info.
304epub_title = project
305epub_author = author
306epub_publisher = author
307epub_copyright = copyright
309# The basename for the epub file. It defaults to the project name.
310#epub_basename = project
312# The HTML theme for the epub output. Since the default themes are not optimized
313# for small screen space, using the same theme for HTML and epub output is
314# usually not wise. This defaults to 'epub', a theme designed to save visual
315# space.
316#epub_theme = 'epub'
318# The language of the text. It defaults to the language option
319# or 'en' if the language is not set.
320#epub_language = ''
322# The scheme of the identifier. Typical schemes are ISBN or URL.
323#epub_scheme = ''
325# The unique identifier of the text. This can be a ISBN number
326# or the project homepage.
327#epub_identifier = ''
329# A unique identification for the text.
330#epub_uid = ''
332# A tuple containing the cover image and cover page html template filenames.
333#epub_cover = ()
335# A sequence of (type, uri, title) tuples for the guide element of content.opf.
336#epub_guide = ()
338# HTML files that should be inserted before the pages created by sphinx.
339# The format is a list of tuples containing the path and title.
340#epub_pre_files = []
342# HTML files shat should be inserted after the pages created by sphinx.
343# The format is a list of tuples containing the path and title.
344#epub_post_files = []
346# A list of files that should not be packed into the epub file.
347epub_exclude_files = ['search.html']
349# The depth of the table of contents in toc.ncx.
350#epub_tocdepth = 3
352# Allow duplicate toc entries.
353#epub_tocdup = True
355# Choose between 'default' and 'includehidden'.
356#epub_tocscope = 'default'
358# Fix unsupported image types using the Pillow.
359#epub_fix_images = False
361# Scale large images.
362#epub_max_image_width = 0
364# How to display URL addresses: 'footnote', 'no', or 'inline'.
365#epub_show_urls = 'inline'
367# If false, no index is generated.
368#epub_use_index = True