@@ -26,6 +26,16 @@ proc ::sak::localdoc::run {} {
26
26
getpackage doctools::idx doctools/docidx.tcl
27
27
getpackage dtplite dtplite/dtplite.tcl
28
28
29
+ # Read installation information. Need the list of excluded
30
+ # modules to suppress them here in the doc generation as well.
31
+ global excluded modules apps guide
32
+ source support/installation/modules.tcl
33
+
34
+ foreach e $excluded {
35
+ puts " Excluding $e ..."
36
+ lappend baseconfig -exclude */modules/$e /*
37
+ }
38
+
29
39
set nav ../../../../home
30
40
31
41
puts " Reindex the documentation..."
@@ -38,13 +48,14 @@ proc ::sak::localdoc::run {} {
38
48
file mkdir embedded/www
39
49
40
50
puts " Generating manpages..."
41
- dtplite::do \
42
- [list \
43
- -exclude {*/doctools/tests/*} \
44
- -exclude {*/support/*} \
45
- -ext n \
46
- -o embedded/man \
47
- nroff .]
51
+ set config $baseconfig
52
+ lappend config -exclude {*/doctools/tests/*}
53
+ lappend config -exclude {*/support/*}
54
+ lappend config -ext n
55
+ lappend config -o embedded/man
56
+ lappend config nroff .
57
+
58
+ dtplite::do $config
48
59
49
60
# Note: Might be better to run them separately.
50
61
# Note @: Or we shuffle the results a bit more in the post processing stage.
@@ -61,32 +72,22 @@ proc ::sak::localdoc::run {} {
61
72
set cats [string map $map [fileutil::cat support/devel/sak/doc/toc_cats.txt]]
62
73
63
74
puts " Generating HTML... Pass 1, draft..."
64
- dtplite::do \
65
- [list \
66
- -toc $toc \
67
- -nav {Tcllib Home} $nav \
68
- -post+toc Categories $cats \
69
- -post+toc Modules $mods \
70
- -post+toc Applications $apps \
71
- -exclude {*/doctools/tests/*} \
72
- -exclude {*/support/*} \
73
- -merge \
74
- -o embedded/www \
75
- html .]
75
+ set config $baseconfig
76
+ lappend config -exclude {*/doctools/tests/*}
77
+ lappend config -exclude {*/support/*}
78
+ lappend config -toc $toc
79
+ lappend config -nav {Tcllib Home} $nav
80
+ lappend config -post+toc Categories $cats
81
+ lappend config -post+toc Modules $mods
82
+ lappend config -post+toc Applications $apps
83
+ lappend config -merge
84
+ lappend config -o embedded/www
85
+ lappend config html .
86
+
87
+ dtplite::do $config
76
88
77
89
puts " Generating HTML... Pass 2, resolving cross-references..."
78
- dtplite::do \
79
- [list \
80
- -toc $toc \
81
- -nav {Tcllib Home} $nav \
82
- -post+toc Categories $cats \
83
- -post+toc Modules $mods \
84
- -post+toc Applications $apps \
85
- -exclude {*/doctools/tests/*} \
86
- -exclude {*/support/*} \
87
- -merge \
88
- -o embedded/www \
89
- html .]
90
+ dtplite::do $config
90
91
91
92
return
92
93
}
0 commit comments