GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

conf   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 214
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 57
dl 0
loc 214
rs 10
c 0
b 0
f 0
wmc 0
1
# -*- coding: utf-8 -*-
2
#
3
# Configuration file for the Sphinx documentation builder.
4
#
5
# This file does only contain a selection of the most common options. For a
6
# full list see the documentation:
7
# http://www.sphinx-doc.org/en/master/config
8
9
# -- Path setup --------------------------------------------------------------
10
11
# If extensions (or modules to document with autodoc) are in another directory,
12
# add these directories to sys.path here. If the directory is relative to the
13
# documentation root, use os.path.abspath to make it absolute, like shown here.
14
#
15
import os
16
import sys
17
sys.path.insert(0, os.path.abspath('..'))
18
19
import sphinx_readable_theme
20
from bricknil.version import __version__
21
22
# -- Project information -----------------------------------------------------
23
24
project = 'BrickNil'
25
copyright = '2019, Virantha N. Ekanayake'
26
author = 'Virantha N. Ekanayake'
27
28
# The short X.Y version
29
version = ''
30
# The full version, including alpha/beta/rc tags
31
release = __version__
32
33
34
# -- General configuration ---------------------------------------------------
35
autoclass_content = "both"  # include both class docstring and __init__
36
autodoc_default_flags = [
37
                 # Make sure that any autodoc declarations show the right members
38
                 "members",
39
                 "undoc-members",
40
                 #"inherited-members",
41
                 #"private-members",
42
                 "show-inheritance",
43
         ]
44
autosummary_generate = True  # Make _autosummary files and include them
45
napoleon_numpy_docstring = False  # Force consistency, leave only Google
46
napoleon_use_rtype = False  # More legible
47
48
autodoc_member_order = 'bysource'
49
50
#
51
# If your documentation needs a minimal Sphinx version, state it here.
52
#
53
# needs_sphinx = '1.0'
54
55
# Add any Sphinx extension module names here, as strings. They can be
56
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
57
# ones.
58
extensions = [
59
    'sphinx.ext.autodoc',
60
    'sphinx.ext.autosummary',
61
    'sphinx.ext.viewcode',
62
    'sphinx.ext.napoleon',
63
    'sphinx.ext.graphviz',
64
    'sphinx.ext.intersphinx',
65
    'sphinx.ext.todo',
66
    'sphinx.ext.extlinks',
67
]
68
69
70
# Add any paths that contain templates here, relative to this directory.
71
templates_path = ['_templates']
72
73
# The suffix(es) of source filenames.
74
# You can specify multiple suffix as a list of string:
75
#
76
# source_suffix = ['.rst', '.md']
77
source_suffix = '.rst'
78
79
# The master toctree document.
80
master_doc = 'index'
81
82
# The language for content autogenerated by Sphinx. Refer to documentation
83
# for a list of supported languages.
84
#
85
# This is also used if you do content translation via gettext catalogs.
86
# Usually you set "language" from the command line for these cases.
87
language = None
88
89
# List of patterns, relative to source directory, that match files and
90
# directories to ignore when looking for source files.
91
# This pattern also affects html_static_path and html_extra_path.
92
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
93
94
# The name of the Pygments (syntax highlighting) style to use.
95
pygments_style = None
96
97
98
# -- Options for HTML output -------------------------------------------------
99
100
# The theme to use for HTML and HTML Help pages.  See the documentation for
101
# a list of builtin themes.
102
#
103
html_theme_path = [sphinx_readable_theme.get_html_theme_path()]
104
html_theme = 'readable'
105
#html_theme = 'sphinx_rtd_theme'
106
#html_theme = 'alabaster'
107
108
# Theme options are theme-specific and customize the look and feel of a theme
109
# further.  For a list of options available for each theme, see the
110
# documentation.
111
#
112
# html_theme_options = {}
113
114
# Add any paths that contain custom static files (such as style sheets) here,
115
# relative to this directory. They are copied after the builtin static files,
116
# so a file named "default.css" will overwrite the builtin "default.css".
117
# html_static_path = ['_static']
118
119
# Custom sidebar templates, must be a dictionary that maps document names
120
# to template names.
121
#
122
# The default sidebars (for documents that don't match any pattern) are
123
# defined by theme itself.  Builtin themes are using these templates by
124
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
125
# 'searchbox.html']``.
126
#
127
# html_sidebars = {}
128
129
130
# -- Options for HTMLHelp output ---------------------------------------------
131
132
# Output file base name for HTML help builder.
133
htmlhelp_basename = 'BrickNildoc'
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, 'BrickNil.tex', 'BrickNil Documentation',
161
     'Virantha N. Ekanayake', 'manual'),
162
]
163
164
165
# -- Options for manual page output ------------------------------------------
166
167
# One entry per manual page. List of tuples
168
# (source start file, name, description, authors, manual section).
169
man_pages = [
170
    (master_doc, 'bricknil', 'BrickNil Documentation',
171
     [author], 1)
172
]
173
174
175
# -- Options for Texinfo output ----------------------------------------------
176
177
# Grouping the document tree into Texinfo files. List of tuples
178
# (source start file, target name, title, author,
179
#  dir menu entry, description, category)
180
texinfo_documents = [
181
    (master_doc, 'BrickNil', 'BrickNil Documentation',
182
     author, 'BrickNil', 'One line description of project.',
183
     'Miscellaneous'),
184
]
185
186
187
# -- Options for Epub output -------------------------------------------------
188
189
# Bibliographic Dublin Core info.
190
epub_title = project
191
192
# The unique identifier of the text. This can be a ISBN number
193
# or the project homepage.
194
#
195
# epub_identifier = ''
196
197
# A unique identification for the text.
198
#
199
# epub_uid = ''
200
201
# A list of files that should not be packed into the epub file.
202
epub_exclude_files = ['search.html']
203
204
205
# -- Extension configuration -------------------------------------------------
206
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
207
todo_include_todos = True
208
todo_link_only = False
209
210
# External links shortcut
211
extlinks = { 'gh_user': ('https://github.com/%s', '@'),
212
             'gh_issue': ('https://github.com/virantha/bricknil/issues/%s', 'GH Issue '),
213
             'amzn'   : ('https://www.amazon.com/gp/product/%s/ref=as_li_tl?ie=UTF8&tag=virantha-20&camp=1789&creative=9325&linkCode=as2', ''),
214
           }
215