summaryrefslogtreecommitdiffstats
path: root/doc/_templates
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2020-12-01 08:00:54 +0100
committerKefu Chai <kchai@redhat.com>2020-12-01 17:25:16 +0100
commit448800d300a3f19393f185f8713609d5e7be65cf (patch)
tree20d877528fe4072f5722dd2c162746e2283b84c4 /doc/_templates
parentdoc: add docubetter link back (diff)
downloadceph-448800d300a3f19393f185f8713609d5e7be65cf.tar.xz
ceph-448800d300a3f19393f185f8713609d5e7be65cf.zip
doc: disable eol-warning based on "is_release_eol"
enable/disable #eol-warning based on "is_release_eol" context variable. this allows us to generate a more static web page. and pave the road to a releases.json-free doc build process. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'doc/_templates')
-rw-r--r--doc/_templates/page.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/_templates/page.html b/doc/_templates/page.html
index 5ba55c3e5d2..a4d4236a3c2 100644
--- a/doc/_templates/page.html
+++ b/doc/_templates/page.html
@@ -6,10 +6,12 @@
<p class="last">This document is for a development version of Ceph.</p>
</div>
-<div id="eol-warning" class="admonition warning" style="display:none;">
+{%- if is_release_eol %}
+<div id="eol-warning" class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">This document is for an unsupported version of Ceph.</p>
</div>
+{%- endif %}
{%- if not is_release_eol %}
<div id="docubetter" align="right" style="padding: 15px; font-weight: bold;">