]> gitweb.michael.orlitzky.com - dunshire.git/blob - doc/source/conf.py
Move the README into doc/, add it to the Sphinx index, and tweak that.
[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('../../src/'))
11 sys.path.insert(0, os.path.abspath('../../src/dunshire'))
12
13 # Add any Sphinx extension module names here, as strings. They can be
14 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
15 # ones.
16 extensions = [
17 'sphinx.ext.autodoc',
18 'sphinx.ext.autosummary',
19 'sphinx.ext.coverage',
20 'sphinx.ext.pngmath',
21 'sphinx.ext.viewcode',
22 ]
23
24 autosummary_generate = True
25
26 # The suffix(es) of source filenames.
27 # You can specify multiple suffix as a list of string:
28 # source_suffix = ['.rst', '.md']
29 source_suffix = '.rst'
30
31 # The master toctree document.
32 master_doc = 'index'
33
34 # General information about the project.
35 project = 'Dunshire'
36 copyright = '2016, Michael Orlitzky'
37 author = 'Michael Orlitzky'
38
39 # The short X.Y version.
40 version = '0.0.1'
41
42 # The full version, including alpha/beta/rc tags.
43 release = '0.0.1'
44
45 # The language for content autogenerated by Sphinx. Refer to documentation
46 # for a list of supported languages.
47 #
48 # This is also used if you do content translation via gettext catalogs.
49 # Usually you set "language" from the command line for these cases.
50 language = None
51
52 # List of patterns, relative to source directory, that match files and
53 # directories to ignore when looking for source files.
54 exclude_patterns = []
55
56 # The name of the Pygments (syntax highlighting) style to use.
57 pygments_style = 'sphinx'
58
59 # If true, keep warnings as "system message" paragraphs in the built documents.
60 #keep_warnings = False
61
62 # If true, `todo` and `todoList` produce output, else they produce nothing.
63 todo_include_todos = False
64
65
66 # -- Options for HTML output ----------------------------------------------
67
68 # The theme to use for HTML and HTML Help pages. See the documentation for
69 # a list of builtin themes.
70 html_theme = 'alabaster'
71
72 # Remove the search box from the default list of sidebars.
73 html_sidebars = {
74 '**': [
75 'about.html',
76 'navigation.html'
77 ]
78 }
79
80 # http://alabaster.readthedocs.io/en/latest/customization.html#theme-options
81 html_theme_options = {
82 'github_button': False,
83 'github_user': False,
84 'github_repo': False,
85 'show_powered_by': False
86 }
87
88 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
89 # using the given strftime format.
90 html_last_updated_fmt = ''
91
92 # If false, no index is generated.
93 #html_use_index = True
94
95 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
96 html_show_sphinx = False
97
98 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
99 html_show_copyright = False
100
101 # This is the file name suffix for HTML files (e.g. ".xhtml").
102 #html_file_suffix = None
103
104 # The name of a javascript file (relative to the configuration directory) that
105 # implements a search results scorer. If empty, the default will be used.
106 #html_search_scorer = 'scorer.js'
107
108 # Output file base name for HTML help builder.
109 htmlhelp_basename = 'dunshiredoc'
110
111 # -- Options for LaTeX output ---------------------------------------------
112
113 latex_elements = {
114 }
115
116 # Grouping the document tree into LaTeX files. List of tuples
117 # (source start file, target name, title,
118 # author, documentclass [howto, manual, or own class]).
119 latex_documents = [
120 (master_doc, 'dunshire.tex', 'Dunshire Documentation',
121 'author', 'manual'),
122 ]
123
124 # -- Options for manual page output ---------------------------------------
125
126 # One entry per manual page. List of tuples
127 # (source start file, name, description, authors, manual section).
128 man_pages = [
129 (master_doc, 'Dunshire', 'Dunshire Documentation',
130 [author], 1)
131 ]
132
133 # If true, show URL addresses after external links.
134 #man_show_urls = False
135
136
137 # -- Options for Texinfo output -------------------------------------------
138
139 # Grouping the document tree into Texinfo files. List of tuples
140 # (source start file, target name, title, author,
141 # dir menu entry, description, category)
142 texinfo_documents = [
143 (master_doc, 'Dunshire', 'Dunshire Documentation',
144 author, 'derp', 'One line description of project.',
145 'Miscellaneous'),
146 ]