From 448800d300a3f19393f185f8713609d5e7be65cf Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 1 Dec 2020 15:00:54 +0800 Subject: [PATCH] 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 --- doc/_static/js/ceph.js | 5 +---- doc/_templates/page.html | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/_static/js/ceph.js b/doc/_static/js/ceph.js index c608ceaaea5..1d22a8b9e9e 100644 --- a/doc/_static/js/ceph.js +++ b/doc/_static/js/ceph.js @@ -15,10 +15,7 @@ $(function() { if (branch === "master") { $("#dev-warning").show(); } else if (data && data.releases && branch in data.releases) { - var eol = ("actual_eol" in data.releases[branch]); - if (eol) { - $("#eol-warning").show(); - } + return; } else { $("#dev-warning").show(); } 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 @@

This document is for a development version of Ceph.

-