summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-03-01 10:34:29 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-04-09 14:59:46 +0900
commitfc079b6489240673348db06cee87b7babebf3b52 (patch)
treec8e6b9abc1350b0b0a1240d4cefb3384cc1c0abc
parent8df29fe78c6e982dc370252755d291fb69928fd6 (diff)
html.py: enable to setup html default cols/rows
For selfish boys & girls Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
-rw-r--r--.config.sample2
-rwxr-xr-xscripts/html.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/.config.sample b/.config.sample
index 2127c03..1d8d61a 100644
--- a/.config.sample
+++ b/.config.sample
@@ -1,6 +1,8 @@
viewer:less -RXE
git-linux:/home/morimoto/WORK/linux
+html-default-cols:200
+html-default-rows:300
# color = escape sequence
key:33
diff --git a/scripts/html.py b/scripts/html.py
index 9360974..446c200 100755
--- a/scripts/html.py
+++ b/scripts/html.py
@@ -140,7 +140,7 @@ class periject_html(base.base):
# | | |
# |menu|body|
# | | |
- with html("frameset", {"cols":"200,*"}):
+ 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()
@@ -153,7 +153,7 @@ class periject_html(base.base):
# -------
# body
# -------
- with html("frameset", {"rows":"300,*"}):
+ with html("frameset", {"rows":"{},*".format(self.config("html-default-rows"))}):
html("frame", {"src":"./summary.html", "name":"summary"}).print()
html("frame", {"src":"./body.html", "name":"subbody"}).print()