Debian Codegraph @

docs/conf.py

raw symbols SCIP
1 # Jedi documentation build configuration file, created by
2 # sphinx-quickstart on Wed Dec 26 00:11:34 2012.
3 #
4 # This file is execfile()d with the current directory set to its containing dir.
5 #
6 # Note that not all possible configuration values are present in this
7 # autogenerated file.
8 #
9 # All configuration values have a default; values that are commented out
10 # serve to show the default.
11
12 import sys
13 import os
14
15 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
18 sys.path.insert(0, os.path.abspath('..'))
19
20 # -- General configuration -----------------------------------------------------
21
22 # If your documentation needs a minimal Sphinx version, state it here.
23 #needs_sphinx = '1.0'
24
25 # Add any Sphinx extension module names here, as strings. They can be extensions
26 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
27 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.todo',
28 'sphinx.ext.intersphinx', 'sphinx.ext.inheritance_diagram',
29 'sphinx_rtd_theme', 'sphinx.ext.autosummary']
30
31 # Add any paths that contain templates here, relative to this directory.
32 templates_path = ['_templates']
33
34 # The suffix of source filenames.
35 source_suffix = '.rst'
36
37 # The encoding of source files.
38 source_encoding = 'utf-8'
39
40 # The master toctree document.
41 master_doc = 'index'
42
43 # General information about the project.
44 project = 'Jedi'
45 copyright = 'jedi contributors'
46
47 import jedi
48 from jedi.utils import version_info
49
50 # The version info for the project you're documenting, acts as replacement for
51 # |version| and |release|, also used in various other places throughout the
52 # built documents.
53 #
54 # The short X.Y.Z version.
55 version = '.'.join(str(x) for x in version_info()[:3])
56 # The full version, including alpha/beta/rc tags.
57 release = jedi.__version__
58
59 # The language for content autogenerated by Sphinx. Refer to documentation
60 # for a list of supported languages.
61 #language = None
62
63 # There are two options for replacing |today|: either, you set today to some
64 # non-false value, then it is used:
65 #today = ''
66 # Else, today_fmt is used as the format for a strftime call.
67 #today_fmt = '%B %d, %Y'
68
69 # List of patterns, relative to source directory, that match files and
70 # directories to ignore when looking for source files.
71 exclude_patterns = []
72
73 # The reST default role (used for this markup: `text`) to use for all documents.
74 #default_role = None
75
76 # If true, '()' will be appended to :func: etc. cross-reference text.
77 #add_function_parentheses = True
78
79 # If true, the current module name will be prepended to all description
80 # unit titles (such as .. function::).
81 #add_module_names = True
82
83 # If true, sectionauthor and moduleauthor directives will be shown in the
84 # output. They are ignored by default.
85 #show_authors = False
86
87 # The name of the Pygments (syntax highlighting) style to use.
88 pygments_style = 'sphinx'
89
90 # A list of ignored prefixes for module index sorting.
91 #modindex_common_prefix = []
92
93
94 # -- Options for HTML output ---------------------------------------------------
95
96 # The theme to use for HTML and HTML Help pages. See the documentation for
97 # a list of builtin themes.
98 html_theme = 'sphinx_rtd_theme'
99
100 # Theme options are theme-specific and customize the look and feel of a theme
101 # further. For a list of options available for each theme, see the
102 # documentation.
103 html_theme_options = {
104 'logo_only': True,
105 'style_nav_header_background': 'white',
106 }
107
108 # Add any paths that contain custom themes here, relative to this directory.
109 html_theme_path = ['_themes']
110
111 # The name for this set of Sphinx documents. If None, it defaults to
112 # "<project> v<release> documentation".
113 #html_title = None
114
115 # A shorter title for the navigation bar. Default is the same as html_title.
116 #html_short_title = None
117
118 # The name of an image file (relative to this directory) to place at the top
119 # of the sidebar.
120 html_logo = '_static/logo.png'
121
122 # The name of an image file (within the static path) to use as favicon of the
123 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
124 # pixels large.
125 #html_favicon = None
126
127 # Add any paths that contain custom static files (such as style sheets) here,
128 # relative to this directory. They are copied after the builtin static files,
129 # so a file named "default.css" will overwrite the builtin "default.css".
130 html_static_path = ['_static']
131
132 html_css_files = ['custom_style.css']
133
134 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
135 # using the given strftime format.
136 #html_last_updated_fmt = '%b %d, %Y'
137
138 # If true, SmartyPants will be used to convert quotes and dashes to
139 # typographically correct entities.
140 #html_use_smartypants = True
141
142 # Custom sidebar templates, maps document names to template names.
143 html_sidebars = {
144 '**': [
145 'sidebarlogo.html',
146 'localtoc.html',
147 #'relations.html',
148 'ghbuttons.html',
149 #'sourcelink.html',
150 'searchbox.html'
151 ]
152 }
153
154 # Additional templates that should be rendered to pages, maps page names to
155 # template names.
156 #html_additional_pages = {}
157
158 # If false, no module index is generated.
159 #html_domain_indices = True
160
161 # If false, no index is generated.
162 #html_use_index = True
163
164 # If true, the index is split into individual pages for each letter.
165 #html_split_index = False
166
167 # If true, links to the reST sources are added to the pages.
168 html_show_sourcelink = False
169
170 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
171 html_show_sphinx = False
172
173 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
174 html_show_copyright = False
175
176 # If true, an OpenSearch description file will be output, and all pages will
177 # contain a <link> tag referring to it. The value of this option must be the
178 # base URL from which the finished HTML is served.
179 #html_use_opensearch = ''
180
181 # This is the file name suffix for HTML files (e.g. ".xhtml").
182 #html_file_suffix = None
183
184 # Output file base name for HTML help builder.
185 htmlhelp_basename = 'Jedidoc'
186
187 #html_style = 'default.css' # Force usage of default template on RTD
188
189
190 # -- Options for LaTeX output --------------------------------------------------
191
192 latex_elements = {
193 # The paper size ('letterpaper' or 'a4paper').
194 #'papersize': 'letterpaper',
195
196 # The font size ('10pt', '11pt' or '12pt').
197 #'pointsize': '10pt',
198
199 # Additional stuff for the LaTeX preamble.
200 #'preamble': '',
201 }
202
203 # Grouping the document tree into LaTeX files. List of tuples
204 # (source start file, target name, title, author, documentclass [howto/manual]).
205 latex_documents = [
206 ('index', 'Jedi.tex', 'Jedi Documentation',
207 'Jedi contributors', 'manual'),
208 ]
209
210 # The name of an image file (relative to this directory) to place at the top of
211 # the title page.
212 #latex_logo = None
213
214 # For "manual" documents, if this is true, then toplevel headings are parts,
215 # not chapters.
216 #latex_use_parts = False
217
218 # If true, show page references after internal links.
219 #latex_show_pagerefs = False
220
221 # If true, show URL addresses after external links.
222 #latex_show_urls = False
223
224 # Documents to append as an appendix to all manuals.
225 #latex_appendices = []
226
227 # If false, no module index is generated.
228 #latex_domain_indices = True
229
230
231 # -- Options for manual page output --------------------------------------------
232
233 # One entry per manual page. List of tuples
234 # (source start file, name, description, authors, manual section).
235 man_pages = [
236 ('index', 'jedi', 'Jedi Documentation',
237 ['Jedi contributors'], 1)
238 ]
239
240 # If true, show URL addresses after external links.
241 #man_show_urls = False
242
243
244 # -- Options for Texinfo output ------------------------------------------------
245
246 # Grouping the document tree into Texinfo files. List of tuples
247 # (source start file, target name, title, author,
248 # dir menu entry, description, category)
249 texinfo_documents = [
250 ('index', 'Jedi', 'Jedi Documentation',
251 'Jedi contributors', 'Jedi', 'Awesome Python autocompletion library.',
252 'Miscellaneous'),
253 ]
254
255 # Documents to append as an appendix to all manuals.
256 #texinfo_appendices = []
257
258 # If false, no module index is generated.
259 #texinfo_domain_indices = True
260
261 # How to display URL addresses: 'footnote', 'no', or 'inline'.
262 #texinfo_show_urls = 'footnote'
263
264 # -- Options for todo module ---------------------------------------------------
265
266 todo_include_todos = False
267
268 # -- Options for autodoc module ------------------------------------------------
269
270 autoclass_content = 'both'
271 autodoc_member_order = 'bysource'
272 autodoc_default_flags = []
273 #autodoc_default_flags = ['members', 'undoc-members']
274
275
276 # -- Options for intersphinx module --------------------------------------------
277
278 intersphinx_mapping = {
279 'python': ('https://docs.python.org/', None),
280 'parso': ('https://parso.readthedocs.io/en/latest/', None),
281 }
282
283
284 def skip_deprecated(app, what, name, obj, skip, options):
285 """
286 All attributes containing a deprecated note shouldn't be documented
287 anymore. This makes it even clearer that they are not supported anymore.
288 """
289 doc = obj.__doc__
290 return skip or doc and '.. deprecated::' in doc
291
292
293 def setup(app):
294 app.connect('autodoc-skip-member', skip_deprecated)