Skip to content

Commit

Permalink
Add deprecation banner in legacy docs.
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pedro-psb committed Apr 16, 2024
1 parent d7dcb1c commit 6f843ba
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.banner {
background: #ffe2c9;
height: 50px;
border-top: 5px solid #ffad67;
width: 100%;
position: fixed;
z-index: 9999;
box-shadow: 0 3px 10px -5px rgb(0 0 0 / 0.2);
}

.banner__content {
padding: 16px;
max-width: 1120px;
margin: 0;
display: flex;
align-items: center;
height: 100%;
}

.banner__text {
flex-grow: 1;
line_height: 1.4em;
text-align: center;
font-weight: bold;
font-family: Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;
color: #505050;
}


@media (min-width: 768px){
.wy-side-nav-search {
padding-top: 60px;
}
}

@media (max-width: 768px){
.wy-nav-top {
margin-top: 50px;
}
.wy-side-nav-search {
margin-top: 50px;
}
}
22 changes: 22 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{#
classic/layout.html
~~~~~~~~~~~~~~~~~~~

Sphinx layout template for the classic theme.

:copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- extends "sphinx_rtd_theme/layout.html" %}

{%- block extrabody %}
<div class="banner">
<div class="banner__content">
<div class="banner__text">
This docs will be deactivated in July 2024.
<a href="https://discourse.pulpproject.org/t/unified-documentation-part-2/1188" target="blank">Learn More</a>
or go to the <a href="https://staging-docs.pulpproject.org/" target="blank">New Pulp Docs</a> (beta).
</div>
</div>
</div>
{%- endblock %}
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = ['css/custom.css']

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down

0 comments on commit 6f843ba

Please sign in to comment.