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 %} +
diff --git a/docs/conf.py b/docs/conf.py
index f1f98d0..ad11a5e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -77,6 +77,10 @@ cfg = configparser.SafeConfigParser()
cfg.read('../setup.cfg')
tag = cfg.get('egg_info', 'tag_build')
+html_context = {
+ 'prerelease': bool(tag), # True if tag is not the empty string
+}
+
# The short X.Y version.
version = '.'.join(falcon.__version__.split('.')[0:2]) + tag