-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconf.py
165 lines (150 loc) · 5.53 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# -*- coding: utf-8 -*-
#
# Automatically generated by nengo-bones, do not edit this file directly
import pathlib
import nengo_dl
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.redirects",
"nengo_sphinx_theme.ext.sourcelinks",
"notfound.extension",
"numpydoc",
"sphinx_click.ext",
"nengo_sphinx_theme.ext.autoautosummary",
"nengo_sphinx_theme.ext.resolvedefaults",
]
# -- 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_dl
import nengo
import numpy as np
import tensorflow as tf
"""
# -- 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-dl/"
# -- numpydoc config
numpydoc_show_class_members = False
# -- nengo_sphinx_theme.ext.autoautosummary
autoautosummary_change_modules = {
"nengo_dl": [
"nengo_dl.config.configure_settings",
"nengo_dl.neurons.SoftLIFRate",
"nengo_dl.neurons.LeakyReLU",
"nengo_dl.neurons.SpikingLeakyReLU",
],
}
# -- nengo_sphinx_theme.ext.sourcelinks
sourcelinks_module = "nengo_dl"
sourcelinks_url = "https://github.com/nengo/nengo-dl"
# -- 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_dl"
suppress_warnings = ["image.nonlocal_uri"]
project = "NengoDL"
authors = "Applied Brain Research"
copyright = "2015-2023 Applied Brain Research"
version = ".".join(nengo_dl.__version__.split(".")[:2]) # Short X.Y version
release = nengo_dl.__version__ # Full version, with tags
# -- HTML output
templates_path = ["_templates"]
html_static_path = ["_static"]
html_theme = "nengo_sphinx_theme"
html_title = f"NengoDL {release} docs"
htmlhelp_basename = "NengoDL"
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": "nengo-dl-full-light.svg",
"nengo_logo_color": "#ff6600",
"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 -->
""",
}
html_redirects = [
("frontend.html", "user-guide.html"),
("backend.html", "reference.html#developers"),
("builder.html", "reference.html#builder"),
("extra_objects.html", "reference.html#neuron-types"),
("graph_optimizer.html", "reference.html#graph-optimization"),
("operators.html", "reference.html#operator-builders"),
("learning_rules.html", "reference.html#operator-builders"),
("neurons.html", "reference.html#operator-builders"),
("op_builders.html", "reference.html#operator-builders"),
("processes.html", "reference.html#operator-builders"),
("tensor_node_builders.html", "reference.html#operator-builders"),
("signals.html", "reference.html#signals"),
("tensor_graph.html", "reference.html#graph-construction"),
("utils.html", "reference.html#utilities"),
("tensor_node.html", "tensor-node.html"),
("examples/nef_init.html", "examples/nef-init.html"),
("examples/pretrained_model.html", "examples/pretrained-model.html"),
("examples/spa_memory.html", "examples/spa-memory.html"),
("examples/spa_retrieval.html", "examples/spa-retrieval.html"),
("examples/spiking_mnist.html", "examples/spiking-mnist.html"),
("examples/pretrained-model.html", "examples/tensorflow-models.html"),
("training.html", "simulator.html"),
]