webgen 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +224 -0
- data/Rakefile +2 -3
- data/TODO +18 -1
- data/VERSION +1 -1
- data/doc/plugin/clidesc.rb +35 -0
- data/doc/plugin/extension.rb +73 -0
- data/doc/src/about.page +2 -1
- data/doc/src/default.css +5 -1
- data/doc/src/default.template +9 -0
- data/doc/src/documentation/cli.page +12 -0
- data/doc/src/documentation/gettingstarted.page +150 -0
- data/doc/src/documentation/index.page +1 -19
- data/doc/src/documentation/{contenthandler → plugins/contenthandler}/html.page +0 -0
- data/doc/src/documentation/{contenthandler → plugins/contenthandler}/index.page +0 -0
- data/doc/src/documentation/{contenthandler → plugins/contenthandler}/markdown.page +0 -0
- data/doc/src/documentation/{contenthandler → plugins/contenthandler}/rdoc.page +0 -0
- data/doc/src/documentation/{contenthandler → plugins/contenthandler}/textile.page +0 -0
- data/doc/src/documentation/plugins/filehandler/backing.page +33 -0
- data/doc/src/documentation/{filehandler → plugins/filehandler}/copy.page +0 -0
- data/doc/src/documentation/{filehandler → plugins/filehandler}/directory.page +1 -2
- data/doc/src/documentation/{filehandler → plugins/filehandler}/galleryhandler.page +1 -1
- data/doc/src/documentation/{filehandler → plugins/filehandler}/index.page +0 -0
- data/doc/src/documentation/{filehandler → plugins/filehandler}/pagehandler.page +0 -0
- data/doc/src/documentation/{filehandler → plugins/filehandler}/template.page +0 -0
- data/doc/src/documentation/{gallerylayouter → plugins/gallerylayouter}/defaultlayouter.page +0 -0
- data/doc/src/documentation/{gallerylayouter → plugins/gallerylayouter}/index.page +0 -0
- data/doc/src/documentation/{htmlvalidator → plugins/htmlvalidator}/index.page +0 -0
- data/doc/src/documentation/{htmlvalidator → plugins/htmlvalidator}/xmllint.page +0 -0
- data/doc/src/documentation/plugins/index.page +20 -0
- data/doc/src/documentation/plugins/system/configuration.page +12 -0
- data/doc/src/documentation/plugins/system/index.page +7 -0
- data/doc/src/documentation/plugins/system/logging.page +13 -0
- data/doc/src/documentation/{tags → plugins/tags}/date.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/executecommand.page +0 -1
- data/doc/src/documentation/{tags → plugins/tags}/includefile.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/index.page +2 -2
- data/doc/src/documentation/{tags → plugins/tags}/langbar.de.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/langbar.page +1 -1
- data/doc/src/documentation/{tags → plugins/tags}/menu.de.page +1 -0
- data/doc/src/documentation/{tags → plugins/tags}/menu.page +1 -1
- data/doc/src/documentation/{tags → plugins/tags}/meta.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/multilang.de.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/multilang.fr.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/multilang.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/navbar.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/relocatable.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/sitemap.page +0 -0
- data/doc/src/documentation/{tags → plugins/tags}/wikilink.page +0 -0
- data/doc/src/download.page +1 -0
- data/doc/src/index.page +26 -8
- data/doc/src/meta.info +13 -18
- data/install.rb +1 -1
- data/lib/webgen/configuration.rb +6 -153
- data/lib/webgen/logging.rb +38 -10
- data/lib/webgen/node.rb +26 -6
- data/lib/webgen/plugin.rb +168 -0
- data/lib/webgen/plugins/filehandler/backing.rb +11 -56
- data/lib/webgen/plugins/filehandler/directory.rb +8 -8
- data/lib/webgen/plugins/filehandler/filecopy.rb +2 -2
- data/lib/webgen/plugins/filehandler/filehandler.rb +5 -9
- data/lib/webgen/plugins/filehandler/page.rb +40 -79
- data/lib/webgen/plugins/filehandler/picturegallery.rb +3 -3
- data/lib/webgen/plugins/filehandler/template.rb +2 -2
- data/lib/webgen/plugins/tags/langbar.rb +2 -2
- data/lib/webgen/plugins/tags/menu.rb +5 -13
- data/lib/webgen/plugins/tags/relocatable.rb +2 -2
- data/lib/webgen/plugins/tags/sitemap.rb +2 -2
- data/lib/webgen/plugins/tags/wikilink.rb +4 -3
- data/lib/webgen/webgen.rb +262 -57
- data/testsite/src/default.template +1 -1
- data/testsite/src/images/bghack.png +0 -0
- data/testsite/src/meta.info +7 -10
- metadata +65 -44
- data/doc/extension.config +0 -60
- data/doc/src/documentation/extloader.page +0 -20
- data/doc/src/documentation/filehandler/backing.page +0 -16
- data/lib/webgen/plugins/extloader.rb +0 -88
data/ChangeLog
CHANGED
|
@@ -1,3 +1,227 @@
|
|
|
1
|
+
------------------------------------------------------------------------
|
|
2
|
+
r264 | thomas | 2005-04-21 12:46:59 +0200 (Thu, 21 Apr 2005) | 1 line
|
|
3
|
+
Changed paths:
|
|
4
|
+
M /trunk/webgen/doc/src/index.page
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
------------------------------------------------------------------------
|
|
8
|
+
r263 | thomas | 2005-04-21 12:45:25 +0200 (Thu, 21 Apr 2005) | 1 line
|
|
9
|
+
Changed paths:
|
|
10
|
+
M /trunk/webgen/Rakefile
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
------------------------------------------------------------------------
|
|
14
|
+
r262 | thomas | 2005-04-21 12:44:55 +0200 (Thu, 21 Apr 2005) | 1 line
|
|
15
|
+
Changed paths:
|
|
16
|
+
M /trunk/webgen/doc/src/documentation/gettingstarted.page
|
|
17
|
+
|
|
18
|
+
* changed URL to correct path
|
|
19
|
+
------------------------------------------------------------------------
|
|
20
|
+
r261 | thomas | 2005-04-21 12:39:25 +0200 (Thu, 21 Apr 2005) | 3 lines
|
|
21
|
+
Changed paths:
|
|
22
|
+
M /trunk/webgen/TODO
|
|
23
|
+
A /trunk/webgen/doc/plugin/clidesc.rb
|
|
24
|
+
M /trunk/webgen/doc/plugin/extension.rb
|
|
25
|
+
M /trunk/webgen/doc/src/about.page
|
|
26
|
+
M /trunk/webgen/doc/src/default.css
|
|
27
|
+
M /trunk/webgen/doc/src/design.gallery
|
|
28
|
+
A /trunk/webgen/doc/src/documentation/cli.page
|
|
29
|
+
A /trunk/webgen/doc/src/documentation/gettingstarted.page
|
|
30
|
+
M /trunk/webgen/doc/src/documentation/index.page
|
|
31
|
+
M /trunk/webgen/doc/src/documentation/plugins/filehandler/directory.page
|
|
32
|
+
A /trunk/webgen/doc/src/documentation/plugins/index.page
|
|
33
|
+
A /trunk/webgen/doc/src/documentation/plugins/system
|
|
34
|
+
A /trunk/webgen/doc/src/documentation/plugins/system/configuration.page
|
|
35
|
+
A /trunk/webgen/doc/src/documentation/plugins/system/index.page
|
|
36
|
+
A /trunk/webgen/doc/src/documentation/plugins/system/logging.page
|
|
37
|
+
M /trunk/webgen/doc/src/index.page
|
|
38
|
+
M /trunk/webgen/doc/src/meta.info
|
|
39
|
+
|
|
40
|
+
* added documentation for system plugins Configuration and Logging
|
|
41
|
+
* added documentation for CLI
|
|
42
|
+
* added a Getting Started section
|
|
43
|
+
------------------------------------------------------------------------
|
|
44
|
+
r260 | thomas | 2005-04-21 12:38:17 +0200 (Thu, 21 Apr 2005) | 1 line
|
|
45
|
+
Changed paths:
|
|
46
|
+
M /trunk/webgen/Rakefile
|
|
47
|
+
|
|
48
|
+
* removed check for validness of output documents as this is now done by a webgen plugin
|
|
49
|
+
------------------------------------------------------------------------
|
|
50
|
+
r259 | thomas | 2005-04-21 12:37:47 +0200 (Thu, 21 Apr 2005) | 2 lines
|
|
51
|
+
Changed paths:
|
|
52
|
+
M /trunk/webgen/lib/webgen/configuration.rb
|
|
53
|
+
M /trunk/webgen/lib/webgen/logging.rb
|
|
54
|
+
M /trunk/webgen/lib/webgen/plugin.rb
|
|
55
|
+
M /trunk/webgen/lib/webgen/webgen.rb
|
|
56
|
+
|
|
57
|
+
* added generation of default.template, default.css and index.page to CLI command create
|
|
58
|
+
* moved parameter verbosityLevel from Configuration to Logging
|
|
59
|
+
------------------------------------------------------------------------
|
|
60
|
+
r258 | thomas | 2005-04-21 12:35:28 +0200 (Thu, 21 Apr 2005) | 1 line
|
|
61
|
+
Changed paths:
|
|
62
|
+
M /trunk/webgen/lib/webgen/node.rb
|
|
63
|
+
M /trunk/webgen/test/webgen/tc_node.rb
|
|
64
|
+
|
|
65
|
+
* Node#get_node_for_string now supports dest entries with slashes
|
|
66
|
+
------------------------------------------------------------------------
|
|
67
|
+
r257 | thomas | 2005-04-14 10:57:04 +0200 (Thu, 14 Apr 2005) | 1 line
|
|
68
|
+
Changed paths:
|
|
69
|
+
D /trunk/webgen/doc/src/documentation/contenthandler
|
|
70
|
+
D /trunk/webgen/doc/src/documentation/filehandler
|
|
71
|
+
D /trunk/webgen/doc/src/documentation/gallerylayouter
|
|
72
|
+
D /trunk/webgen/doc/src/documentation/htmlvalidator
|
|
73
|
+
M /trunk/webgen/doc/src/documentation/index.page
|
|
74
|
+
A /trunk/webgen/doc/src/documentation/plugins
|
|
75
|
+
A /trunk/webgen/doc/src/documentation/plugins/contenthandler (from /trunk/webgen/doc/src/documentation/contenthandler:217)
|
|
76
|
+
A /trunk/webgen/doc/src/documentation/plugins/contenthandler/index.page (from /trunk/webgen/doc/src/documentation/contenthandler/index.page:256)
|
|
77
|
+
R /trunk/webgen/doc/src/documentation/plugins/contenthandler/markdown.page (from /trunk/webgen/doc/src/documentation/contenthandler/markdown.page:256)
|
|
78
|
+
A /trunk/webgen/doc/src/documentation/plugins/filehandler (from /trunk/webgen/doc/src/documentation/filehandler:212)
|
|
79
|
+
R /trunk/webgen/doc/src/documentation/plugins/filehandler/backing.page (from /trunk/webgen/doc/src/documentation/filehandler/backing.page:256)
|
|
80
|
+
A /trunk/webgen/doc/src/documentation/plugins/filehandler/galleryhandler.page (from /trunk/webgen/doc/src/documentation/filehandler/galleryhandler.page:256)
|
|
81
|
+
A /trunk/webgen/doc/src/documentation/plugins/filehandler/pagehandler.page (from /trunk/webgen/doc/src/documentation/filehandler/pagehandler.page:256)
|
|
82
|
+
A /trunk/webgen/doc/src/documentation/plugins/gallerylayouter (from /trunk/webgen/doc/src/documentation/gallerylayouter:217)
|
|
83
|
+
A /trunk/webgen/doc/src/documentation/plugins/gallerylayouter/index.page (from /trunk/webgen/doc/src/documentation/gallerylayouter/index.page:256)
|
|
84
|
+
A /trunk/webgen/doc/src/documentation/plugins/htmlvalidator (from /trunk/webgen/doc/src/documentation/htmlvalidator:217)
|
|
85
|
+
A /trunk/webgen/doc/src/documentation/plugins/htmlvalidator/index.page (from /trunk/webgen/doc/src/documentation/htmlvalidator/index.page:256)
|
|
86
|
+
A /trunk/webgen/doc/src/documentation/plugins/htmlvalidator/xmllint.page (from /trunk/webgen/doc/src/documentation/htmlvalidator/xmllint.page:256)
|
|
87
|
+
A /trunk/webgen/doc/src/documentation/plugins/tags (from /trunk/webgen/doc/src/documentation/tags:212)
|
|
88
|
+
R /trunk/webgen/doc/src/documentation/plugins/tags/executecommand.page (from /trunk/webgen/doc/src/documentation/tags/executecommand.page:256)
|
|
89
|
+
R /trunk/webgen/doc/src/documentation/plugins/tags/index.page (from /trunk/webgen/doc/src/documentation/tags/index.page:256)
|
|
90
|
+
A /trunk/webgen/doc/src/documentation/plugins/tags/langbar.de.page (from /trunk/webgen/doc/src/documentation/tags/langbar.de.page:256)
|
|
91
|
+
A /trunk/webgen/doc/src/documentation/plugins/tags/langbar.page (from /trunk/webgen/doc/src/documentation/tags/langbar.page:256)
|
|
92
|
+
M /trunk/webgen/doc/src/documentation/plugins/tags/menu.de.page
|
|
93
|
+
R /trunk/webgen/doc/src/documentation/plugins/tags/menu.page (from /trunk/webgen/doc/src/documentation/tags/menu.page:256)
|
|
94
|
+
D /trunk/webgen/doc/src/documentation/tags
|
|
95
|
+
|
|
96
|
+
* moved plugin docu into plugin subfolder
|
|
97
|
+
------------------------------------------------------------------------
|
|
98
|
+
r256 | thomas | 2005-04-14 03:13:57 +0200 (Thu, 14 Apr 2005) | 4 lines
|
|
99
|
+
Changed paths:
|
|
100
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/backing.rb
|
|
101
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/directory.rb
|
|
102
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/filehandler.rb
|
|
103
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/page.rb
|
|
104
|
+
M /trunk/webgen/lib/webgen/plugins/tags/langbar.rb
|
|
105
|
+
M /trunk/webgen/lib/webgen/plugins/tags/menu.rb
|
|
106
|
+
M /trunk/webgen/lib/webgen/plugins/tags/relocatable.rb
|
|
107
|
+
M /trunk/webgen/lib/webgen/plugins/tags/sitemap.rb
|
|
108
|
+
|
|
109
|
+
* removed virtual PageNodes, now page files are internally directly stored in the directory
|
|
110
|
+
* renamed some methods in PageHandler plugin, esp. #get_lang_node to #get_page_node_for_lang
|
|
111
|
+
* updated plugins to work with new code
|
|
112
|
+
* changed format of meta info backing files
|
|
113
|
+
------------------------------------------------------------------------
|
|
114
|
+
r255 | thomas | 2005-04-14 03:07:13 +0200 (Thu, 14 Apr 2005) | 1 line
|
|
115
|
+
Changed paths:
|
|
116
|
+
M /trunk/webgen/lib/webgen/node.rb
|
|
117
|
+
M /trunk/webgen/lib/webgen/webgen.rb
|
|
118
|
+
|
|
119
|
+
* fixed some minor issues
|
|
120
|
+
------------------------------------------------------------------------
|
|
121
|
+
r254 | thomas | 2005-04-14 03:05:44 +0200 (Thu, 14 Apr 2005) | 1 line
|
|
122
|
+
Changed paths:
|
|
123
|
+
M /trunk/webgen/test/webgen/filehandlers/tc_page.rb
|
|
124
|
+
|
|
125
|
+
* fixed test files
|
|
126
|
+
------------------------------------------------------------------------
|
|
127
|
+
r253 | thomas | 2005-04-14 03:04:53 +0200 (Thu, 14 Apr 2005) | 1 line
|
|
128
|
+
Changed paths:
|
|
129
|
+
M /trunk/webgen/testsite/src/default.template
|
|
130
|
+
A /trunk/webgen/testsite/src/images
|
|
131
|
+
A /trunk/webgen/testsite/src/images/bghack.png (from /trunk/webgen/testsite/src/bghack.png:212)
|
|
132
|
+
M /trunk/webgen/testsite/src/meta.info
|
|
133
|
+
|
|
134
|
+
* fixed some small issues with testsite files
|
|
135
|
+
------------------------------------------------------------------------
|
|
136
|
+
r252 | thomas | 2005-04-13 22:21:12 +0200 (Wed, 13 Apr 2005) | 1 line
|
|
137
|
+
Changed paths:
|
|
138
|
+
M /trunk/webgen/lib/webgen/plugins/tags/wikilink.rb
|
|
139
|
+
|
|
140
|
+
* added parameters to replace invalid chars in wikilink tag
|
|
141
|
+
------------------------------------------------------------------------
|
|
142
|
+
r251 | thomas | 2005-04-13 22:09:21 +0200 (Wed, 13 Apr 2005) | 1 line
|
|
143
|
+
Changed paths:
|
|
144
|
+
D /trunk/webgen/doc/extension.config
|
|
145
|
+
A /trunk/webgen/doc/plugin
|
|
146
|
+
A /trunk/webgen/doc/plugin/extension.rb (from /trunk/webgen/doc/extension.config:221)
|
|
147
|
+
D /trunk/webgen/doc/src/documentation/extloader.page
|
|
148
|
+
D /trunk/webgen/lib/webgen/plugins/extloader.rb
|
|
149
|
+
|
|
150
|
+
* removed extension loader plugin and docu
|
|
151
|
+
------------------------------------------------------------------------
|
|
152
|
+
r250 | thomas | 2005-04-13 21:49:20 +0200 (Wed, 13 Apr 2005) | 2 lines
|
|
153
|
+
Changed paths:
|
|
154
|
+
M /trunk/webgen/lib/webgen/configuration.rb
|
|
155
|
+
M /trunk/webgen/lib/webgen/logging.rb
|
|
156
|
+
M /trunk/webgen/lib/webgen/node.rb
|
|
157
|
+
A /trunk/webgen/lib/webgen/plugin.rb
|
|
158
|
+
M /trunk/webgen/lib/webgen/plugins/extloader.rb
|
|
159
|
+
|
|
160
|
+
* moved plugin code to file plugin.rb
|
|
161
|
+
* new plugin Logging with which logging parameters can be set
|
|
162
|
+
------------------------------------------------------------------------
|
|
163
|
+
r249 | thomas | 2005-04-13 21:23:51 +0200 (Wed, 13 Apr 2005) | 2 lines
|
|
164
|
+
Changed paths:
|
|
165
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/backing.rb
|
|
166
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/directory.rb
|
|
167
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/filecopy.rb
|
|
168
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/filehandler.rb
|
|
169
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/page.rb
|
|
170
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/picturegallery.rb
|
|
171
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/template.rb
|
|
172
|
+
|
|
173
|
+
* renamed DefaultHandler to DefaultFileHandler
|
|
174
|
+
* moved Plugin.extension to DefaultFileHandler
|
|
175
|
+
------------------------------------------------------------------------
|
|
176
|
+
r248 | thomas | 2005-04-13 21:17:09 +0200 (Wed, 13 Apr 2005) | 1 line
|
|
177
|
+
Changed paths:
|
|
178
|
+
M /trunk/webgen/lib/webgen/webgen.rb
|
|
179
|
+
|
|
180
|
+
* correct initialization sequence in main method
|
|
181
|
+
------------------------------------------------------------------------
|
|
182
|
+
r247 | thomas | 2005-04-13 20:55:33 +0200 (Wed, 13 Apr 2005) | 1 line
|
|
183
|
+
Changed paths:
|
|
184
|
+
M /trunk/webgen/test/setup.rb
|
|
185
|
+
M /trunk/webgen/test/webgen/filehandlers/tc_page.rb
|
|
186
|
+
M /trunk/webgen/test/webgen/tc_webgen.rb
|
|
187
|
+
|
|
188
|
+
* changed test files to accomodate new plugin/logging/configuration structure
|
|
189
|
+
------------------------------------------------------------------------
|
|
190
|
+
r245 | thomas | 2005-04-13 14:51:33 +0200 (Wed, 13 Apr 2005) | 4 lines
|
|
191
|
+
Changed paths:
|
|
192
|
+
M /trunk/webgen/Rakefile
|
|
193
|
+
M /trunk/webgen/TODO
|
|
194
|
+
M /trunk/webgen/doc/src/default.template
|
|
195
|
+
M /trunk/webgen/doc/src/design.gallery
|
|
196
|
+
M /trunk/webgen/doc/src/download.page
|
|
197
|
+
M /trunk/webgen/doc/src/index.page
|
|
198
|
+
M /trunk/webgen/lib/webgen/configuration.rb
|
|
199
|
+
M /trunk/webgen/lib/webgen/webgen.rb
|
|
200
|
+
|
|
201
|
+
* added command driven CLI
|
|
202
|
+
* fixed rubyforge bug #1734
|
|
203
|
+
* plugin parameters now can have change handlers which are invoked when the parameter is changed
|
|
204
|
+
* removed parameter configfile from Configuration, the configuration is alwayws loaded from config.yaml now
|
|
205
|
+
------------------------------------------------------------------------
|
|
206
|
+
r244 | thomas | 2005-04-13 14:39:17 +0200 (Wed, 13 Apr 2005) | 2 lines
|
|
207
|
+
Changed paths:
|
|
208
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/backing.rb
|
|
209
|
+
M /trunk/webgen/lib/webgen/plugins/filehandler/page.rb
|
|
210
|
+
|
|
211
|
+
* removed unused lines in page.rb
|
|
212
|
+
* updated backing.rb
|
|
213
|
+
------------------------------------------------------------------------
|
|
214
|
+
r234 | thomas | 2005-04-06 12:10:32 +0200 (Wed, 06 Apr 2005) | 1 line
|
|
215
|
+
Changed paths:
|
|
216
|
+
M /trunk/webgen/doc/src/documentation/tags/executecommand.page
|
|
217
|
+
|
|
218
|
+
* fixed BUG #1739
|
|
219
|
+
------------------------------------------------------------------------
|
|
220
|
+
r232 | thomas | 2005-03-17 12:12:26 +0100 (Thu, 17 Mar 2005) | 1 line
|
|
221
|
+
Changed paths:
|
|
222
|
+
M /trunk/webgen/TODO
|
|
223
|
+
|
|
224
|
+
|
|
1
225
|
------------------------------------------------------------------------
|
|
2
226
|
r231 | thomas | 2005-03-17 10:31:00 +0100 (Thu, 17 Mar 2005) | 1 line
|
|
3
227
|
Changed paths:
|
data/Rakefile
CHANGED
|
@@ -73,9 +73,7 @@ desc "Builds the documentation"
|
|
|
73
73
|
task :doc => [:rdoc] do
|
|
74
74
|
chdir 'doc' do
|
|
75
75
|
puts "\nGenerating online documentation..."
|
|
76
|
-
ruby %{-I../lib ../bin/webgen -V
|
|
77
|
-
puts "\nValidating all generated documentation..."
|
|
78
|
-
sh 'find output/ -name "*.html" -exec xmllint --valid {} --catalogs --noout \;'
|
|
76
|
+
ruby %{-I../lib ../bin/webgen -V 2 }
|
|
79
77
|
end
|
|
80
78
|
end
|
|
81
79
|
|
|
@@ -183,6 +181,7 @@ else
|
|
|
183
181
|
#### Dependencies, requirements and files
|
|
184
182
|
|
|
185
183
|
s.files = PKG_FILES.to_a
|
|
184
|
+
s.add_dependency( 'cmdparse', '>= 1.0.1' )
|
|
186
185
|
|
|
187
186
|
s.require_path = 'lib'
|
|
188
187
|
s.autorequire = nil
|
data/TODO
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
---- CURRENT ----
|
|
2
2
|
|
|
3
|
+
* implement plugin which creates nodes for fragment identifiers (#info) in html
|
|
4
|
+
* modify tags system sothat tags can be specified via a tag directive (like extension with file handlers)
|
|
3
5
|
* create tests for methods in webgen.rb
|
|
4
6
|
* webgen -c => output same info as on docu pages
|
|
5
7
|
* reloctable tag: correct output for complex URLS???
|
|
6
8
|
* check if duplicate nodes are created??? by using a tag in a template
|
|
7
9
|
* allow a template to use another template (templates as page description files?) (template2 uses template1)
|
|
8
|
-
* create webgen 0.2.0 to 0.3.0 converter
|
|
9
10
|
* security concerns (setting different $SAFE level???)
|
|
10
11
|
* use code generator to create test file with all tags and all tag parameter configurations
|
|
11
12
|
|
|
12
13
|
---- DOCU ----
|
|
13
14
|
|
|
14
15
|
* DEV: self.logger.warn/error/info/debug can be used for messages
|
|
16
|
+
* document the various meta info entries that the plugins use (inMenu, menuOrdering, ...)
|
|
17
|
+
--> define: Plugin.used_meta_info( name, desc )
|
|
15
18
|
|
|
16
19
|
---- FUTURE ----
|
|
17
20
|
|
|
@@ -150,3 +153,17 @@ W do not allow two or more page files in the same language, print warn
|
|
|
150
153
|
* tag 'mrplot' -> generate a plot with mrplot --> tag not very useable
|
|
151
154
|
* ordering of picture/gallery files for menu
|
|
152
155
|
* add params to menu for style classes (webgen-submenu, webgen-menuitem-selected) -> see menu feedback on wiki
|
|
156
|
+
* add parameters for controlling log files
|
|
157
|
+
* implement feature request #1642
|
|
158
|
+
* create webgen 0.2.0 to 0.3.0 converter -> No
|
|
159
|
+
* Bug in wikilink: & not supported
|
|
160
|
+
* have a look at wiki -> done
|
|
161
|
+
* remove PageNode nodes from tree and put ***.page nodes directly in dir??? (see directory/backing/page handler)
|
|
162
|
+
* refactor backing file structure: reference files directly, not via basename/language
|
|
163
|
+
* site specific plugins in plugin directory
|
|
164
|
+
* add a getting started section
|
|
165
|
+
* describe new CLI on extra page (documentation/cli.page)
|
|
166
|
+
* log files goto log directory
|
|
167
|
+
* create file for logging plugin
|
|
168
|
+
* document the existence of the mailing list
|
|
169
|
+
* webgen create -> create basic template/css + index.page
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.3
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
require 'cgi'
|
|
2
|
+
|
|
3
|
+
module OtherPlugins
|
|
4
|
+
|
|
5
|
+
class CliDescTag < Tags::DefaultTag
|
|
6
|
+
|
|
7
|
+
summary "Describes the CLI interface"
|
|
8
|
+
depends_on 'Tags'
|
|
9
|
+
|
|
10
|
+
def initialize
|
|
11
|
+
super
|
|
12
|
+
@processOutput = false
|
|
13
|
+
register_tag( 'clidesc' )
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def process_tag( tag, node, refNode )
|
|
17
|
+
wcp = Webgen::WebgenCommandParser.new
|
|
18
|
+
output = ''
|
|
19
|
+
output << "<p><b>Global Options:</b></p>"
|
|
20
|
+
output << "<pre>#{CGI::escapeHTML(wcp.options.summarize.to_s)}</pre>"
|
|
21
|
+
output << "<p><b>Commands:</b></p>"
|
|
22
|
+
output << "<dl>"
|
|
23
|
+
wcp.commands.sort.each do |name, command|
|
|
24
|
+
output << "<dt>#{name}</dt>"
|
|
25
|
+
output << "<dd>#{CGI::escapeHTML(command.description)}<br />"
|
|
26
|
+
output << "#{CGI::escapeHTML(command.usage)}<br />"
|
|
27
|
+
output << "<pre>#{CGI::escapeHTML(command.options.summarize.to_s)}</pre>"
|
|
28
|
+
output << "</dd>"
|
|
29
|
+
end
|
|
30
|
+
output << "</dl>"
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
module OtherPlugins
|
|
2
|
+
|
|
3
|
+
class VersionTag < Tags::DefaultTag
|
|
4
|
+
|
|
5
|
+
summary "Shows the version number of webgen"
|
|
6
|
+
depends_on 'Tags'
|
|
7
|
+
|
|
8
|
+
def initialize
|
|
9
|
+
super
|
|
10
|
+
register_tag( 'version' )
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def process_tag( tag, node, refNode )
|
|
14
|
+
Webgen::VERSION.join( '.' )
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
class DescribeTag < Tags::DefaultTag
|
|
20
|
+
|
|
21
|
+
summary "Shows options for the specified file handler"
|
|
22
|
+
add_param 'plugin', nil, 'The plugin which should be described'
|
|
23
|
+
set_mandatory 'plugin', true
|
|
24
|
+
depends_on 'Tags'
|
|
25
|
+
|
|
26
|
+
def initialize
|
|
27
|
+
super
|
|
28
|
+
@processOutput = false
|
|
29
|
+
register_tag( 'describe' )
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def process_tag( tag, node, refNode )
|
|
33
|
+
filehandler = get_param( 'plugin' )
|
|
34
|
+
self.logger.debug { "Describing tag #{filehandler}" }
|
|
35
|
+
plugin = Webgen::Plugin.config.find {|k,v| v.plugin == filehandler }
|
|
36
|
+
self.logger.warn { "Could not describe plugin '#{filehandler}' as it does not exist" } if plugin.nil?
|
|
37
|
+
( plugin.nil? ? '' : format_data( plugin[1] ) )
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def format_data( data )
|
|
41
|
+
s = "<table>"
|
|
42
|
+
row = lambda {|desc, value| "<tr style='vertical-align: top'><td style='font-weight:bold'>#{CGI::escapeHTML( desc )}:</td><td>#{value}</td></tr>" }
|
|
43
|
+
|
|
44
|
+
[['Plugin Name', 'plugin'], ['Summary', 'summary'], ['Description', 'description']].each do |desc, name|
|
|
45
|
+
s += row[desc, CGI::escapeHTML( data.send( name ) )] if eval( "data.#{name}" )
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
s += row['Dependencies', CGI::escapeHTML( data.dependencies.join( ', ') )] if data.dependencies
|
|
49
|
+
|
|
50
|
+
unless data.params.nil?
|
|
51
|
+
params = data.params.collect do |k,v|
|
|
52
|
+
"<span style='color: red'>#{v.name}</span>" + \
|
|
53
|
+
( v.mandatory.nil? \
|
|
54
|
+
? " = <span style='color: blue'>#{CGI::escapeHTML( v.default.inspect )}</span>" \
|
|
55
|
+
: " (=" + ( v.mandatoryDefault ? "default " : "" ) + "mandatory parameter)" ) + \
|
|
56
|
+
": #{CGI::escapeHTML( v.description )}"
|
|
57
|
+
end
|
|
58
|
+
s += row['Parameters', params.join( "<br />\n" )]
|
|
59
|
+
end
|
|
60
|
+
s += row['Name of tag', (data.tag == :default ? "Default tag" : data.tag)] if data.tag
|
|
61
|
+
s += row['File extension', data.extension.inspect.gsub(/"/, '')] if data.extension
|
|
62
|
+
|
|
63
|
+
# Show all registered handlers
|
|
64
|
+
data.table.keys.find_all {|k| /^registered_/ =~ k.to_s }.each do |k|
|
|
65
|
+
s += row[k.to_s.sub( /^registered_/, '' ).capitalize + " name", data.send( k )]
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
s += "</table>"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
end
|
data/doc/src/about.page
CHANGED
|
@@ -11,7 +11,8 @@ that you can create page description files in which you only define the content.
|
|
|
11
11
|
|
|
12
12
|
When webgen is run it combines the template with each of the page description files and generates
|
|
13
13
|
the HTML output files. During this process special tags are substituted so that, for example, a menu
|
|
14
|
-
is generated.
|
|
14
|
+
is generated. Actually, this page was generated with webgen and, for example, the menu that you can
|
|
15
|
+
see was created dynamically. For more information look at the documentation!
|
|
15
16
|
|
|
16
17
|
h2. Author
|
|
17
18
|
|
data/doc/src/default.css
CHANGED
|
@@ -118,12 +118,16 @@
|
|
|
118
118
|
border-bottom: 1px solid #405080;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
pre {
|
|
122
122
|
padding-left: 10px;
|
|
123
123
|
margin: 0px 10px;
|
|
124
124
|
border-left: 3px solid #5C73B8;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
dt {
|
|
128
|
+
font-weight: bold;
|
|
129
|
+
}
|
|
130
|
+
|
|
127
131
|
.webgen-picture {
|
|
128
132
|
text-align: center;
|
|
129
133
|
}
|
data/doc/src/default.template
CHANGED
|
@@ -38,6 +38,15 @@
|
|
|
38
38
|
generated with <a href="http://webgen.rubyforge.org"><em><b>webgen</b></em></a> on <b>{date: }</b>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
|
+
<!-- Start of StatCounter Code -->
|
|
42
|
+
<script type="text/javascript">
|
|
43
|
+
var sc_project=648325;
|
|
44
|
+
var sc_partition=5;
|
|
45
|
+
var sc_security="7d00de1e";
|
|
46
|
+
var sc_invisible=1;
|
|
47
|
+
</script>
|
|
41
48
|
|
|
49
|
+
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c6.statcounter.com/counter.php?sc_project=648325&java=0&security=7d00de1e&invisible=1" alt="free geoip" /></a></div></noscript>
|
|
50
|
+
<!-- End of StatCounter Code -->
|
|
42
51
|
</body>
|
|
43
52
|
</html>
|