Skip to content

Commit

Permalink
suppress generation of byte code to avoid new directories owned by ro…
Browse files Browse the repository at this point in the history
…ot in source
  • Loading branch information
Paul P.H. Wilson committed Sep 7, 2015
1 parent 77f0722 commit 7b29a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ gh-clean gh-revert clean:
-rm -rf $(BUILDDIR)

gh-preview html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
PYTHONDONTWRITEBYTECODE="TRUE" $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
sed -i.bak 's/function top_offset([$$]node){ return [$$]node\[0\].getBoundingClientRect().top; }/function top_offset($$node){ return (typeof $$node[0] === "undefined") ? 0 : $$node[0].getBoundingClientRect().top; }/' ./gh-build/_static/cloud.js
sed -i.bak 's/ if (state == "collapsed"){/ if (typeof state === "undefined") {\n var state = "uncollapsed";\n };\n if (state == "collapsed"){/' ./gh-build/_static/cloud.js
rm ./gh-build/_static/*.bak
Expand Down

0 comments on commit 7b29a8a

Please sign in to comment.