Skip to content

Commit

Permalink
sel4bench-web: adjust for website update
Browse files Browse the repository at this point in the history
Website has been updated to use Jekyll:
- generate index.html instead of home.pml
- different front matter format

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
  • Loading branch information
lsf37 authored and Indanz committed Mar 20, 2024
1 parent 5b49cb5 commit 7d35856
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions sel4bench/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,12 @@ def gen_web(runs: List[Run], yml, file_name: str):
]

with open(file_name, 'w') as f:
f.write('<!-- <title>seL4 benchmarks</title> -->\n')
f.write('<!--\n')
f.write('Copyright 2021 seL4 Project a Series of LF Projects, LLC.\n')
f.write('SPDX-License-Identifier: CC-BY-SA-4.0\n')
f.write('-->\n\n')
f.write('---')
f.write('# Copyright 2021 seL4 Project a Series of LF Projects, LLC.')
f.write('# SPDX-License-Identifier: CC-BY-SA-4.0')
f.write('title: seL4 benchmarks')
f.write('redirect_from: /About/Performance/home.pml')
f.write('---')

f.write('<h1>Performance</h1>\n')
f.write('<p>This page displays the latest benchmark numbers for seL4 from the publicly\n')
Expand Down Expand Up @@ -378,7 +379,7 @@ def gen_web(runs: List[Run], yml, file_name: str):
sys.exit(0)

if len(sys.argv) > 1 and sys.argv[1] == '--web':
gen_web(make_runs(builds), yml, "home.pml")
gen_web(make_runs(builds), yml, "index.html")
sys.exit(0)

sys.exit(run_builds(builds, hw_build))

0 comments on commit 7d35856

Please sign in to comment.