-
Notifications
You must be signed in to change notification settings - Fork 13
/
conf.py
123 lines (109 loc) · 3.79 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# -*- coding: utf-8 -*-
#
# Automatically generated by nengo-bones, do not edit this file directly
import pathlib
import nengo_examples
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.doctest",
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.todo",
"nbsphinx",
"nengo_sphinx_theme",
"nengo_sphinx_theme.ext.backoff",
"nengo_sphinx_theme.ext.sourcelinks",
"notfound.extension",
"numpydoc",
]
# -- sphinx.ext.autodoc
autoclass_content = "both" # class and __init__ docstrings are concatenated
autodoc_default_options = {"members": None}
autodoc_member_order = "bysource" # default is alphabetical
# -- sphinx.ext.doctest
doctest_global_setup = """
import nengo_examples
"""
# -- sphinx.ext.intersphinx
intersphinx_mapping = {
"nengo": ("https://www.nengo.ai/nengo/", None),
"numpy": ("https://numpy.org/doc/stable", None),
"python": ("https://docs.python.org/3", None),
}
# -- sphinx.ext.todo
todo_include_todos = True
# -- nbsphinx
nbsphinx_timeout = -1
# -- notfound.extension
notfound_template = "404.html"
notfound_urls_prefix = "/nengo-examples/"
# -- numpydoc config
numpydoc_show_class_members = False
# -- nengo_sphinx_theme.ext.sourcelinks
sourcelinks_module = "nengo_examples"
sourcelinks_url = "https://github.com/nengo/nengo-examples"
# -- sphinx
nitpicky = True
exclude_patterns = [
"_build",
"**/.ipynb_checkpoints",
]
linkcheck_timeout = 30
source_suffix = ".rst"
source_encoding = "utf-8"
master_doc = "index"
linkcheck_ignore = [r"http://localhost:\d+"]
linkcheck_anchors = True
default_role = "py:obj"
pygments_style = "sphinx"
user_agent = "nengo_examples"
project = "NengoExamples"
authors = "Applied Brain Research"
copyright = "2016-2023 Applied Brain Research"
version = ".".join(nengo_examples.__version__.split(".")[:2]) # Short X.Y version
release = nengo_examples.__version__ # Full version, with tags
# -- HTML output
templates_path = ["_templates"]
html_static_path = ["_static"]
html_theme = "nengo_sphinx_theme"
html_title = f"NengoExamples {release} docs"
htmlhelp_basename = "NengoExamples"
html_last_updated_fmt = "" # Default output format (suppressed)
html_show_sphinx = False
html_favicon = str(pathlib.Path("_static", "favicon.ico"))
html_theme_options = {
"nengo_logo": "general-full-light.svg",
"nengo_logo_color": "#a8acaf",
"analytics": """
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GT8XEDLTMJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-GT8XEDLTMJ');
</script>
<!-- End Google tag (gtag.js) -->
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.appliedbrainresearch.com"]);
_paq.push(["setDomains", ["*.appliedbrainresearch.com","*.edge.nengo.ai","*.forum.nengo.ai","*.labs.nengo.ai","*.nengo.ai"]]);
_paq.push(["enableCrossDomainLinking"]);
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://appliedbrainresearch.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='//cdn.matomo.cloud/appliedbrainresearch.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
""",
}