@@ -47,8 +47,8 @@ def get_years(start_year=2021):
47
47
48
48
# -- Project information -----------------------------------------------------
49
49
project = "cebra"
50
- copyright = f"""{ get_years (2021 )} , Steffen Schneider, Jin H Lee, Mackenzie Mathis """
51
- author = "Steffen Schneider, Jin H Lee, Mackenzie Mathis "
50
+ copyright = f"""{ get_years (2021 )} """
51
+ author = "See AUTHORS.md "
52
52
# The full version, including alpha/beta/rc tags
53
53
release = cebra .__version__
54
54
@@ -57,6 +57,13 @@ def get_years(start_year=2021):
57
57
# Add any Sphinx extension module names here, as strings. They can be
58
58
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
59
59
# ones.
60
+
61
+ #https://github.com/spatialaudio/nbsphinx/issues/128#issuecomment-1158712159
62
+ html_js_files = [
63
+ "require.min.js" , # Add to your _static
64
+ "custom.js" ,
65
+ ]
66
+
60
67
extensions = [
61
68
"sphinx.ext.autodoc" ,
62
69
"sphinx.ext.napoleon" ,
@@ -68,13 +75,13 @@ def get_years(start_year=2021):
68
75
"sphinx_tabs.tabs" ,
69
76
"sphinx.ext.mathjax" ,
70
77
"IPython.sphinxext.ipython_console_highlighting" ,
71
- # "sphinx_panels", # Note: package to avoid: no longer maintained.
72
78
"sphinx_design" ,
73
79
"sphinx_togglebutton" ,
74
80
"sphinx.ext.doctest" ,
75
81
"sphinx_gallery.load_style" ,
76
82
]
77
83
84
+
78
85
coverage_show_missing_items = True
79
86
panels_add_bootstrap_css = False
80
87
@@ -137,6 +144,21 @@ def get_years(start_year=2021):
137
144
# a list of builtin themes.
138
145
html_theme = "pydata_sphinx_theme"
139
146
147
+ html_context = {
148
+ "default_mode" : "light" ,
149
+ "switcher" : {
150
+ "version_match" : "latest" , # Adjust this dynamically per version
151
+ "versions" : [
152
+ ("latest" , "/latest/" ),
153
+ ("v0.2.0" , "/v0.2.0/" ),
154
+ ("v0.3.0" , "/v0.3.0/" ),
155
+ ("v0.4.0" , "/v0.4.0/" ),
156
+ ("v0.5.0rc1" , "/v0.5.0rc1/" ),
157
+ ],
158
+ },
159
+ "navbar_start" : ["version-switcher" , "navbar-logo" ], # Place the dropdown above the logo
160
+ }
161
+
140
162
# More info on theme options:
141
163
# https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/configuring.html
142
164
html_theme_options = {
0 commit comments