summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()