Skip to content

Banner update v2.8.4 #6406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 44 additions & 14 deletions docs/source/_templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@
{%- block content %}
{% set nav_bar_tabs = parents or theme_master_doc or theme_nav_links %}
<div class="md-container">
{%- block hero %} {% include "hero.html" %} {% endblock %} {% include
"relbar.html" %}

{# 🚨 Banner injected here, before hero/relbar and main content #}
<div class="custom-banner" style="padding: 1rem;">
<div>
<strong>
<img
src="https://img.icons8.com/?size=100&id=360&format=png&color=FA5252"
alt="alert"
style="width: 25px; height: 25px; vertical-align: middle; margin-right: 8px;"
/>
Seldon Core 2 Documentation Update
</strong><br />
For version 2.8 and later visit:
<a href="https://docs.seldon.ai/seldon-core-2" target="_blank">
https://docs.seldon.ai/seldon-core-2
</a>. Continue viewing legacy docs here.
</div>
</div>

{%- block hero %} {% include "hero.html" %} {% endblock %}
{% include "relbar.html" %}

<main class="md-main">
{% if pagename == 'index' %} {% include 'custom/index.html' %} {% else %}
<div class="md-main__inner md-grid" data-md-component="container">
Expand Down Expand Up @@ -39,15 +59,25 @@
{%- endblock %}

{%- block extrahead %}
{# Adding CSS and JS bundle for swagger#}
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/[email protected]/swagger-ui.css"
/>
<script
src="https://unpkg.com/[email protected]/swagger-ui-bundle.js"
charset="UTF-8"
></script>
{{ super() }}
{%- endblock %}
<style>
.custom-banner {
background-color: #fff9c4;
color: #000;
text-align: left;
font-weight: normal;
font-size: 1.1em;
line-height: 1.4em;
margin: 0;
border: none;
padding: 0 16px;
}

.custom-banner a {
font-size: 1.1em;
font-weight: bold;
color: #5159ff;
text-decoration: underline;
}
</style>
{%- endblock %}