Debian Codegraph @

docs/conf.py

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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 'analytics_id': 'UA-19364636-2',
91 'show_powered_by': False,
92 'show_related': True,
93 'github_user': 'grantjenks',
94 'github_repo': 'python-sortedcontainers',
95 'github_type': 'star',
96 }
97
98 # Add any paths that contain custom static files (such as style sheets) here,
99 # relative to this directory. They are copied after the builtin static files,
100 # so a file named "default.css" will overwrite the builtin "default.css".
101 html_static_path = ['_static']
102
103 # Custom sidebar templates, must be a dictionary that maps document names
104 # to template names.
105 #
106 # The default sidebars (for documents that don't match any pattern) are
107 # defined by theme itself. Builtin themes are using these templates by
108 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
109 # 'searchbox.html']``.
110 html_sidebars = {
111 '**': [
112 'about.html',
113 'gumroad.html',
114 'localtoc.html',
115 'relations.html',
116 'searchbox.html',
117 ]
118 }
119
120
121 # -- Options for HTMLHelp output ---------------------------------------------
122
123 # Output file base name for HTML help builder.
124 htmlhelp_basename = 'SortedContainersDoc'
125
126
127 # -- Options for LaTeX output ------------------------------------------------
128
129 latex_elements = {
130 # The paper size ('letterpaper' or 'a4paper').
131 #
132 # 'papersize': 'letterpaper',
133
134 # The font size ('10pt', '11pt' or '12pt').
135 #
136 # 'pointsize': '10pt',
137
138 # Additional stuff for the LaTeX preamble.
139 #
140 # 'preamble': '',
141
142 # Latex figure (float) alignment
143 #
144 # 'figure_align': 'htbp',
145 }
146
147 # Grouping the document tree into LaTeX files. List of tuples
148 # (source start file, target name, title,
149 # author, documentclass [howto, manual, or own class]).
150 latex_documents = [
151 (master_doc, 'SortedContainers.tex', 'SortedContainers Documentation',
152 'Grant Jenks', 'manual'),
153 ]
154
155
156 # -- Options for manual page output ------------------------------------------
157
158 # One entry per manual page. List of tuples
159 # (source start file, name, description, authors, manual section).
160 man_pages = [
161 (master_doc, 'sortedcontainers', 'SortedContainers Documentation',
162 [author], 1)
163 ]
164
165
166 # -- Options for Texinfo output ----------------------------------------------
167
168 # Grouping the document tree into Texinfo files. List of tuples
169 # (source start file, target name, title, author,
170 # dir menu entry, description, category)
171 texinfo_documents = [
172 (master_doc, 'SortedContainers', 'SortedContainers Documentation',
173 author, 'SortedContainers',
174 'Python sorted collections library:'
175 ' sorted list, sorted dict, and sorted set.',
176 'Miscellaneous'),
177 ]
178
179
180 # -- Extension configuration -------------------------------------------------
181
182 # -- Options for todo extension ----------------------------------------------
183
184 # If true, `todo` and `todoList` produce output, else they produce nothing.
185 todo_include_todos = True