Skip to content

Commit

Permalink
doc: write releases.json to _static
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tchaikov committed Nov 20, 2020
1 parent 06d0bbc commit 2362640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/build-doc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/_static/js/ceph.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 2362640

Please sign in to comment.