Debian Codegraph @

docs/conf.py

raw ◀ ▶
1 Debian patch touch this file
1 # -*- coding: utf-8 -*-
2 #
3 # Configuration file for the Sphinx documentation builder.
4 #
5 # This file does only contain a selection of the most common options. For a
6 # full list see the documentation:
7 # http://www.sphinx-doc.org/en/master/config
8
9 # -- Path setup --------------------------------------------------------------
10
11 # If extensions (or modules to document with autodoc) are in another directory,
12 # add these directories to sys.path here. If the directory is relative to the
13 # documentation root, use os.path.abspath to make it absolute, like shown here.
14
15 import os
16 import sys
17 sys.path.insert(0, os.path.abspath('..'))
18 import sortedcontainers
19
20
21 # -- Project information -----------------------------------------------------
22
23 project = 'Sorted Containers'
24 copyright = sortedcontainers.__copyright__
25 author = sortedcontainers.__author__
26
27 # The short X.Y version
28 version = sortedcontainers.__version__
29 # The full version, including alpha/beta/rc tags
30 release = sortedcontainers.__version__
31
32
33 # -- General configuration ---------------------------------------------------
34
35 # If your documentation needs a minimal Sphinx version, state it here.
36 #
37 # needs_sphinx = '1.0'
38
39 # Add any Sphinx extension module names here, as strings. They can be
40 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
41 # ones.
42 extensions = [
43 'sphinx.ext.autodoc',
44 'sphinx.ext.todo',
45 'sphinx.ext.imgmath',
46 'sphinx.ext.viewcode',
47 ]
48
49 # Add any paths that contain templates here, relative to this directory.
50 templates_path = ['_templates']
51
52 # The suffix(es) of source filenames.
53 # You can specify multiple suffix as a list of string:
54 #
55 # source_suffix = ['.rst', '.md']
56 source_suffix = '.rst'
57
58 # The master toctree document.
59 master_doc = 'index'
60
61 # The language for content autogenerated by Sphinx. Refer to documentation
62 # for a list of supported languages.
63 #
64 # This is also used if you do content translation via gettext catalogs.
65 # Usually you set "language" from the command line for these cases.
66 language = None
67
68 # List of patterns, relative to source directory, that match files and
69 # directories to ignore when looking for source files.
70 # This pattern also affects html_static_path and html_extra_path .
71 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
72
73 # The name of the Pygments (syntax highlighting) style to use.
74 pygments_style = 'sphinx'
75
76
77 # -- Options for HTML output -------------------------------------------------
78
79 # The theme to use for HTML and HTML Help pages. See the documentation for
80 # a list of builtin themes.
81 html_theme = 'alabaster'
82
83 # Theme options are theme-specific and customize the look and feel of a theme
84 # further. For a list of options available for each theme, see the
85 # documentation.
86 html_theme_options = {
87 'logo': 'gj-logo.png',
88 'logo_name': True,
89 'logo_text_align': 'center',
90 'show_powered_by': False,
91 'show_related': True,
92 }
93
94 # Add any paths that contain custom static files (such as style sheets) here,
95 # relative to this directory. They are copied after the builtin static files,
96 # so a file named "default.css" will overwrite the builtin "default.css".
97 html_static_path = ['_static']
98
99 # Custom sidebar templates, must be a dictionary that maps document names
100 # to template names.
101 #
102 # The default sidebars (for documents that don't match any pattern) are
103 # defined by theme itself. Builtin themes are using these templates by
104 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
105 # 'searchbox.html']``.
106 html_sidebars = {
107 '**': [
108 'about.html',
109 'gumroad.html',
110 'localtoc.html',
111 'relations.html',
112 'searchbox.html',
113 ]
114 }
115
116
117 # -- Options for HTMLHelp output ---------------------------------------------
118
119 # Output file base name for HTML help builder.
120 htmlhelp_basename = 'SortedContainersDoc'
121
122
123 # -- Options for LaTeX output ------------------------------------------------
124
125 latex_elements = {
126 # The paper size ('letterpaper' or 'a4paper').
127 #
128 # 'papersize': 'letterpaper',
129
130 # The font size ('10pt', '11pt' or '12pt').
131 #
132 # 'pointsize': '10pt',
133
134 # Additional stuff for the LaTeX preamble.
135 #
136 # 'preamble': '',
137
138 # Latex figure (float) alignment
139 #
140 # 'figure_align': 'htbp',
141 }
142
143 # Grouping the document tree into LaTeX files. List of tuples
144 # (source start file, target name, title,
145 # author, documentclass [howto, manual, or own class]).
146 latex_documents = [
147 (master_doc, 'SortedContainers.tex', 'SortedContainers Documentation',
148 'Grant Jenks', 'manual'),
149 ]
150
151
152 # -- Options for manual page output ------------------------------------------
153
154 # One entry per manual page. List of tuples
155 # (source start file, name, description, authors, manual section).
156 man_pages = [
157 (master_doc, 'sortedcontainers', 'SortedContainers Documentation',
158 [author], 1)
159 ]
160
161
162 # -- Options for Texinfo output ----------------------------------------------
163
164 # Grouping the document tree into Texinfo files. List of tuples
165 # (source start file, target name, title, author,
166 # dir menu entry, description, category)
167 texinfo_documents = [
168 (master_doc, 'SortedContainers', 'SortedContainers Documentation',
169 author, 'SortedContainers',
170 'Python sorted collections library:'
171 ' sorted list, sorted dict, and sorted set.',
172 'Miscellaneous'),
173 ]
174
175
176 # -- Extension configuration -------------------------------------------------
177
178 # -- Options for todo extension ----------------------------------------------
179
180 # If true, `todo` and `todoList` produce output, else they produce nothing.
181 todo_include_todos = True