Skip to content

Commit

Permalink
Merge pull request #197 from f5devcentral/banner-message
Browse files Browse the repository at this point in the history
Enable Ability to Add Banner Message
  • Loading branch information
jswongF5 authored Jul 27, 2024
2 parents 0db0451 + aaff10b commit 96a0e6d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion f5_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from os import path


__version__ = "2.6.1"
__version__ = "2.7.0"


def get_html_theme_path():
Expand Down
6 changes: 6 additions & 0 deletions f5_sphinx_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ <h5>{{ project }} {{ version }} </h5>

<article class="docs-container site-article-inner">

{%- if theme_banner_msg %}
<div class="clouddocs-banner">
<p>{{ theme_banner_msg }}</p>
</div>
{%- endif %}

{%- block breadcrumb %}
{% include "breadcrumb.html" %}
{% endblock %}
Expand Down
8 changes: 8 additions & 0 deletions f5_sphinx_theme/static/css/f5-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1368,3 +1368,11 @@ This section here is the css styling for the dropdown menu
.dropdown:hover .dropbtn {
background-color: #002e63;
}

.clouddocs-banner {
text-align: center;
width: 100%;
background-color: #ffcc00;
color: black;
font-weight: bold;
}
1 change: 1 addition & 0 deletions f5_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ sidebar_toc_maxdepth =
hide_right_menu =
show_project = True
display_last_updated =
banner_msg =

0 comments on commit 96a0e6d

Please sign in to comment.