summaryrefslogtreecommitdiff
path: root/scripts/html_index.py
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-02-09 11:33:38 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-02-09 11:43:31 +0900
commita286236b7dc147b5b403c74a19fa8ec17662a5cb (patch)
tree25ec33099b20cdc4391cb0dc531b54f6a80af46c /scripts/html_index.py
parent483f8e658800cc62e854fc8a0c2abb4c3654376f (diff)
scripts: add html_index/body/subindex.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 "index", "body", "subindex" from it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts/html_index.py')
-rwxr-xr-xscripts/html_index.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/html_index.py b/scripts/html_index.py
new file mode 100755
index 0000000..50415ca
--- /dev/null
+++ b/scripts/html_index.py
@@ -0,0 +1,34 @@
+#! /usr/bin/env python3
+#===============================
+#
+# html_index
+#
+# 2021/02/09 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
+#===============================
+import html_base
+from html_base import html
+#====================================
+#
+# periject_html
+#
+#====================================
+class periject_html(html_base.myhtml):
+
+ #--------------------
+ # print
+ #--------------------
+ def print(self):
+ # | | |
+ # |menu|body|
+ # | | |
+ with html("frameset", {"cols":"{},*".format(self.config("html-default-cols"))}):
+ html("frame", {"src":"./html/menu.html", "name":"menu"}).print()
+ html("frame", {"src":"./html/subindex.html", "name":"body"}).print()
+
+#====================================
+#
+# As command
+#
+#====================================
+if __name__=='__main__':
+ periject_html().print()