Skip to content

Commit

Permalink
Update theme configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed May 21, 2021
1 parent b3563f5 commit c83200d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
14 changes: 14 additions & 0 deletions docs/sphinx/_templates/versioning.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% if versions %}
<nav id="bd-docs-nav" class="bd-links" aria-label="Versions navigation">
<div class="bd-toc-item active">
<p class="caption">
<span class="caption-text">{{ _('Doc Versions') }}</span>
</p>
<ul class="nav bd-sidenav">
{%- for item in versions %}
<li class="toctree-l1"><a class="reference internal" href="{{ item.url }}">{{ item.name }}</a></li>
{%- endfor %}
</ul>
</div>
</nav>
{% endif %}
15 changes: 9 additions & 6 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
"use_edit_page_button": True,
"path_to_docs": "docs/sphinx",
"home_page_in_toc": True,
"use_download_button": False,
"use_fullscreen_button": True,
"single_page": False,
}

# Add any paths that contain custom static files (such as style sheets) here,
Expand Down Expand Up @@ -99,18 +102,18 @@
# From: https://holzhaus.github.io/sphinx-multiversion
smv_prefer_remote_refs = False
smv_remote_whitelist = r'^(origin|upstream)$'
smv_tag_whitelist = None
smv_tag_whitelist = r''
smv_branch_whitelist = r'^(master|devel|docs/.*)$'
smv_released_pattern = r'^tags/.*$'
smv_outputdir_format = '{ref.name}'

html_sidebars = {
"**": [
"about.html",
"navigation.html",
"versions.html",
"searchbox.html",
],
"sbt-sidebar-nav.html",
"versioning.html",
"search-field.html",
"sbt-sidebar-footer.html",
]
}

# -- Options for extlinks extension ----------------------------------
Expand Down

0 comments on commit c83200d

Please sign in to comment.