Skip to content

Commit ab22f52

Browse files
Rajakavitha1Rakavitha Kodhandapani
authored andcommitted
docs added a banner (#6390)
1 parent 3d9cb60 commit ab22f52

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

docs/source/_templates/page.html

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

4166
{%- block extrahead %}
67+
<<<<<<< HEAD
4268
{# Adding CSS and JS bundle for swagger#}
4369
<link
4470
rel="stylesheet"
@@ -50,4 +76,28 @@
5076
charset="UTF-8"
5177
></script>
5278
{{ super() }}
53-
{%- endblock %}
79+
{%- endblock %}
80+
=======
81+
<style>
82+
.custom-banner {
83+
background-color: #fff9c4;
84+
color: #000;
85+
text-align: left;
86+
font-weight: normal;
87+
font-size: 1.1em;
88+
line-height: 1.4em;
89+
margin: 0;
90+
border: none;
91+
padding: 0 16px;
92+
}
93+
94+
.custom-banner a {
95+
font-size: 1.1em;
96+
font-weight: bold;
97+
color: #5159ff;
98+
text-decoration: underline;
99+
}
100+
</style>
101+
{%- endblock %}
102+
103+
>>>>>>> 266da4aef (docs added a banner (#6390))

0 commit comments

Comments
 (0)