]> gitweb.michael.orlitzky.com - dunshire.git/blob - doc/source/conf.py
setup.py,doc/source/conf.py: bump to version 0.1.3
[dunshire.git] / doc / source / conf.py
1 #!/usr/bin/env python3
2
3 import sys
4 import os
5 import shlex
6
7 # If extensions (or modules to document with autodoc) are in another directory,
8 # add these directories to sys.path here. If the directory is relative to the
9 # documentation root, use os.path.abspath to make it absolute, like shown here.
10 sys.path.insert(0, os.path.abspath('../../'))
11
12 # Add any Sphinx extension module names here, as strings. They can be
13 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
14 # ones.
15 extensions = [
16 'sphinx.ext.autodoc',
17 'sphinx.ext.doctest',
18 'sphinx.ext.mathjax',
19 'sphinx.ext.napoleon',
20 'sphinx.ext.viewcode',
21 ]
22
23 # Don't automatically test every >>> block in the documentation. This
24 # avoids testing the API docs as part of the documentation build,
25 # which is exactly what we intend, because those are tested as part of
26 # the (much faster) unittest test suite.
27 doctest_test_doctest_blocks = ''
28
29 # The suffix(es) of source filenames.
30 # You can specify multiple suffix as a list of string:
31 # source_suffix = ['.rst', '.md']
32 source_suffix = '.rst'
33
34 # The master toctree document.
35 master_doc = 'index'
36
37 # General information about the project.
38 project = 'Dunshire'
39 copyright = '2016, Michael Orlitzky'
40 author = 'Michael Orlitzky'
41
42 # The short X.Y version.
43 version = '0.1.1'
44
45 # The full version, including alpha/beta/rc tags.
46 release = '0.1.1'
47
48 # The language for content autogenerated by Sphinx. Refer to documentation
49 # for a list of supported languages.
50 #
51 # This is also used if you do content translation via gettext catalogs.
52 # Usually you set "language" from the command line for these cases.
53 language = "en"
54
55 # List of patterns, relative to source directory, that match files and
56 # directories to ignore when looking for source files.
57 exclude_patterns = []
58
59 # Don't show "dunshire.games" before every damned method.
60 add_module_names = False
61
62 # The name of the Pygments (syntax highlighting) style to use.
63 pygments_style = 'sphinx'
64
65 # If true, keep warnings as "system message" paragraphs in the built documents.
66 #keep_warnings = False
67
68 # If true, `todo` and `todoList` produce output, else they produce nothing.
69 todo_include_todos = False
70
71
72 # -- Options for HTML output ----------------------------------------------
73
74 # The theme to use for HTML and HTML Help pages. See the documentation for
75 # a list of builtin themes.
76 html_theme = 'haiku'
77
78 # https://www.sphinx-doc.org/en/master/usage/theming.html
79 #html_theme_options = {
80 #}
81
82 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
83 # using the given strftime format.
84 html_last_updated_fmt = ''
85
86 # If false, no index is generated.
87 #html_use_index = True
88
89 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
90 html_show_sphinx = False
91
92 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
93 html_show_copyright = False
94
95 # This is the file name suffix for HTML files (e.g. ".xhtml").
96 # Warning: regardless of the suffix, sphinx will generate html5.
97 #html_file_suffix = ".xhtml"
98
99 # Don't include the restructured text source files for the XHTML
100 # pages, and don't display a link to them either.
101 html_show_sourcelink = False
102
103 # The name of a javascript file (relative to the configuration directory) that
104 # implements a search results scorer. If empty, the default will be used.
105 #html_search_scorer = 'scorer.js'
106
107 # Output file base name for HTML help builder.
108 htmlhelp_basename = 'dunshiredoc'
109
110 # -- Options for LaTeX output ---------------------------------------------
111
112 latex_elements = {
113 'preamble' : r'\usepackage{amsfonts,amssymb}',
114 'printindex' : ''
115 }
116
117 # Grouping the document tree into LaTeX files. List of tuples
118 # (source start file, target name, title,
119 # author, documentclass [howto, manual, or own class]).
120 latex_documents = [
121 (master_doc, 'dunshire.tex', project + ' Documentation',
122 author, 'manual'),
123 ]
124
125 # -- Options for manual page output ---------------------------------------
126
127 # One entry per manual page. List of tuples
128 # (source start file, name, description, authors, manual section).
129 man_pages = [
130 (master_doc, project, project + ' Documentation',
131 [author], 1)
132 ]
133
134 # If true, show URL addresses after external links.
135 #man_show_urls = False
136
137
138 # -- Options for Texinfo output -------------------------------------------
139
140 # Grouping the document tree into Texinfo files. List of tuples
141 # (source start file, target name, title, author,
142 # dir menu entry, description, category)
143 texinfo_documents = [
144 (master_doc, project, project + ' Documentation',
145 author, 'derp', 'One line description of project.',
146 'Miscellaneous'),
147 ]