|
[Rivet-svn] rivet: add headers and footersRivet Mercurial rivet at projects.hepforge.orgThu Oct 26 16:15:01 BST 2017
details: https://rivet.hepforge.org/hg/rivet/rev/9f97ee522353 branches: changeset: 6109:9f97ee522353 user: Jon Butterworth <j.butterworth at cern.ch> date: Thu Oct 26 17:03:10 2017 +0200 description: add headers and footers diffs (truncated from 103 to 50 lines): --- a/doc/mk-analysis-html Thu Oct 26 16:51:46 2017 +0200 +++ b/doc/mk-analysis-html Thu Oct 26 17:03:10 2017 +0200 @@ -13,7 +13,6 @@ print "Using output file name '%s' and directory '%s'" % (OUTFILE, OUTDIR) - ## Add the rivet Python module build dir(s) to the Python module path, then import pybuild = os.path.abspath(os.path.join(os.getcwd(), "..", "pyext", "build")) pydirs = [os.path.join(pybuild, d) for d in os.listdir(pybuild) @@ -26,6 +25,38 @@ ##os.environ["RIVET_ANALYSIS_PATH"] = os.path.abspath("../analyses/.libs") + "::" ##os.environ["RIVET_INFO_PATH"] = os.path.abspath("../data/anainfo") + "::" +## Get some strings of html ready. +foot = """\ +</body> +</html> +""" + +head = '''\ +<html> +<head> + <title>Rivet analyses reference</title> + <style> + body { font-family:sans-serif; padding: 1em 1em 2em 2em; } + p, li { max-width:50em; } + h2 { margin-left:-1em; margin-bottom:1.5em; } + h3 { color:#349; margin-top:2em; } + </style> + <script type="text/x-mathjax-config"> + MathJax.Hub.Config({ + tex2jax: {inlineMath: [["$","$"]]} + }); + </script> + <script type="text/javascript" + src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> + </script> +</head> +<body> + <h2>Rivet analyses reference</h2> + +''' + + + ## Build analysis pages all_analyses = rivet.AnalysisLoader.analysisNames() @@ -142,51 +173,19 @@
More information about the Rivet-svn mailing list |