diff options
author | rebortg <github@ghlr.de> | 2021-05-10 21:32:00 +0200 |
---|---|---|
committer | rebortg <github@ghlr.de> | 2021-05-10 21:32:00 +0200 |
commit | 5d91caaac1ff0da642141edc17f75f60d63ba4a0 (patch) | |
tree | c0419c6c865fa7307cbdcef86aa9e6b1c1fff39a /docs | |
parent | 3834b9ff92bea095be496340b37a43f6884dcbad (diff) | |
download | vyos-documentation-5d91caaac1ff0da642141edc17f75f60d63ba4a0.tar.gz vyos-documentation-5d91caaac1ff0da642141edc17f75f60d63ba4a0.zip |
Template: add version warning banner
Diffstat (limited to 'docs')
-rw-r--r-- | docs/_static/css/custom.css | 14 | ||||
-rw-r--r-- | docs/_templates/layout.html | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index 6d36283d..4d14a55d 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -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; }
\ No newline at end of file diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 5f3f38c2..a5873ce8 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -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 %} |