Debian Codegraph @

docs/conf.py

raw
1 #!/usr/bin/env python3
2 #
3 # DeepDiff documentation build configuration file, created by
4 # sphinx-quickstart on Mon Jul 20 06:06:44 2015.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14
15 import sys
16 import os
17 import datetime
18 from dotenv import load_dotenv
19
20 # If extensions (or modules to document with autodoc) are in another directory,
21 # add these directories to sys.path here. If the directory is relative to the
22 # documentation root, use os.path.abspath to make it absolute, like shown here.
23 # import pdb; pdb.set_trace()
24 sys.path.insert(0, os.path.abspath('..'))
25
26 # -- General configuration ------------------------------------------------
27
28 # If your documentation needs a minimal Sphinx version, state it here.
29 #needs_sphinx = '1.0'
30
31 # Add any Sphinx extension module names here, as strings. They can be
32 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33 # ones.
34 extensions = [
35 'sphinx.ext.autodoc',
36 'sphinx.ext.doctest',
37 'sphinx_sitemap',
38 'sphinxemoji.sphinxemoji',
39 ]
40
41 # Add any paths that contain templates here, relative to this directory.
42 templates_path = ['_templates']
43
44 # The suffix(es) of source filenames.
45 # You can specify multiple suffix as a list of string:
46 # source_suffix = ['.rst', '.md']
47 source_suffix = '.rst'
48
49 # The encoding of source files.
50 #source_encoding = 'utf-8-sig'
51
52 # The master toctree document.
53 master_doc = 'index'
54
55 # General information about the project.
56
57 year = datetime.datetime.now().year
58 project = 'DeepDiff'
59 copyright = '2015-{}, Sep Dehpour'.format(year)
60 author = 'Sep Dehpour'
61
62 # The version info for the project you're documenting, acts as replacement for
63 # |version| and |release|, also used in various other places throughout the
64 # built documents.
65 #
66 # The short X.Y version.
67 version = '9.0.0'
68 # The full version, including alpha/beta/rc tags.
69 release = '9.0.0'
70
71 load_dotenv(override=True)
72 DOC_VERSION = os.environ.get('DOC_VERSION', version)
73
74
75 # The language for content autogenerated by Sphinx. Refer to documentation
76 # for a list of supported languages.
77 #
78 # This is also used if you do content translation via gettext catalogs.
79 # Usually you set "language" from the command line for these cases.
80 language = 'en'
81
82 # There are two options for replacing |today|: either, you set today to some
83 # non-false value, then it is used:
84 #today = ''
85 # Else, today_fmt is used as the format for a strftime call.
86 #today_fmt = '%B %d, %Y'
87
88 # List of patterns, relative to source directory, that match files and
89 # directories to ignore when looking for source files.
90 exclude_patterns = ['_build']
91
92 # The reST default role (used for this markup: `text`) to use for all
93 # documents.
94 #default_role = None
95
96 # If true, '()' will be appended to :func: etc. cross-reference text.
97 #add_function_parentheses = True
98
99 # If true, the current module name will be prepended to all description
100 # unit titles (such as .. function::).
101 #add_module_names = True
102
103 # If true, sectionauthor and moduleauthor directives will be shown in the
104 # output. They are ignored by default.
105 #show_authors = False
106
107 # The name of the Pygments (syntax highlighting) style to use.
108 # Let Furo use its default pygments styles (light + dark mode aware)
109 pygments_style = 'xcode'
110 pygments_dark_style = 'github-dark'
111
112 # A list of ignored prefixes for module index sorting.
113 #modindex_common_prefix = []
114
115 # If true, keep warnings as "system message" paragraphs in the built documents.
116 #keep_warnings = False
117
118 # If true, `todo` and `todoList` produce output, else they produce nothing.
119 todo_include_todos = False
120
121
122 # -- Options for HTML output ----------------------------------------------
123
124 # The theme to use for HTML and HTML Help pages. See the documentation for
125 # a list of builtin themes.
126 html_theme = 'furo'
127
128 html_theme_options = {
129 'footer_icons': [
130 {
131 'name': 'GitHub',
132 'url': 'https://github.com/seperman/deepdiff',
133 'html': '<svg stroke="currentColor" fill="currentColor" stroke-width="0" '
134 'viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 '
135 '3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-'
136 '2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 '
137 '1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-'
138 '3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 '
139 '.67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-'
140 '.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 '
141 '3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46'
142 '.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>',
143 'class': '',
144 },
145 ],
146 'source_repository': 'https://github.com/seperman/deepdiff',
147 'source_branch': 'master',
148 'source_directory': 'docs/',
149 'light_css_variables': {
150 # Fonts
151 'font-stack': "'Open Sans', sans-serif",
152 'font-stack--headings': "'Open Sans', sans-serif",
153 'font-size--normal': '17px',
154 # Body colors (from Alabaster)
155 'color-foreground-primary': '#3E4349',
156 'color-foreground-secondary': '#555',
157 'color-foreground-muted': '#888',
158 'color-background-primary': '#fff',
159 'color-background-secondary': '#f8f8f8',
160 'color-background-border': '#EEE',
161 # Links
162 'color-link': '#004B6B',
163 'color-link--hover': '#6D4100',
164 # Sidebar
165 'color-sidebar-background': '#fff',
166 'color-sidebar-text': '#555',
167 'color-sidebar-link': '#444',
168 'color-sidebar-link-text': '#444',
169 'color-sidebar-link-text--top-level': '#444',
170 'color-sidebar-item-background--hover': '#EEE',
171 'color-sidebar-item-expander-color': '#444',
172 'color-sidebar-caption-text': '#444',
173 'color-sidebar-item-background--current': 'transparent',
174 'color-sidebar-search-border': '#CCC',
175 # Code blocks
176 'color-code-background': '#ecf0f3',
177 'color-code-foreground': '#222',
178 'color-inline-code-background': '#ecf0f3',
179 # Admonitions
180 'color-admonition-background': '#EEE',
181 'color-admonition-title': '#195190',
182 'color-admonition-title-background': 'rgba(25, 81, 144, 0.1)',
183 # Table of contents (right sidebar)
184 'color-toc-item-text': '#444',
185 'color-toc-item-text--hover': '#195190',
186 'color-toc-item-text--active': '#195190',
187 # Headerlink
188 'color-header-text': '#3E4349',
189 },
190 'dark_css_variables': {
191 'font-stack': "'Open Sans', sans-serif",
192 'font-stack--headings': "'Open Sans', sans-serif",
193 'font-size--normal': '17px',
194 # Links
195 'color-link': '#7EB8DA',
196 'color-link--hover': '#D4A76A',
197 # Sidebar
198 'color-sidebar-background': '#1a1c1e',
199 'color-sidebar-background-border': '#2d2d2d',
200 'color-sidebar-link-text': '#ccc',
201 'color-sidebar-link-text--top-level': '#ccc',
202 'color-sidebar-caption-text': '#ccc',
203 'color-sidebar-item-background--hover': '#2d2d2d',
204 # Code blocks
205 'color-code-background': '#2b2b2b',
206 'color-inline-code-background': '#2b2b2b',
207 # Admonitions
208 'color-admonition-title': '#7EB8DA',
209 'color-admonition-title-background': 'rgba(126, 184, 218, 0.15)',
210 # TOC
211 'color-toc-item-text--hover': '#7EB8DA',
212 'color-toc-item-text--active': '#7EB8DA',
213 },
214 }
215
216 # Add any paths that contain custom themes here, relative to this directory.
217 #html_theme_path = []
218
219 # The name for this set of Sphinx documents. If None, it defaults to
220 # "<project> v<release> documentation".
221 #html_title = None
222
223 # A shorter title for the navigation bar. Default is the same as html_title.
224 #html_short_title = None
225
226 # The name of an image file (relative to this directory) to place at the top
227 # of the sidebar.
228 html_logo = '_static/qluster_grey_on_white_bg_optimized.svg'
229
230 # The name of an image file (within the static path) to use as favicon of the
231 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
232 # pixels large.
233 html_favicon = "./_static/favicon.ico"
234
235 # Add any paths that contain custom static files (such as style sheets) here,
236 # relative to this directory. They are copied after the builtin static files,
237 # so a file named "default.css" will overwrite the builtin "default.css".
238 html_static_path = ['_static']
239 html_css_files = ['custom.css']
240
241 # Add any extra paths that contain custom files (such as robots.txt or
242 # .htaccess) here, relative to this directory. These files are copied
243 # directly to the root of the documentation.
244 #html_extra_path = []
245
246 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
247 # using the given strftime format.
248 #html_last_updated_fmt = '%b %d, %Y'
249
250 # If true, SmartyPants will be used to convert quotes and dashes to
251 # typographically correct entities.
252 #html_use_smartypants = True
253
254 # Custom sidebar templates, maps document names to template names.
255 #html_sidebars = {}
256
257 # Additional templates that should be rendered to pages, maps page names to
258 # template names.
259 #html_additional_pages = {}
260
261 # If false, no module index is generated.
262 #html_domain_indices = True
263
264 # If false, no index is generated.
265 #html_use_index = True
266
267 # If true, the index is split into individual pages for each letter.
268 #html_split_index = False
269
270 # If true, links to the reST sources are added to the pages.
271 #html_show_sourcelink = True
272
273 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
274 #html_show_sphinx = True
275
276 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
277 #html_show_copyright = True
278
279 # If true, an OpenSearch description file will be output, and all pages will
280 # contain a <link> tag referring to it. The value of this option must be the
281 # base URL from which the finished HTML is served.
282 #html_use_opensearch = ''
283
284 # This is the file name suffix for HTML files (e.g. ".xhtml").
285 #html_file_suffix = None
286
287 # Language to be used for generating the HTML full-text search index.
288 # Sphinx supports the following languages:
289 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
290 # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
291 html_search_language = 'en'
292
293 # A dictionary with options for the search language support, empty by default.
294 # Now only 'ja' uses this config value
295 #html_search_options = {'type': 'default'}
296
297 # The name of a javascript file (relative to the configuration directory) that
298 # implements a search results scorer. If empty, the default will be used.
299 #html_search_scorer = 'scorer.js'
300
301 # Output file base name for HTML help builder.
302 htmlhelp_basename = 'DeepDiffdoc'
303
304 # Sitemap settings:
305
306 html_baseurl = f'https://zepworks.com/deepdiff/{DOC_VERSION}'
307 sitemap_url_scheme = "{link}"
308
309 # -- Options for LaTeX output ---------------------------------------------
310
311 latex_elements = {
312 # The paper size ('letterpaper' or 'a4paper').
313 #'papersize': 'letterpaper',
314
315 # The font size ('10pt', '11pt' or '12pt').
316 #'pointsize': '10pt',
317
318 # Additional stuff for the LaTeX preamble.
319 #'preamble': '',
320
321 # Latex figure (float) alignment
322 #'figure_align': 'htbp',
323 }
324
325 # Grouping the document tree into LaTeX files. List of tuples
326 # (source start file, target name, title,
327 # author, documentclass [howto, manual, or own class]).
328 latex_documents = [
329 (master_doc, 'DeepDiff.tex', 'DeepDiff Documentation',
330 'Sep Dehpour', 'manual'),
331 ]
332
333 # The name of an image file (relative to this directory) to place at the top of
334 # the title page.
335 #latex_logo = None
336
337 # For "manual" documents, if this is true, then toplevel headings are parts,
338 # not chapters.
339 #latex_use_parts = False
340
341 # If true, show page references after internal links.
342 #latex_show_pagerefs = False
343
344 # If true, show URL addresses after external links.
345 #latex_show_urls = False
346
347 # Documents to append as an appendix to all manuals.
348 #latex_appendices = []
349
350 # If false, no module index is generated.
351 #latex_domain_indices = True
352
353
354 # -- Options for manual page output ---------------------------------------
355
356 # One entry per manual page. List of tuples
357 # (source start file, name, description, authors, manual section).
358 man_pages = [
359 (master_doc, 'deepdiff', 'DeepDiff Documentation',
360 [author], 1)
361 ]
362
363 # If true, show URL addresses after external links.
364 #man_show_urls = False
365
366
367 # -- Options for Texinfo output -------------------------------------------
368
369 # Grouping the document tree into Texinfo files. List of tuples
370 # (source start file, target name, title, author,
371 # dir menu entry, description, category)
372 texinfo_documents = [
373 (master_doc, 'DeepDiff', 'DeepDiff Documentation',
374 author, 'DeepDiff', 'Deep difference of Python objects.',
375 'Miscellaneous'),
376 ]
377
378 # Documents to append as an appendix to all manuals.
379 #texinfo_appendices = []
380
381 # If false, no module index is generated.
382 #texinfo_domain_indices = True
383
384 # How to display URL addresses: 'footnote', 'no', or 'inline'.
385 #texinfo_show_urls = 'footnote'
386
387 # If true, do not generate a @detailmenu in the "Top" node's menu.
388 #texinfo_no_detailmenu = False