diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index fcfece95..12fbfdd0 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -49,7 +49,7 @@ master_doc = 'index' # It's used by the "log-a-bug" button on each page # and should ultimately be set automatically by the build process project = u'Test API Reference' -copyright = u'2016, OpenStack Contributors' +copyright = u'2018, OpenStack Contributors' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -121,6 +121,7 @@ html_theme = 'openstackdocs' # Otherwise, the list of links for the User and Ops docs # appear in the sidebar dropdown menu. html_theme_options = {"sidebar_dropdown": "api_ref", + "display_badge": False, "sidebar_mode": "toc"} # Add any paths that contain custom themes here, relative to this directory. diff --git a/doc/source/conf.py b/doc/source/conf.py index aecb5b3f..eeb15cc6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -21,7 +21,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -copyright = u'2015-2017, OpenStack Contributors' +copyright = u'2015-2018, OpenStack Contributors' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. @@ -46,7 +46,9 @@ html_theme = 'openstackdocs' # variable, sidebar_dropdown, should be set to `api_ref`. # Otherwise, the list of links for the User and Ops docs # appear in the sidebar dropdown menu. -html_theme_options = {'show_other_versions': True} +html_theme_options = { + 'show_other_versions': True +} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, diff --git a/doc/source/index.rst b/doc/source/index.rst index faea9c8b..ea9451a4 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -140,6 +140,15 @@ with documentation available. By default it is set to ``None``:: document with internal versioning. +By default, a badge is displayed showing which the latest OpenStack +release is. You can disable the badge with:: + + html_theme_options = { + # ... + "display_badge": False, + # ... + } + External Link Helper -------------------- diff --git a/openstackdocstheme/theme/openstackdocs/layout.html b/openstackdocstheme/theme/openstackdocs/layout.html index a45895b2..4a235035 100644 --- a/openstackdocstheme/theme/openstackdocs/layout.html +++ b/openstackdocstheme/theme/openstackdocs/layout.html @@ -94,7 +94,7 @@ ga('send', 'pageview'); {% include 'footer.html' %} {% include 'script_footer.html' %} {% block script_footer %}{% endblock %} -{% if series %} +{% if theme_display_badge %}