[Rivet-svn] rivet: Add highlighted source to HTML analysis metadata listings.

Rivet Mercurial rivet at projects.hepforge.org
Mon Jan 8 11:00:02 GMT 2018


details:   https://rivet.hepforge.org/hg/rivet/rev/54a641e8e3e4
branches:  release-2-6-x
changeset: 6212:54a641e8e3e4
user:      Andy Buckley <andy at insectnation.org>
date:      Mon Jan 08 10:49:15 2018 +0000
description:
Add highlighted source to HTML analysis metadata listings.

diffs (truncated from 102 to 50 lines):

--- a/ChangeLog	Thu Jan 04 15:19:08 2018 +0000
+++ b/ChangeLog	Mon Jan 08 10:49:15 2018 +0000
@@ -1,3 +1,7 @@
+2018-01-08  Andy Buckley  <andy.buckley at cern.ch>
+
+	* Add highlighted source to HTML analysis metadata listings.
+
 2017-12-21  Andy Buckley  <andy.buckley at cern.ch>
 
 	* Version 2.6.0 release.
--- a/doc/mk-analysis-html	Thu Jan 04 15:19:08 2018 +0000
+++ b/doc/mk-analysis-html	Mon Jan 08 10:49:15 2018 +0000
@@ -75,6 +75,11 @@
     print "Error: failed to make new directory '%s'" % OUTDIR
     sys.exit(1)
 
+## Find analysis source files
+ccpatt = os.path.join(os.getcwd(), "..", "analyses", "plugin*", "*.cc")
+ccfiles = glob(ccpatt)
+#print ccfiles
+
 summaries = {}
 pages = []
 ## Use list(...) ctor for 2.3 compatibility
@@ -82,6 +87,7 @@
     page = ""
     ana = rivet.AnalysisLoader.getAnalysis(aname)
 
+    ## Summary and biblio links
     summaries[aname] = ana.summary()
     page += "<h3 id='%s'>%s</h3>\n" % (aname, aname)
     page += "<b>%s</b><br/>\n" %  htmlify(ana.summary())
@@ -96,6 +102,7 @@
             (spiresbase, ana.spiresId(), ana.spiresId())
     page += "<b>Status:</b> %s<br/>\n" % ana.status()
 
+    ## Authors
     if ana.authors():
         page += "<b>Authors:</b>\n"
         page += "<ul>\n"
@@ -112,7 +119,7 @@
     else:
         page += "<b>No authors listed</b>\n"
 
-
+    ## References
     if ana.references():
         page += "<b>References:</b>\n"
         page += "<ul>\n"
@@ -131,7 +138,7 @@


More information about the Rivet-svn mailing list