|
3 | 3 | # matplotlib2tikz documentation build configuration file, created by
|
4 | 4 | # sphinx-quickstart on Mon May 10 14:00:31 2010.
|
5 | 5 | #
|
6 |
| -# This file is execfile()d with the current directory set to its containing dir. |
| 6 | +# This file is execfile()d with the current directory set to its containing |
| 7 | +# dir. |
7 | 8 | #
|
8 | 9 | # Note that not all possible configuration values are present in this
|
9 | 10 | # autogenerated file.
|
10 | 11 | #
|
11 | 12 | # All configuration values have a default; values that are commented out
|
12 | 13 | # serve to show the default.
|
13 | 14 |
|
14 |
| -import sys, os |
| 15 | +import sys |
| 16 | +import os |
15 | 17 |
|
16 | 18 | import mock
|
17 | 19 | MOCK_MODULES = ['matplotlib']
|
|
23 | 25 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
24 | 26 | sys.path.append(os.path.abspath('../src'))
|
25 | 27 |
|
26 |
| -# -- General configuration ----------------------------------------------------- |
| 28 | +# -- General configuration ---------------------------------------------------- |
27 | 29 |
|
28 |
| -# Add any Sphinx extension module names here, as strings. They can be extensions |
29 |
| -# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
30 |
| -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath'] |
| 30 | +# Add any Sphinx extension module names here, as strings. They can be |
| 31 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
| 32 | +extensions = [ |
| 33 | + 'sphinx.ext.autodoc', |
| 34 | + 'sphinx.ext.doctest', |
| 35 | + 'sphinx.ext.todo', |
| 36 | + 'sphinx.ext.coverage', |
| 37 | + 'sphinx.ext.pngmath' |
| 38 | + ] |
31 | 39 |
|
32 | 40 | # Add any paths that contain templates here, relative to this directory.
|
33 | 41 | templates_path = ['_templates']
|
|
36 | 44 | source_suffix = '.rst'
|
37 | 45 |
|
38 | 46 | # The encoding of source files.
|
39 |
| -#source_encoding = 'utf-8' |
| 47 | +# source_encoding = 'utf-8' |
40 | 48 |
|
41 | 49 | # The master toctree document.
|
42 | 50 | master_doc = 'index'
|
43 | 51 |
|
44 | 52 | # General information about the project.
|
45 | 53 | project = u'matplotlib2tikz'
|
46 |
| -copyright = u'2010, Nico Schlömer' |
| 54 | +copyright = u'2010-2017, Nico Schlömer' |
47 | 55 |
|
48 | 56 | # The version info for the project you're documenting, acts as replacement for
|
49 | 57 | # |version| and |release|, also used in various other places throughout the
|
50 | 58 | # built documents.
|
51 | 59 | #
|
52 |
| -from matplotlib2tikz import __version__ |
| 60 | +# https://packaging.python.org/single_source_version/ |
| 61 | +this_dir = os.path.abspath(os.path.dirname(__file__)) |
| 62 | +about = {} |
| 63 | +about_file = os.path.join(this_dir, '..', 'matplotlib2tikz', '__about__.py') |
| 64 | +with open(about_file) as f: |
| 65 | + exec(f.read(), about) |
53 | 66 | # The short X.Y version.
|
54 |
| -version = '.'.join(__version__.split('.')[:2]) |
| 67 | +version = '.'.join(about['__version__'].split('.')[:2]) |
55 | 68 | # The full version, including alpha/beta/rc tags.
|
56 |
| -release = __version__ |
| 69 | +release = about['__version__'] |
57 | 70 |
|
58 | 71 | # The language for content autogenerated by Sphinx. Refer to documentation
|
59 | 72 | # for a list of supported languages.
|
60 |
| -#language = None |
| 73 | +# language = None |
61 | 74 |
|
62 | 75 | # There are two options for replacing |today|: either, you set today to some
|
63 | 76 | # non-false value, then it is used:
|
64 |
| -#today = '' |
| 77 | +# today = '' |
65 | 78 | # Else, today_fmt is used as the format for a strftime call.
|
66 |
| -#today_fmt = '%B %d, %Y' |
| 79 | +# today_fmt = '%B %d, %Y' |
67 | 80 |
|
68 | 81 | # List of documents that shouldn't be included in the build.
|
69 |
| -#unused_docs = [] |
| 82 | +# unused_docs = [] |
70 | 83 |
|
71 | 84 | # List of directories, relative to source directory, that shouldn't be searched
|
72 | 85 | # for source files.
|
73 | 86 | exclude_trees = ['_build']
|
74 | 87 |
|
75 |
| -# The reST default role (used for this markup: `text`) to use for all documents. |
76 |
| -#default_role = None |
| 88 | +# The reST default role (used for this markup: `text`) to use for all |
| 89 | +# documents. |
| 90 | +# default_role = None |
77 | 91 |
|
78 | 92 | # If true, '()' will be appended to :func: etc. cross-reference text.
|
79 |
| -#add_function_parentheses = True |
| 93 | +# add_function_parentheses = True |
80 | 94 |
|
81 | 95 | # If true, the current module name will be prepended to all description
|
82 | 96 | # unit titles (such as .. function::).
|
83 |
| -#add_module_names = True |
| 97 | +# add_module_names = True |
84 | 98 |
|
85 | 99 | # If true, sectionauthor and moduleauthor directives will be shown in the
|
86 | 100 | # output. They are ignored by default.
|
87 |
| -#show_authors = False |
| 101 | +# show_authors = False |
88 | 102 |
|
89 | 103 | # The name of the Pygments (syntax highlighting) style to use.
|
90 | 104 | pygments_style = 'sphinx'
|
91 | 105 |
|
92 | 106 | # A list of ignored prefixes for module index sorting.
|
93 |
| -#modindex_common_prefix = [] |
| 107 | +# modindex_common_prefix = [] |
94 | 108 |
|
95 | 109 |
|
96 |
| -# -- Options for HTML output --------------------------------------------------- |
| 110 | +# -- Options for HTML output -------------------------------------------------- |
97 | 111 |
|
98 | 112 | # The theme to use for HTML and HTML Help pages. Major themes that come with
|
99 | 113 | # Sphinx are currently 'default' and 'sphinxdoc'.
|
|
102 | 116 | # Theme options are theme-specific and customize the look and feel of a theme
|
103 | 117 | # further. For a list of options available for each theme, see the
|
104 | 118 | # documentation.
|
105 |
| -#html_theme_options = {} |
| 119 | +# html_theme_options = {} |
106 | 120 |
|
107 | 121 | # Add any paths that contain custom themes here, relative to this directory.
|
108 |
| -#html_theme_path = [] |
| 122 | +# html_theme_path = [] |
109 | 123 |
|
110 | 124 | # The name for this set of Sphinx documents. If None, it defaults to
|
111 | 125 | # "<project> v<release> documentation".
|
112 |
| -#html_title = None |
| 126 | +# html_title = None |
113 | 127 |
|
114 | 128 | # A shorter title for the navigation bar. Default is the same as html_title.
|
115 |
| -#html_short_title = None |
| 129 | +# html_short_title = None |
116 | 130 |
|
117 | 131 | # The name of an image file (relative to this directory) to place at the top
|
118 | 132 | # of the sidebar.
|
119 |
| -#html_logo = None |
| 133 | +# html_logo = None |
120 | 134 |
|
121 | 135 | # The name of an image file (within the static path) to use as favicon of the
|
122 | 136 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
123 | 137 | # pixels large.
|
124 |
| -#html_favicon = None |
| 138 | +# html_favicon = None |
125 | 139 |
|
126 | 140 | # Add any paths that contain custom static files (such as style sheets) here,
|
127 | 141 | # relative to this directory. They are copied after the builtin static files,
|
|
130 | 144 |
|
131 | 145 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
132 | 146 | # using the given strftime format.
|
133 |
| -#html_last_updated_fmt = '%b %d, %Y' |
| 147 | +# html_last_updated_fmt = '%b %d, %Y' |
134 | 148 |
|
135 | 149 | # If true, SmartyPants will be used to convert quotes and dashes to
|
136 | 150 | # typographically correct entities.
|
137 |
| -#html_use_smartypants = True |
| 151 | +# html_use_smartypants = True |
138 | 152 |
|
139 | 153 | # Custom sidebar templates, maps document names to template names.
|
140 |
| -#html_sidebars = {} |
| 154 | +# html_sidebars = {} |
141 | 155 |
|
142 | 156 | # Additional templates that should be rendered to pages, maps page names to
|
143 | 157 | # template names.
|
144 |
| -#html_additional_pages = {} |
| 158 | +# html_additional_pages = {} |
145 | 159 |
|
146 | 160 | # If false, no module index is generated.
|
147 |
| -#html_use_modindex = True |
| 161 | +# html_use_modindex = True |
148 | 162 |
|
149 | 163 | # If false, no index is generated.
|
150 |
| -#html_use_index = True |
| 164 | +# html_use_index = True |
151 | 165 |
|
152 | 166 | # If true, the index is split into individual pages for each letter.
|
153 |
| -#html_split_index = False |
| 167 | +# html_split_index = False |
154 | 168 |
|
155 | 169 | # If true, links to the reST sources are added to the pages.
|
156 |
| -#html_show_sourcelink = True |
| 170 | +# html_show_sourcelink = True |
157 | 171 |
|
158 | 172 | # If true, an OpenSearch description file will be output, and all pages will
|
159 | 173 | # contain a <link> tag referring to it. The value of this option must be the
|
160 | 174 | # base URL from which the finished HTML is served.
|
161 |
| -#html_use_opensearch = '' |
| 175 | +# html_use_opensearch = '' |
162 | 176 |
|
163 | 177 | # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
|
164 |
| -#html_file_suffix = '' |
| 178 | +# html_file_suffix = '' |
165 | 179 |
|
166 | 180 | # Output file base name for HTML help builder.
|
167 | 181 | htmlhelp_basename = 'matplotlib2tikzdoc'
|
168 | 182 |
|
169 | 183 |
|
170 |
| -# -- Options for LaTeX output -------------------------------------------------- |
| 184 | +# -- Options for LaTeX output ------------------------------------------------- |
171 | 185 |
|
172 | 186 | # The paper size ('letter' or 'a4').
|
173 | 187 | latex_paper_size = 'a4'
|
174 | 188 |
|
175 | 189 | # The font size ('10pt', '11pt' or '12pt').
|
176 |
| -#latex_font_size = '10pt' |
| 190 | +# latex_font_size = '10pt' |
177 | 191 |
|
178 |
| -# Grouping the document tree into LaTeX files. List of tuples |
179 |
| -# (source start file, target name, title, author, documentclass [howto/manual]). |
| 192 | +# Grouping the document tree into LaTeX files. List of tuples (source start |
| 193 | +# file, target name, title, author, documentclass [howto/manual]). |
180 | 194 | latex_documents = [
|
181 | 195 | ('index', 'matplotlib2tikz.tex', u'matplotlib2tikz Documentation',
|
182 | 196 | u'Nico Schlömer', 'manual'),
|
183 | 197 | ]
|
184 | 198 |
|
185 | 199 | # The name of an image file (relative to this directory) to place at the top of
|
186 | 200 | # the title page.
|
187 |
| -#latex_logo = None |
| 201 | +# latex_logo = None |
188 | 202 |
|
189 | 203 | # For "manual" documents, if this is true, then toplevel headings are parts,
|
190 | 204 | # not chapters.
|
191 |
| -#latex_use_parts = False |
| 205 | +# latex_use_parts = False |
192 | 206 |
|
193 | 207 | # Additional stuff for the LaTeX preamble.
|
194 |
| -#latex_preamble = '' |
| 208 | +# latex_preamble = '' |
195 | 209 |
|
196 | 210 | # Documents to append as an appendix to all manuals.
|
197 |
| -#latex_appendices = [] |
| 211 | +# latex_appendices = [] |
198 | 212 |
|
199 | 213 | # If false, no module index is generated.
|
200 |
| -#latex_use_modindex = True |
| 214 | +# latex_use_modindex = True |
0 commit comments