|
[Rivet-svn] r4085 - in branches/2012-06-aidarivet: . docblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Dec 17 13:11:37 GMT 2012
Author: buckley Date: Mon Dec 17 13:11:37 2012 New Revision: 4085 Log: Adding analysis descriptions to the HTML analysis page ToC Modified: branches/2012-06-aidarivet/ChangeLog branches/2012-06-aidarivet/doc/mk-analysis-html Modified: branches/2012-06-aidarivet/ChangeLog ============================================================================== --- branches/2012-06-aidarivet/ChangeLog Fri Dec 14 13:57:50 2012 (r4084) +++ branches/2012-06-aidarivet/ChangeLog Mon Dec 17 13:11:37 2012 (r4085) @@ -1,3 +1,7 @@ +2012-12-17 Andy Buckley <andy.buckley at cern.ch> + + * Adding analysis descriptions to the HTML analysis page ToC. + 2012-12-14 Hendrik Hoeth <hendrik.hoeth at cern.ch> * Added CMS_2012_PAS_FWD_11_003 analysis Modified: branches/2012-06-aidarivet/doc/mk-analysis-html ============================================================================== --- branches/2012-06-aidarivet/doc/mk-analysis-html Fri Dec 14 13:57:50 2012 (r4084) +++ branches/2012-06-aidarivet/doc/mk-analysis-html Mon Dec 17 13:11:37 2012 (r4085) @@ -58,11 +58,13 @@ ## Build analysis pages all_analyses = rivet.AnalysisLoader.analysisNames() +summaries = {} pages = [] ## Use list(...) ctor for 2.3 compatibility for aname in sorted(list(all_analyses)): page = "" ana = rivet.AnalysisLoader.getAnalysis(aname) + summaries[aname] = ana.summary() page += "<h3 id='%s'>%s</h3>\n" % (aname, aname) page += "<b>%s</b><br/>\n" % htmlify(ana.summary()) page += "<b>Experiment:</b> %s (%s)<br/>\n" % (ana.experiment(), ana.collider()) @@ -178,9 +180,9 @@ """ toc = "<h3>Contents</h3>\n" -toc += "<ul>\n" +toc += "<ul style=\"white-space: nowrap;\">\n" for a in all_analyses: - toc += "<li><a href='#%s'>%s</a></li>\n" % (a,a) + toc += "<li><a href='#%s'>%s</a> – %s</li>\n" % (a,a, htmlify(summaries[a])) toc += "</ul>\n" foot = """\
More information about the Rivet-svn mailing list |