]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: write releases.json to _static
authorKefu Chai <kchai@redhat.com>
Fri, 20 Nov 2020 03:20:11 +0000 (11:20 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Nov 2020 04:59:22 +0000 (12:59 +0800)
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 <kchai@redhat.com>
admin/build-doc
doc/_static/js/ceph.js

index 979bba4b85e9bb6cb3035b3d17e30a2cf0532554..ac655b75e05c58605b2d880943ec124fa5b20023 100755 (executable)
@@ -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
index 6a3412f16d503cd3c4faf7296bb35f049500ec3f..64107c66ed79ee4ebbc90287a725f784ee2b5374 100644 (file)
@@ -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) {