@@ -47,8 +47,8 @@ def get_years(start_year=2021):
4747
4848# -- Project information -----------------------------------------------------
4949project = "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 "
5252# The full version, including alpha/beta/rc tags
5353release = cebra .__version__
5454
@@ -57,6 +57,13 @@ def get_years(start_year=2021):
5757# Add any Sphinx extension module names here, as strings. They can be
5858# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
5959# 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+
6067extensions = [
6168 "sphinx.ext.autodoc" ,
6269 "sphinx.ext.napoleon" ,
@@ -68,13 +75,13 @@ def get_years(start_year=2021):
6875 "sphinx_tabs.tabs" ,
6976 "sphinx.ext.mathjax" ,
7077 "IPython.sphinxext.ipython_console_highlighting" ,
71- # "sphinx_panels", # Note: package to avoid: no longer maintained.
7278 "sphinx_design" ,
7379 "sphinx_togglebutton" ,
7480 "sphinx.ext.doctest" ,
7581 "sphinx_gallery.load_style" ,
7682]
7783
84+
7885coverage_show_missing_items = True
7986panels_add_bootstrap_css = False
8087
@@ -137,6 +144,21 @@ def get_years(start_year=2021):
137144# a list of builtin themes.
138145html_theme = "pydata_sphinx_theme"
139146
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+
140162# More info on theme options:
141163# https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/configuring.html
142164html_theme_options = {
0 commit comments