From d6e3aa98e2a4966a14b7331f31fd0798863550e1 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 9 Feb 2021 11:53:09 +0900 Subject: scripts: add html_member/status/team/bsp.py Because current PeriJect is using scripts/myhtml.py to creating all HTML files, all files will be re-created if myhtml.py itself was updated. It is very verbose. This patch separates "member", "status", "team", "bsp" from it. Signed-off-by: Kuninori Morimoto --- scripts/html_team.py | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 scripts/html_team.py (limited to 'scripts/html_team.py') diff --git a/scripts/html_team.py b/scripts/html_team.py new file mode 100755 index 0000000..51458ab --- /dev/null +++ b/scripts/html_team.py @@ -0,0 +1,40 @@ +#! /usr/bin/env python3 +#=============================== +# +# html_team +# +# 2021/02/09 Kuninori Morimoto +#=============================== +import sys + +import html_base +from html_base import html +#==================================== +# +# periject_html +# +#==================================== +class periject_html(html_base.myhtml): + + #-------------------- + # print + #-------------------- + def print(self, argv): + # remove this script + argv.pop(0) + + team = argv.pop(0) + dir = "{}/html".format(self.top()) + + self.print_css(dir) + with html("body"): + self.summary(team, dir, argv) + +#==================================== +# +# As command +# +#==================================== +if __name__=='__main__': + # ./script/find.py -t Core | xargs ./script/html_team.py Core + periject_html().print(sys.argv) -- cgit v1.2.3