From 148bb16a7896a88b33e7fe8087e1948c4af1dde3 Mon Sep 17 00:00:00 2001 From: Nishi Date: Mon, 30 Sep 2024 05:31:48 +0000 Subject: [PATCH] add icon git-svn-id: file:///raid/svn-personal/docgen/trunk@5 44bc13e5-44cb-984e-b856-1907bf1ada44 --- docgen | 12 +++++++++++- example/docgen.conf | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docgen b/docgen index 48e1bc1..b75c26c 100755 --- a/docgen +++ b/docgen @@ -26,6 +26,7 @@ set input_directory "" set output_directory "" set title "" set icon "" +set icon_height 0 set footer "" set links "" @@ -58,7 +59,7 @@ set genre_list {} puts "Docgen version $DOCGEN_VERSION" proc start_html {fid title toc dots} { - global links + global links icon puts $fid "" puts $fid "" puts $fid " " @@ -67,6 +68,10 @@ proc start_html {fid title toc dots} { puts $fid " " puts $fid " " puts $fid " " + if { "$icon" != "" } { + puts $fid "\"logo\"" + puts $fid "
" + } puts $fid "
$title
" puts $fid " Root$links" puts $fid "
" @@ -333,6 +338,11 @@ puts $fid " padding: 5px 0;" puts $fid " padding-left: 10px;" puts $fid " text-align: left;" puts $fid "}" +if { "$icon" != "" } { + puts $fid "#space {" + puts $fid " height: [expr $icon_height - 40]px;" + puts $fid "}" +} close $fid diff --git a/example/docgen.conf b/example/docgen.conf index d6dd20b..b083dd3 100644 --- a/example/docgen.conf +++ b/example/docgen.conf @@ -6,3 +6,4 @@ set title "Example Project" set icon "icon.png" set footer "Some good footer" set links "nishi.boats" +set icon_height 96 -- 2.43.0