File tree Expand file tree Collapse file tree 1 file changed +44
-14
lines changed Expand file tree Collapse file tree 1 file changed +44
-14
lines changed Original file line number Diff line number Diff line change 3
3
{%- block content %}
4
4
{% set nav_bar_tabs = parents or theme_master_doc or theme_nav_links %}
5
5
< 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
+
8
28
< main class ="md-main ">
9
29
{% if pagename == 'index' %} {% include 'custom/index.html' %} {% else %}
10
30
< div class ="md-main__inner md-grid " data-md-component ="container ">
39
59
{%- endblock %}
40
60
41
61
{%- 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
+
You can’t perform that action at this time.
0 commit comments