From: Kefu Chai Date: Fri, 20 Nov 2020 03:20:11 +0000 (+0800) Subject: doc: write releases.json to _static X-Git-Tag: v16.1.0~439^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23626401e94435ca0491f42713c58843a1fef4ee;p=ceph.git doc: write releases.json to _static this follows the convention of sphinx, so we can also customise this path in future using "html_static_path". see also https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_static_path Signed-off-by: Kefu Chai --- diff --git a/admin/build-doc b/admin/build-doc index 979bba4b85e9..ac655b75e05c 100755 --- a/admin/build-doc +++ b/admin/build-doc @@ -142,7 +142,7 @@ done # build the releases.json. this reads in the yaml version and dumps # out the json representation of the same file. the resulting releases.json # should be served from the root of hosted site. -$vdir/bin/python << EOF > $TOPDIR/build-doc/output/html/releases.json +$vdir/bin/python << EOF > $TOPDIR/build-doc/output/html/_static/releases.json from __future__ import print_function import datetime import json diff --git a/doc/_static/js/ceph.js b/doc/_static/js/ceph.js index 6a3412f16d50..64107c66ed79 100644 --- a/doc/_static/js/ceph.js +++ b/doc/_static/js/ceph.js @@ -1,5 +1,5 @@ $(function() { - var releases_url = DOCUMENTATION_OPTIONS.URL_ROOT + 'releases.json'; + var releases_url = DOCUMENTATION_OPTIONS.URL_ROOT + '_static/releases.json'; function show_edit(branch, data) { if (branch) {