|
[Rivet-svn] rivet: Additional mkhtml option --offline to disable external li...Rivet Mercurial rivet at projects.hepforge.orgMon Nov 9 11:00:01 GMT 2015
details: https://rivet.hepforge.org/hg/rivet/rev/87847d23606c branches: release-2-4-x changeset: 4921:87847d23606c user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Wed Nov 04 19:22:30 2015 +0000 description: Additional mkhtml option --offline to disable external link to mathjax diffs (23 lines): --- a/bin/rivet-mkhtml Fri Nov 06 12:50:09 2015 +0000 +++ b/bin/rivet-mkhtml Wed Nov 04 19:22:30 2015 +0000 @@ -50,6 +50,8 @@ default=True, help="don't draw a ratio plot under each main plot.") stygroup.add_option("--mc-errs", dest="MC_ERRS", action="store_true", default=False, help="plot error bars.") +stygroup.add_option("--offline", dest="OFFLINE", action="store_true", + default=False, help="generate HTML that does not use external URLs.") stygroup.add_option("--pdf", dest="VECTORFORMAT", action="store_const", const="PDF", default="PDF", help="use PDF as the vector plot format.") stygroup.add_option("--ps", dest="VECTORFORMAT", action="store_const", const="PS", @@ -260,9 +262,9 @@ }); </script> <script type="text/javascript" - src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> + src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script> - ''' + ''' if not opts.OFFLINE else '' ## A helper function for metadata LaTeX -> HTML conversion from rivet.util import htmlify
More information about the Rivet-svn mailing list |