Skip to content

Commit be77750

Browse files
authored
Update index.rst (#6369)
* Update index.rst added a note about movement * Update page.html
1 parent 694f862 commit be77750

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

doc/source/_templates/page.html

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{# Import the theme's layout. #}
2-
{%- extends "layout.html" %}
2+
{%- extends "!layout.html" %}
33

4-
{% block body %}
5-
{{ table_fix(body, pagename) }}
6-
{% endblock %}
4+
{% block extrahead %}
5+
<style>
6+
.custom-banner {
7+
background-color: #ffcc00;
8+
text-align: center;
9+
padding: 10px;
10+
font-weight: bold;
11+
font-size: 1.1em;
12+
}
13+
</style>
714

8-
{%- block extrahead %}
9-
{# Adding CSS and JS bundle for swagger#}
15+
{# Adding CSS and JS bundle for swagger #}
1016
<link
1117
rel="stylesheet"
1218
type="text/css"
@@ -16,6 +22,21 @@
1622
src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js"
1723
crossorigin>
1824
</script>
25+
1926
{# Call the parent block #}
2027
{{ super() }}
2128
{%- endblock %}
29+
30+
{% block content %}
31+
<div class="custom-banner">
32+
<strong>Seldon Core V2 Documentation has moved!</strong><br />
33+
You can now find it at our new and improved location:<br />
34+
<a href="https://docs.seldon.ai/seldon-core-2" target="_blank">https://docs.seldon.ai/seldon-core-2</a><br />
35+
<small>(Previously: <a href="https://docs.seldon.io/projects/seldon-core/en/v2/index.html" target="_blank">https://docs.seldon.io/projects/seldon-core/en/v2/index.html</a>)</small>
36+
</div>
37+
{{ super() }}
38+
{% endblock %}
39+
40+
{% block body %}
41+
{{ table_fix(body, pagename) }}
42+
{% endblock %}

doc/source/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
===========
22
Seldon Core
33
===========
4+
.. Note::
5+
**Seldon Core V2 Documentation has moved!**
6+
You can now find it at our new and improved location:
7+
`https://docs.seldon.ai/seldon-core-2 <https://docs.seldon.ai/seldon-core-2>`_
8+
9+
(Previously: `https://docs.seldon.io/projects/seldon-core/en/v2/index.html`).
410
.. image:: ./_static/scv2_banner.png
511
:alt: Seldon Core V2 logo
612
:align: center

0 commit comments

Comments
 (0)