Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/configuring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ For example:
'analytics_id': 'G-XXXXXXXXXX', # Provided by Google in your dashboard
'analytics_anonymize_ip': False,
'logo_only': False,
'display_version': True,
'prev_next_buttons_location': 'bottom',
'style_external_links': False,
'vcs_pageview_mode': '',
'style_nav_header_background': 'white',
'flyout_display': 'hidden',
'version_selector': True,
'version_selector': True, # Will be prioritized over display_version
'language_selector': True,
# Toc options
'collapse_navigation': True,
Expand Down
7 changes: 7 additions & 0 deletions sphinx_rtd_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@
<div class="language-switch"></div>
</div>
{%- endif %}
{%- elif theme_display_version %}
{%- set nav_version = version %}
{%- if nav_version %}
<div class="version">
{{ nav_version }}
</div>
{%- endif %}
{%- endif %}

{%- include "searchbox.html" %}
Expand Down
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/css/theme.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions sphinx_rtd_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ navigation_depth = 4
includehidden = True
titles_only =
logo_only =
display_version = True
prev_next_buttons_location = bottom
style_external_links = False
style_nav_header_background =
Expand Down
5 changes: 5 additions & 0 deletions src/sass/_theme_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ html
display: block
img.logo
margin-top: 0.85em // space it away from the title text
> div.version
margin-top: -1 * $gutter / 4
margin-bottom: $gutter / 2
font-weight: normal
color: rgba(255, 255, 255, 0.3)
> div.switch-menus
position: relative
display: block
Expand Down