mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-11-03 04:12:03 +01:00
Template: add version warning banner
This commit is contained in:
parent
3834b9ff92
commit
5d91caaac1
14
docs/_static/css/custom.css
vendored
14
docs/_static/css/custom.css
vendored
@ -174,4 +174,18 @@ a.cmdlink span:hover{
|
||||
.rst-content table.docutils td.coverage-fail {
|
||||
background-color: red;
|
||||
color: black;
|
||||
}
|
||||
|
||||
|
||||
p.devwarning {
|
||||
top: 10px;
|
||||
position: sticky;
|
||||
margin: 10px 10px 10px 310px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
letter-spacing: 1px;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
background: #d40 repeating-linear-gradient( 135deg, transparent, transparent 56px, rgba(255, 255, 255, 0.2) 56px, rgba(255, 255, 255, 0.2) 112px );
|
||||
background-color: #fdab10;
|
||||
}
|
||||
4
docs/_templates/layout.html
vendored
4
docs/_templates/layout.html
vendored
@ -3,3 +3,7 @@
|
||||
{% block extrahead %}
|
||||
<link href="{{ pathto("_static/css/custom.css", True) }}" rel="stylesheet" type="text/css">
|
||||
{% endblock %}
|
||||
{% block extrabody %}
|
||||
<p class="devwarning">Warning: This is the dev version. The latest stable version is
|
||||
<a href="https://docs.vyos.io/en/crux/">Crux 1.2.x</a>. Or the current release candidate version is <a href="https://docs.vyos.io/en/equuleus/">Equuleus 1.3.x</a></p>
|
||||
{% endblock %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user