Debian Codegraph @

doc/source/conf.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # Path Specification documentation build configuration file, created by
4 # sphinx-quickstart on Fri Sep 8 09:37:49 2017.
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 os
16 import sys
17
18 # If extensions (or modules to document with autodoc) are in another directory,
19 # add these directories to sys.path here. If the directory is relative to the
20 # documentation root, use os.path.abspath to make it absolute, like shown here.
21 sys.path.insert(0, os.path.abspath('../../'))
22 from pathspec._meta import __author__, __copyright__
23 from pathspec._version import __version__
24
25
26 # -- General configuration ------------------------------------------------
27
28 # Add any Sphinx extension module names here, as strings. They can be
29 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
30 # ones.
31 extensions = [
32 'sphinx.ext.autodoc',
33 'sphinx.ext.intersphinx',
34 'sphinx.ext.viewcode',
35 ]
36
37 # The autodoc extension doesn't understand the `Self` typehint.
38 # To avoid documentation build errors, autodoc typehints must be disabled.
39 autodoc_typehints = "signature"
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 #
47 # source_suffix = ['.rst', '.md']
48 source_suffix = '.rst'
49
50 # The master toctree document.
51 master_doc = 'index'
52
53 # General information about the project.
54 project = "PathSpec"
55 copyright = __copyright__.split("©")[1].strip()
56 author = __author__
57
58 # The version info for the project you're documenting, acts as replacement for
59 # |version| and |release|, also used in various other places throughout the
60 # built documents.
61 #
62 # The short X.Y version.
63 version = '.'.join(__version__.split('.', 2)[:2])
64 # The full version, including alpha/beta/rc tags.
65 release = __version__
66
67 # The language for content autogenerated by Sphinx. Refer to documentation
68 # for a list of supported languages.
69 #
70 # This is also used if you do content translation via gettext catalogs.
71 # Usually you set "language" from the command line for these cases.
72 language = "en"
73
74 # List of patterns, relative to source directory, that match files and
75 # directories to ignore when looking for source files.
76 # This patterns also effect to html_static_path and html_extra_path
77 exclude_patterns = []
78
79 # The name of the Pygments (syntax highlighting) style to use.
80 pygments_style = 'sphinx'
81
82 # If true, `todo` and `todoList` produce output, else they produce nothing.
83 todo_include_todos = False
84
85
86 # -- Options for the autodoc extension -----------------------------------------
87
88 autodoc_member_order = 'bysource'
89
90
91 # -- Options for HTML output ----------------------------------------------
92
93 # The theme to use for HTML and HTML Help pages. See the documentation for
94 # a list of builtin themes.
95 #
96 html_theme = 'sphinxdoc'
97
98 # Theme options are theme-specific and customize the look and feel of a theme
99 # further. For a list of options available for each theme, see the
100 # documentation.
101 #
102 html_theme_options = {
103 #'collapse_navigation': True,
104 #'navigation_depth': 4
105 }
106
107 # Add any paths that contain custom static files (such as style sheets) here,
108 # relative to this directory. They are copied after the builtin static files,
109 # so a file named "default.css" will overwrite the builtin "default.css".
110 # html_static_path = ['_static']
111
112 # Custom sidebar templates, must be a dictionary that maps document names
113 # to template names.
114 #
115 # This is required for the alabaster theme
116 # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
117 '''
118 html_sidebars = {
119 '**': [
120 'about.html',
121 'navigation.html',
122 'relations.html', # needs 'show_related': True theme option to display
123 'searchbox.html',
124 'donate.html',
125 ]
126 }
127 '''
128
129
130 # -- Options for HTMLHelp output ------------------------------------------
131
132 # Output file base name for HTML help builder.
133 htmlhelp_basename = '{}doc'.format(project)
134
135
136 # -- Options for LaTeX output ---------------------------------------------
137
138 latex_elements = {
139 # The paper size ('letterpaper' or 'a4paper').
140 #
141 # 'papersize': 'letterpaper',
142
143 # The font size ('10pt', '11pt' or '12pt').
144 #
145 # 'pointsize': '10pt',
146
147 # Additional stuff for the LaTeX preamble.
148 #
149 # 'preamble': '',
150
151 # Latex figure (float) alignment
152 #
153 # 'figure_align': 'htbp',
154 }
155
156 # Grouping the document tree into LaTeX files. List of tuples
157 # (source start file, target name, title,
158 # author, documentclass [howto, manual, or own class]).
159 latex_documents = [
160 (master_doc, '{}.tex'.format(project), '{} Documentation'.format(project), author, 'manual'),
161 ]
162
163
164 # -- Options for manual page output ---------------------------------------
165
166 # One entry per manual page. List of tuples
167 # (source start file, name, description, authors, manual section).
168 man_pages = [
169 (master_doc, project, '{} Documentation'.format(project), [author], 1),
170 ]
171
172 # Example configuration for intersphinx: refer to the Python standard library.
173 intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}