|
| 1 | +# Configuration file for the Sphinx documentation builder. |
1 | 2 | #
|
2 |
| -# project-template documentation build configuration file, created by |
3 |
| -# sphinx-quickstart on Mon Jan 18 14:44:12 2016. |
4 |
| -# |
5 |
| -# This file is execfile()d with the current directory set to its |
6 |
| -# containing dir. |
7 |
| -# |
8 |
| -# Note that not all possible configuration values are present in this |
9 |
| -# autogenerated file. |
10 |
| -# |
11 |
| -# All configuration values have a default; values that are commented out |
12 |
| -# serve to show the default. |
| 3 | +# This file only contains a selection of the most common options. For a full |
| 4 | +# list see the documentation: |
| 5 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
13 | 6 |
|
14 | 7 | from datetime import date
|
15 |
| -import sys |
16 |
| -import os |
| 8 | +import numpydoc |
17 | 9 |
|
| 10 | +# -- Path setup -------------------------------------------------------------- |
18 | 11 |
|
19 | 12 | # If extensions (or modules to document with autodoc) are in another directory,
|
20 | 13 | # add these directories to sys.path here. If the directory is relative to the
|
21 | 14 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
22 | 15 |
|
| 16 | +import os |
| 17 | +import sys |
| 18 | + |
23 | 19 | # for example.py
|
24 | 20 | sys.path.insert(0, os.path.abspath("."))
|
25 | 21 | # project root
|
26 | 22 | sys.path.insert(0, os.path.abspath(".."))
|
27 | 23 |
|
28 | 24 | os.environ["MPLBACKEND"] = "Agg" # avoid tkinter import errors on rtfd.io
|
29 | 25 |
|
30 |
| -# -- General configuration --------------------------------------------------- |
| 26 | +# -- Project information ----------------------------------------------------- |
31 | 27 |
|
32 |
| -# If your documentation needs a minimal Sphinx version, state it here. |
33 |
| -# needs_sphinx = '1.0' |
| 28 | +project = "numpydoc" |
| 29 | +copyright = f"2019-{date.today().year}, numpydoc maintainers" |
| 30 | + |
| 31 | +# The version info for the project you're documenting, acts as replacement for |
| 32 | +# |version| and |release|, also used in various other places throughout the |
| 33 | +# built documents. |
| 34 | +# |
| 35 | +# The short X.Y version. |
| 36 | + |
| 37 | +# version = .__version__ |
| 38 | +# The full version, including alpha/beta/rc tags. |
| 39 | +release = numpydoc.__version__ |
| 40 | +version = numpydoc.__version__ |
| 41 | + |
| 42 | +# -- General configuration --------------------------------------------------- |
34 | 43 |
|
35 | 44 | # Add any Sphinx extension module names here, as strings. They can be
|
36 | 45 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
50 | 59 | # Add any paths that contain templates here, relative to this directory.
|
51 | 60 | templates_path = ["_templates"]
|
52 | 61 |
|
53 |
| -# The suffix of source filenames. |
54 |
| -source_suffix = ".rst" |
55 |
| - |
56 |
| -# The encoding of source files. |
57 |
| -# source_encoding = 'utf-8-sig' |
58 |
| - |
59 | 62 | # The root toctree document
|
60 |
| -master_doc = "index" # NOTE: will be changed to `root_doc` in sphinx 4 |
61 |
| - |
62 |
| -# General information about the project. |
63 |
| -project = "numpydoc" |
64 |
| -copyright = f"2019-{date.today().year}, numpydoc maintainers" |
65 |
| - |
66 |
| -# The version info for the project you're documenting, acts as replacement for |
67 |
| -# |version| and |release|, also used in various other places throughout the |
68 |
| -# built documents. |
69 |
| -# |
70 |
| -# The short X.Y version. |
71 |
| - |
72 |
| -import numpydoc |
| 63 | +# master_doc = "index" # NOTE: will be changed to `root_doc` in sphinx 4 |
73 | 64 |
|
74 |
| -# version = .__version__ |
75 |
| -# The full version, including alpha/beta/rc tags. |
76 |
| -release = numpydoc.__version__ |
77 |
| -version = numpydoc.__version__ |
78 | 65 | numpydoc_xref_param_type = True
|
79 | 66 | numpydoc_xref_ignore = {"optional", "type_without_description", "BadException"}
|
80 | 67 | # Run docstring validation as part of build process
|
81 | 68 | numpydoc_validation_checks = {"all", "GL01", "SA04", "RT03"}
|
82 | 69 |
|
83 |
| -# The language for content autogenerated by Sphinx. Refer to documentation |
84 |
| -# for a list of supported languages. |
85 |
| -# language = None |
86 |
| - |
87 |
| -# There are two options for replacing |today|: either, you set today to some |
88 |
| -# non-false value, then it is used: |
89 |
| -# today = '' |
90 |
| -# Else, today_fmt is used as the format for a strftime call. |
91 |
| -# today_fmt = '%B %d, %Y' |
92 |
| - |
93 | 70 | # List of patterns, relative to source directory, that match files and
|
94 | 71 | # directories to ignore when looking for source files.
|
95 |
| -exclude_patterns = ["_build"] |
96 |
| - |
97 |
| -# The reST default role (used for this markup: `text`) to use for all |
98 |
| -# documents. |
99 |
| -# default_role = None |
100 |
| - |
101 |
| -# If true, '()' will be appended to :func: etc. cross-reference text. |
102 |
| -# add_function_parentheses = True |
103 |
| - |
104 |
| -# If true, the current module name will be prepended to all description |
105 |
| -# unit titles (such as .. function::). |
106 |
| -# add_module_names = True |
107 |
| - |
108 |
| -# If true, sectionauthor and moduleauthor directives will be shown in the |
109 |
| -# output. They are ignored by default. |
110 |
| -# show_authors = False |
| 72 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
111 | 73 |
|
112 | 74 | # The name of the Pygments (syntax highlighting) style to use.
|
113 | 75 | pygments_style = "sphinx"
|
114 | 76 |
|
115 |
| -# A list of ignored prefixes for module index sorting. |
116 |
| -# modindex_common_prefix = [] |
117 |
| - |
118 |
| -# If true, keep warnings as "system message" paragraphs in the built documents. |
119 |
| -# keep_warnings = False |
120 |
| - |
121 |
| - |
122 | 77 | # -- Options for HTML output ----------------------------------------------
|
123 | 78 |
|
124 | 79 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
|
142 | 97 | # so a file named "default.css" will overwrite the builtin "default.css".
|
143 | 98 | html_static_path = [] # ['_static']
|
144 | 99 |
|
145 |
| -# Add any extra paths that contain custom files (such as robots.txt or |
146 |
| -# .htaccess) here, relative to this directory. These files are copied |
147 |
| -# directly to the root of the documentation. |
148 |
| -# html_extra_path = [] |
149 |
| - |
150 |
| -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
151 |
| -# using the given strftime format. |
152 |
| -# html_last_updated_fmt = '%b %d, %Y' |
153 |
| - |
154 |
| -# If true, SmartyPants will be used to convert quotes and dashes to |
155 |
| -# typographically correct entities. |
156 |
| -# html_use_smartypants = True |
157 |
| - |
158 |
| -# Custom sidebar templates, maps document names to template names. |
159 |
| -# html_sidebars = {} |
160 |
| - |
161 |
| -# Additional templates that should be rendered to pages, maps page names to |
162 |
| -# template names. |
163 |
| -# html_additional_pages = {} |
164 |
| - |
165 |
| -# If false, no module index is generated. |
166 |
| -# html_domain_indices = True |
167 |
| - |
168 |
| -# If false, no index is generated. |
169 |
| -# html_use_index = True |
170 |
| - |
171 |
| -# If true, the index is split into individual pages for each letter. |
172 |
| -# html_split_index = False |
173 |
| - |
174 |
| -# If true, links to the reST sources are added to the pages. |
175 |
| -# html_show_sourcelink = True |
176 |
| - |
177 |
| -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
178 |
| -# html_show_sphinx = True |
179 |
| - |
180 |
| -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
181 |
| -# html_show_copyright = True |
182 |
| - |
183 |
| -# If true, an OpenSearch description file will be output, and all pages will |
184 |
| -# contain a <link> tag referring to it. The value of this option must be the |
185 |
| -# base URL from which the finished HTML is served. |
186 |
| -# html_use_opensearch = '' |
187 |
| - |
188 |
| -# This is the file name suffix for HTML files (e.g. ".xhtml"). |
189 |
| -# html_file_suffix = None |
190 |
| - |
191 | 100 | # Output file base name for HTML help builder.
|
192 | 101 | htmlhelp_basename = "project-templatedoc"
|
193 | 102 |
|
|
216 | 125 | ),
|
217 | 126 | ]
|
218 | 127 |
|
219 |
| -# The name of an image file (relative to this directory) to place at the top of |
220 |
| -# the title page. |
221 |
| -# latex_logo = None |
222 |
| - |
223 |
| -# For "manual" documents, if this is true, then toplevel headings are parts, |
224 |
| -# not chapters. |
225 |
| -# latex_use_parts = False |
226 |
| - |
227 |
| -# If true, show page references after internal links. |
228 |
| -# latex_show_pagerefs = False |
229 |
| - |
230 |
| -# If true, show URL addresses after external links. |
231 |
| -# latex_show_urls = False |
232 |
| - |
233 |
| -# Documents to append as an appendix to all manuals. |
234 |
| -# latex_appendices = [] |
235 |
| - |
236 |
| -# If false, no module index is generated. |
237 |
| -# latex_domain_indices = True |
238 |
| - |
239 |
| -# Documents to append as an appendix to all manuals. |
240 |
| -# texinfo_appendices = [] |
241 |
| - |
242 |
| -# If false, no module index is generated. |
243 |
| -# texinfo_domain_indices = True |
244 |
| - |
245 |
| -# How to display URL addresses: 'footnote', 'no', or 'inline'. |
246 |
| -# texinfo_show_urls = 'footnote' |
247 |
| - |
248 |
| -# If true, do not generate a @detailmenu in the "Top" node's menu. |
249 |
| -# texinfo_no_detailmenu = False |
250 |
| - |
| 128 | +# -- Intersphinx setup ---------------------------------------------------- |
251 | 129 |
|
252 | 130 | # Example configuration for intersphinx: refer to the Python standard library.
|
253 | 131 | intersphinx_mapping = {
|
|
0 commit comments