File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 23
23
from mako .template import Template
24
24
25
25
26
+ default_header = '<header class="page-header"> \
27
+ <link rel="stylesheet" href="default.css"> \
28
+ <h1>CTA Benchmarks</h1> \
29
+ Pages produced by the continuous integration and notebooks in \
30
+ <a href="https://github.com/cta-observatory/cta-benchmarks"> cta-benchmarks</a> <br> <br> \
31
+ <main> \
32
+ List of benchmarks: \
33
+ </main> \
34
+ </header>'
35
+
36
+
26
37
def main ():
27
38
parser = argparse .ArgumentParser ()
28
39
parser .add_argument ("directory" )
29
40
parser .add_argument ("--header" )
30
41
args = parser .parse_args ()
31
42
fnames = [fname for fname in sorted (os .listdir (args .directory ))
32
43
if fname not in EXCLUDED and fname .endswith ('.html' )]
33
- header = (args .header if args .header else os . path . basename ( args . directory ) )
44
+ header = (args .header if args .header else default_header )
34
45
template = Template (INDEX_TEMPLATE ).render (names = fnames , header = header )
35
46
os .makedirs ('docs' , exist_ok = True )
36
47
with open ('docs/index.html' , 'w' ) as file :
You can’t perform that action at this time.
0 commit comments