Skip to content

Commit

Permalink
Merge pull request #115 from rbessems/remove_next_button_from_mainsite
Browse files Browse the repository at this point in the history
Remove next button from main site
  • Loading branch information
rbessems authored Feb 7, 2024
2 parents a444de5 + 7eabcb8 commit 0b971ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def configureDoxyfile(input_dir, output_dir):
html_logo = "images/OpenXR_170px_Feb17.png"
html_theme_options = {
'logo_only': False,
'display_version': False
'display_version': False,
'show_next_previous_button': OPENXR_MAINSITE=="false"
}

html_favicon = 'favicon.ico'
Expand Down
2 changes: 2 additions & 0 deletions tutorial/tutorial_sphinx_theme_1/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
{%- if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
{#- Translators: This is an ARIA section label for the footer section of the page. -#}
<div class="rst-footer-buttons" role="navigation" aria-label="{{ _('Footer') }}">
{%- if theme_show_next_previous_button %}
{%- if prev %}
<a href="{{ prev.link|e }}" class="btn btn-neutral float-left" title="{{ prev.title|striptags|e }}" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> {{ _('Previous') }}</a>
{%- endif %}
{%- if next %}
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" rel="next">{{ _('Next') }} <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
{%- endif %}
{%- endif %}
</div>
{%- endif %}

Expand Down
2 changes: 2 additions & 0 deletions tutorial/tutorial_sphinx_theme_1/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@
{%- if hasdoc('copyright') %}
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" >
{%- endif %}
{%- if theme_show_next_previous_button %}
{%- if next %}
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" >
{%- endif %}
{%- if prev %}
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" >
{%- endif %}
{%- endif %}
{%- endblock %}
{%- block extrahead %} {% endblock %}
<script src="_static/js/js.cookie.min.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion tutorial/tutorial_sphinx_theme_1/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ display_version = True
prev_next_buttons_location = bottom
style_external_links = False
style_nav_header_background =
vcs_pageview_mode =
vcs_pageview_mode =
show_next_previous_button = True

0 comments on commit 0b971ba

Please sign in to comment.