Skip to content

Commit 713c614

Browse files
Rajakavitha1Rakavitha Kodhandapani
authored andcommitted
docs added a banner (#6390)
1 parent c3a4b26 commit 713c614

File tree

1 file changed

+44
-14
lines changed

1 file changed

+44
-14
lines changed

docs/source/_templates/page.html

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@
33
{%- block content %}
44
{% set nav_bar_tabs = parents or theme_master_doc or theme_nav_links %}
55
<div class="md-container">
6-
{%- block hero %} {% include "hero.html" %} {% endblock %} {% include
7-
"relbar.html" %}
6+
7+
{# 🚨 Banner injected here, before hero/relbar and main content #}
8+
<div class="custom-banner" style="padding: 1rem;">
9+
<div>
10+
<strong>
11+
<img
12+
src="https://img.icons8.com/?size=100&id=360&format=png&color=FA5252"
13+
alt="alert"
14+
style="width: 25px; height: 25px; vertical-align: middle; margin-right: 8px;"
15+
/>
16+
Seldon Core 2 Documentation Update
17+
</strong><br />
18+
For version 2.8 and later visit:
19+
<a href="https://docs.seldon.ai/seldon-core-2" target="_blank">
20+
https://docs.seldon.ai/seldon-core-2
21+
</a>. Continue viewing legacy docs here.
22+
</div>
23+
</div>
24+
25+
{%- block hero %} {% include "hero.html" %} {% endblock %}
26+
{% include "relbar.html" %}
27+
828
<main class="md-main">
929
{% if pagename == 'index' %} {% include 'custom/index.html' %} {% else %}
1030
<div class="md-main__inner md-grid" data-md-component="container">
@@ -39,15 +59,25 @@
3959
{%- endblock %}
4060

4161
{%- block extrahead %}
42-
{# Adding CSS and JS bundle for swagger#}
43-
<link
44-
rel="stylesheet"
45-
type="text/css"
46-
href="https://unpkg.com/[email protected]/swagger-ui.css"
47-
/>
48-
<script
49-
src="https://unpkg.com/[email protected]/swagger-ui-bundle.js"
50-
charset="UTF-8"
51-
></script>
52-
{{ super() }}
53-
{%- endblock %}
62+
<style>
63+
.custom-banner {
64+
background-color: #fff9c4;
65+
color: #000;
66+
text-align: left;
67+
font-weight: normal;
68+
font-size: 1.1em;
69+
line-height: 1.4em;
70+
margin: 0;
71+
border: none;
72+
padding: 0 16px;
73+
}
74+
75+
.custom-banner a {
76+
font-size: 1.1em;
77+
font-weight: bold;
78+
color: #5159ff;
79+
text-decoration: underline;
80+
}
81+
</style>
82+
{%- endblock %}
83+

0 commit comments

Comments
 (0)