Debian Codegraph @

docs/conf.py

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