From d6ca45dc6628c53f17c82498f3f215bb33506a3f Mon Sep 17 00:00:00 2001 From: Kurt Griffiths Date: Tue, 18 Oct 2016 17:24:56 -0600 Subject: [PATCH] doc: Show banner for prereleases --- docs/_static/custom.css | 7 +++++++ docs/_templates/sidebar-top.html | 8 ++++++++ docs/conf.py | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/docs/_static/custom.css b/docs/_static/custom.css index a7a951c..682d71a 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -30,6 +30,13 @@ /*margin: -4px -4px 0 0;*/ } +#dev-warning { + background: #ffe; + border: 1px solid #aaa; + padding: 10px; + margin-bottom: 1em; +} + div.body h1, div.body h2, div.body h3, diff --git a/docs/_templates/sidebar-top.html b/docs/_templates/sidebar-top.html index db5c1e1..1ecfa51 100644 --- a/docs/_templates/sidebar-top.html +++ b/docs/_templates/sidebar-top.html @@ -1,6 +1,14 @@ +{% if prerelease %} + +{% endif %} +