webgen 0.4.1 → 0.4.2

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.
Files changed (93) hide show
  1. data/ChangeLog +300 -0
  2. data/Rakefile +149 -27
  3. data/TODO +3 -4
  4. data/VERSION +1 -1
  5. data/data/webgen/gallery_styles/slides/collage.rb +7 -4
  6. data/data/webgen/sipttra_styles/default/README +7 -0
  7. data/data/webgen/sipttra_styles/default/css/sipttra.rcss +71 -0
  8. data/data/webgen/sipttra_styles/default/js/sipttra.js +7 -0
  9. data/data/webgen/sipttra_styles/default/sipttra.template +105 -0
  10. data/data/webgen/website_styles/1024px/README +3 -0
  11. data/data/webgen/website_styles/1024px/default.css +3 -3
  12. data/data/webgen/website_styles/andreas00/README +4 -1
  13. data/data/webgen/website_styles/andreas00/default.css +2 -2
  14. data/data/webgen/website_styles/andreas01/README +3 -0
  15. data/data/webgen/website_styles/andreas01/default.css +3 -3
  16. data/data/webgen/website_styles/andreas03/README +4 -1
  17. data/data/webgen/website_styles/andreas03/default.css +2 -2
  18. data/data/webgen/website_styles/andreas04/README +3 -0
  19. data/data/webgen/website_styles/andreas04/default.css +2 -2
  20. data/data/webgen/website_styles/andreas05/README +3 -0
  21. data/data/webgen/website_styles/andreas05/default.css +2 -2
  22. data/data/webgen/website_styles/andreas06/README +3 -0
  23. data/data/webgen/website_styles/andreas06/default.css +3 -2
  24. data/data/webgen/website_styles/andreas07/README +3 -0
  25. data/data/webgen/website_styles/andreas07/default.css +4 -4
  26. data/data/webgen/website_styles/andreas08/README +4 -1
  27. data/data/webgen/website_styles/andreas08/default.css +2 -2
  28. data/data/webgen/website_styles/andreas08/default.template +1 -1
  29. data/data/webgen/website_styles/andreas09/README +3 -0
  30. data/data/webgen/website_styles/andreas09/default.css +2 -2
  31. data/data/webgen/website_styles/default/README +1 -1
  32. data/data/webgen/website_styles/default/default.css +1 -1
  33. data/data/webgen/website_styles/plain/README +7 -2
  34. data/data/webgen/website_styles/plain/default.css +2 -2
  35. data/doc/config.yaml +3 -0
  36. data/doc/metainfo.yaml +20 -3
  37. data/doc/src/css/sipttra.rcss +71 -0
  38. data/doc/src/default.template +10 -5
  39. data/doc/src/documentation/howto.page +221 -0
  40. data/doc/src/documentation/plugins/contentconverter/default.page +1 -0
  41. data/doc/src/documentation/plugins/contentconverter/xmlbuilder.page +2 -2
  42. data/doc/src/documentation/plugins/core/configuration.page +6 -0
  43. data/doc/src/documentation/plugins/core/resourcemanager.page +4 -10
  44. data/doc/src/documentation/plugins/file/defaulthandler.page +1 -0
  45. data/doc/src/documentation/plugins/file/sipttrahandler.page +18 -0
  46. data/doc/src/documentation/plugins/file/templatehandler.page +27 -10
  47. data/doc/src/documentation/plugins/file/thumbnailwriter.page +5 -2
  48. data/doc/src/documentation/plugins/htmlvalidator/default.page +1 -0
  49. data/doc/src/documentation/plugins/index.page +2 -2
  50. data/doc/src/documentation/plugins/menustyle/default.page +1 -0
  51. data/doc/src/documentation/plugins/tag/breadcrumbtrail.page +12 -0
  52. data/doc/src/documentation/plugins/tag/customvar.page +11 -0
  53. data/doc/src/documentation/plugins/tag/default.page +1 -0
  54. data/doc/src/documentation/references/index.page +8 -0
  55. data/doc/src/documentation/references/meta_info_reference.page +35 -16
  56. data/doc/src/documentation/references/resource_reference.page +18 -0
  57. data/doc/src/documentation/references/sipttra_format.page +241 -0
  58. data/doc/src/documentation/references/webpage_format.page +4 -0
  59. data/doc/src/examples/example_sites/index.page +41 -0
  60. data/doc/src/examples/example_sites/personal.zip +0 -0
  61. data/doc/src/examples/example_sites/photo_gallery.zip +0 -0
  62. data/doc/src/examples/index.page +2 -1
  63. data/doc/src/js/sipttra.js +7 -0
  64. data/doc/src/news.page +25 -0
  65. data/doc/src/project.todo +91 -0
  66. data/doc/src/sipttra.template +105 -0
  67. data/lib/webgen/cli.rb +31 -1
  68. data/lib/webgen/config.rb +2 -2
  69. data/lib/webgen/plugin.rb +7 -3
  70. data/lib/webgen/plugins/coreplugins/configuration.rb +3 -1
  71. data/lib/webgen/plugins/filehandlers/filehandler.rb +6 -5
  72. data/lib/webgen/plugins/filehandlers/sipttra.rb +73 -0
  73. data/lib/webgen/plugins/filehandlers/template.rb +2 -1
  74. data/lib/webgen/plugins/miscplugins/treewalker.rb +40 -4
  75. data/lib/webgen/plugins/tags/breadcrumbtrail.rb +14 -1
  76. data/lib/webgen/plugins/tags/customvar.rb +54 -0
  77. data/lib/webgen/sipttra_format.rb +343 -0
  78. data/lib/webgen/website.rb +25 -1
  79. data/man/man1/webgen.1 +75 -0
  80. data/setup.rb +861 -607
  81. data/test/fixtures/sample_site/src/test.todo +7 -0
  82. data/test/fixtures/tc_plugin/plugin1.rb +2 -0
  83. data/test/fixtures/tc_sipttra_format/test.sipttra +46 -0
  84. data/test/unittests/tc_filehandler_sipttra.rb +26 -0
  85. data/test/unittests/tc_filehandler_template.rb +2 -1
  86. data/test/unittests/tc_plugin.rb +8 -1
  87. data/test/unittests/tc_sipttra_format.rb +58 -0
  88. data/test/unittests/tc_tags_breadcrumbtrail.rb +34 -0
  89. data/test/unittests/tc_tags_customvar.rb +24 -0
  90. data/test/unittests/tc_tags_date.rb +1 -0
  91. data/test/unittests/tc_tags_includefile.rb +6 -13
  92. data/test/unittests/tc_treewalker.rb +8 -1
  93. metadata +37 -3
data/ChangeLog CHANGED
@@ -1,4 +1,304 @@
1
1
  ------------------------------------------------------------------------
2
+ r623 | thomas | 2007-02-28 11:02:20 +0100 (Wed, 28 Feb 2007) | 1 line
3
+ Changed paths:
4
+ M /trunk/webgen/doc/src/default.template
5
+
6
+ * small doc update
7
+ ------------------------------------------------------------------------
8
+ r622 | thomas | 2007-02-28 10:57:54 +0100 (Wed, 28 Feb 2007) | 2 lines
9
+ Changed paths:
10
+ M /trunk/webgen/Rakefile
11
+ M /trunk/webgen/test/unittests/tc_tags_includefile.rb
12
+
13
+ * updated Rakefile
14
+ * updated Tag/IncludeFile test to also work on windows
15
+ ------------------------------------------------------------------------
16
+ r621 | thomas | 2007-02-28 10:45:30 +0100 (Wed, 28 Feb 2007) | 3 lines
17
+ Changed paths:
18
+ M /trunk/webgen/doc/src/news.page
19
+ M /trunk/webgen/lib/webgen/config.rb
20
+ A /trunk/webgen/man
21
+ A /trunk/webgen/man/man1
22
+ A /trunk/webgen/man/man1/webgen.1
23
+
24
+ * added man page contributed by the Debian project
25
+ * bumped version number to 0.4.2
26
+ * updated news file
27
+ ------------------------------------------------------------------------
28
+ r620 | thomas | 2007-02-28 10:19:15 +0100 (Wed, 28 Feb 2007) | 1 line
29
+ Changed paths:
30
+ M /trunk/webgen/doc/src/project.todo
31
+ M /trunk/webgen/lib/webgen/plugins/filehandlers/filehandler.rb
32
+ M /trunk/webgen/lib/webgen/plugins/miscplugins/treewalker.rb
33
+ M /trunk/webgen/test/unittests/tc_treewalker.rb
34
+
35
+ * fixed bug#T013: TreeWalker from 0.3.8 added again
36
+ ------------------------------------------------------------------------
37
+ r619 | thomas | 2007-02-23 17:51:11 +0100 (Fri, 23 Feb 2007) | 1 line
38
+ Changed paths:
39
+ M /trunk/webgen/data/webgen/website_styles/andreas08/default.template
40
+
41
+ * fixed typo
42
+ ------------------------------------------------------------------------
43
+ r618 | thomas | 2007-02-23 11:11:25 +0100 (Fri, 23 Feb 2007) | 2 lines
44
+ Changed paths:
45
+ M /trunk/webgen/TODO
46
+ M /trunk/webgen/doc/metainfo.yaml
47
+ A /trunk/webgen/doc/src/documentation/howto.page
48
+ M /trunk/webgen/doc/src/documentation/plugins/contentconverter/xmlbuilder.page
49
+ M /trunk/webgen/doc/src/documentation/plugins/file/sipttrahandler.page
50
+ M /trunk/webgen/doc/src/documentation/plugins/file/templatehandler.page
51
+ M /trunk/webgen/doc/src/documentation/plugins/index.page
52
+ M /trunk/webgen/doc/src/documentation/references/index.page
53
+ M /trunk/webgen/doc/src/documentation/references/webpage_format.page
54
+ M /trunk/webgen/doc/src/news.page
55
+
56
+ * updated documentation and fixed some typos
57
+ * added a new howto page
58
+ ------------------------------------------------------------------------
59
+ r617 | thomas | 2007-02-22 09:05:25 +0100 (Thu, 22 Feb 2007) | 1 line
60
+ Changed paths:
61
+ M /trunk/webgen/doc/metainfo.yaml
62
+ M /trunk/webgen/doc/src/documentation/plugins/core/resourcemanager.page
63
+ A /trunk/webgen/doc/src/documentation/references/resource_reference.page
64
+ M /trunk/webgen/doc/src/project.todo
65
+
66
+ * added a dedicated resource reference page
67
+ ------------------------------------------------------------------------
68
+ r616 | thomas | 2007-02-22 08:40:04 +0100 (Thu, 22 Feb 2007) | 1 line
69
+ Changed paths:
70
+ M /trunk/webgen/TODO
71
+ M /trunk/webgen/doc/src/documentation/references/sipttra_format.page
72
+ M /trunk/webgen/doc/src/news.page
73
+ M /trunk/webgen/doc/src/project.todo
74
+
75
+ * updated documentation
76
+ ------------------------------------------------------------------------
77
+ r615 | thomas | 2007-02-22 08:39:52 +0100 (Thu, 22 Feb 2007) | 1 line
78
+ Changed paths:
79
+ M /trunk/webgen/Rakefile
80
+
81
+ * fixed HTML header for sipttra style examples
82
+ ------------------------------------------------------------------------
83
+ r614 | thomas | 2007-02-22 08:28:00 +0100 (Thu, 22 Feb 2007) | 2 lines
84
+ Changed paths:
85
+ M /trunk/webgen/Rakefile
86
+
87
+ * added generation of sipttra style examples
88
+ * gallery styles are now only created if necessary
89
+ ------------------------------------------------------------------------
90
+ r613 | thomas | 2007-02-22 08:26:55 +0100 (Thu, 22 Feb 2007) | 1 line
91
+ Changed paths:
92
+ M /trunk/webgen/data/webgen/sipttra_styles/default/sipttra.template
93
+ M /trunk/webgen/doc/src/sipttra.template
94
+
95
+ * fixed small bug: reference to milestones did not work
96
+ ------------------------------------------------------------------------
97
+ r612 | thomas | 2007-02-20 19:44:11 +0100 (Tue, 20 Feb 2007) | 1 line
98
+ Changed paths:
99
+ M /trunk/webgen/data/webgen/gallery_styles/slides/collage.rb
100
+
101
+ * needed to fix gallery style slides plugin after fixing bug #T008
102
+ ------------------------------------------------------------------------
103
+ r611 | thomas | 2007-02-19 16:30:54 +0100 (Mon, 19 Feb 2007) | 1 line
104
+ Changed paths:
105
+ M /trunk/webgen/lib/webgen/plugin.rb
106
+ M /trunk/webgen/test/fixtures/tc_plugin/plugin1.rb
107
+ M /trunk/webgen/test/unittests/tc_plugin.rb
108
+
109
+ * fixed bug #T008: any plugin loader wont load plugins already loaded by the default loader anymore
110
+ ------------------------------------------------------------------------
111
+ r610 | thomas | 2007-02-19 12:26:32 +0100 (Mon, 19 Feb 2007) | 2 lines
112
+ Changed paths:
113
+ M /trunk/webgen/lib/webgen/plugin.rb
114
+ M /trunk/webgen/setup.rb
115
+
116
+ * added newer version of setup.rb
117
+ * corrected log message
118
+ ------------------------------------------------------------------------
119
+ r609 | thomas | 2007-02-19 10:36:35 +0100 (Mon, 19 Feb 2007) | 1 line
120
+ Changed paths:
121
+ M /trunk/webgen/data/webgen/website_styles/1024px/README
122
+ M /trunk/webgen/data/webgen/website_styles/andreas00/README
123
+ M /trunk/webgen/data/webgen/website_styles/andreas01/README
124
+ M /trunk/webgen/data/webgen/website_styles/andreas03/README
125
+ M /trunk/webgen/data/webgen/website_styles/andreas04/README
126
+ M /trunk/webgen/data/webgen/website_styles/andreas05/README
127
+ M /trunk/webgen/data/webgen/website_styles/andreas06/README
128
+ M /trunk/webgen/data/webgen/website_styles/andreas07/README
129
+ M /trunk/webgen/data/webgen/website_styles/andreas08/README
130
+ M /trunk/webgen/data/webgen/website_styles/andreas09/README
131
+ M /trunk/webgen/data/webgen/website_styles/default/README
132
+ M /trunk/webgen/data/webgen/website_styles/plain/README
133
+
134
+ * fixed bug #T012: copyright notices for included website styles fixed
135
+ ------------------------------------------------------------------------
136
+ r608 | thomas | 2007-02-16 12:55:02 +0100 (Fri, 16 Feb 2007) | 1 line
137
+ Changed paths:
138
+ M /trunk/webgen/data/webgen/sipttra_styles/default/sipttra.template
139
+ M /trunk/webgen/doc/src/sipttra.template
140
+
141
+ * rounding for the percent of all closed tickets is now done to two place
142
+ ------------------------------------------------------------------------
143
+ r607 | thomas | 2007-02-16 12:27:06 +0100 (Fri, 16 Feb 2007) | 2 lines
144
+ Changed paths:
145
+ M /trunk/webgen/TODO
146
+ M /trunk/webgen/doc/config.yaml
147
+ M /trunk/webgen/doc/metainfo.yaml
148
+ A /trunk/webgen/doc/src/examples/example_sites
149
+ A /trunk/webgen/doc/src/examples/example_sites/index.page
150
+ A /trunk/webgen/doc/src/examples/example_sites/personal.zip
151
+ A /trunk/webgen/doc/src/examples/example_sites/photo_gallery.zip
152
+ M /trunk/webgen/doc/src/examples/index.page
153
+ M /trunk/webgen/doc/src/news.page
154
+ M /trunk/webgen/doc/src/project.todo
155
+
156
+ * added two example websites done with webgen to the examples section of the webgen documentation
157
+ * updated news and project status file
158
+ ------------------------------------------------------------------------
159
+ r606 | thomas | 2007-02-16 12:18:06 +0100 (Fri, 16 Feb 2007) | 1 line
160
+ Changed paths:
161
+ M /trunk/webgen/data/webgen/gallery_styles/slides/collage.rb
162
+
163
+ * fixed a bug and a style issue with the slide gallery style
164
+ ------------------------------------------------------------------------
165
+ r605 | thomas | 2007-02-15 09:51:38 +0100 (Thu, 15 Feb 2007) | 1 line
166
+ Changed paths:
167
+ M /trunk/webgen/doc/src/documentation/plugins/file/sipttrahandler.page
168
+
169
+ * corrected typo, again
170
+ ------------------------------------------------------------------------
171
+ r604 | thomas | 2007-02-15 09:49:53 +0100 (Thu, 15 Feb 2007) | 1 line
172
+ Changed paths:
173
+ M /trunk/webgen/doc/src/documentation/plugins/file/sipttrahandler.page
174
+
175
+ * corrected typo
176
+ ------------------------------------------------------------------------
177
+ r603 | thomas | 2007-02-15 09:46:01 +0100 (Thu, 15 Feb 2007) | 2 lines
178
+ Changed paths:
179
+ M /trunk/webgen/doc/metainfo.yaml
180
+ A /trunk/webgen/doc/src/css
181
+ A /trunk/webgen/doc/src/css/sipttra.rcss
182
+ A /trunk/webgen/doc/src/js
183
+ A /trunk/webgen/doc/src/js/sipttra.js
184
+ A /trunk/webgen/doc/src/project.todo
185
+ A /trunk/webgen/doc/src/sipttra.template
186
+
187
+ * imported the default sipttra file into the webgen doc website
188
+ * added a sipttra file for webgen
189
+ ------------------------------------------------------------------------
190
+ r602 | thomas | 2007-02-15 09:41:47 +0100 (Thu, 15 Feb 2007) | 1 line
191
+ Changed paths:
192
+ A /trunk/webgen/doc/src/documentation/plugins/file/sipttrahandler.page
193
+ A /trunk/webgen/doc/src/documentation/references/sipttra_format.page
194
+ A /trunk/webgen/lib/webgen/plugins/filehandlers/sipttra.rb
195
+ M /trunk/webgen/lib/webgen/sipttra_format.rb
196
+ A /trunk/webgen/test/fixtures/sample_site/src/test.todo
197
+ M /trunk/webgen/test/fixtures/tc_sipttra_format/test.sipttra
198
+ A /trunk/webgen/test/unittests/tc_filehandler_sipttra.rb
199
+
200
+ * implemented FR#T001: added support for sipttra files, basic documentation and tests
201
+ ------------------------------------------------------------------------
202
+ r601 | thomas | 2007-02-14 22:20:44 +0100 (Wed, 14 Feb 2007) | 2 lines
203
+ Changed paths:
204
+ A /trunk/webgen/data/webgen/sipttra_styles
205
+ A /trunk/webgen/data/webgen/sipttra_styles/default
206
+ A /trunk/webgen/data/webgen/sipttra_styles/default/README
207
+ A /trunk/webgen/data/webgen/sipttra_styles/default/css
208
+ A /trunk/webgen/data/webgen/sipttra_styles/default/css/sipttra.rcss
209
+ A /trunk/webgen/data/webgen/sipttra_styles/default/js
210
+ A /trunk/webgen/data/webgen/sipttra_styles/default/js/sipttra.js
211
+ A /trunk/webgen/data/webgen/sipttra_styles/default/sipttra.template
212
+ M /trunk/webgen/lib/webgen/cli.rb
213
+ M /trunk/webgen/lib/webgen/website.rb
214
+
215
+ * added the possibility to use different sipttra styles
216
+ * added a default sipttra style
217
+ ------------------------------------------------------------------------
218
+ r600 | thomas | 2007-02-14 22:06:18 +0100 (Wed, 14 Feb 2007) | 2 lines
219
+ Changed paths:
220
+ M /trunk/webgen/doc/src/default.template
221
+ M /trunk/webgen/doc/src/documentation/plugins/contentconverter/default.page
222
+ M /trunk/webgen/doc/src/documentation/plugins/file/defaulthandler.page
223
+ M /trunk/webgen/doc/src/documentation/plugins/file/thumbnailwriter.page
224
+ M /trunk/webgen/doc/src/documentation/plugins/htmlvalidator/default.page
225
+ M /trunk/webgen/doc/src/documentation/plugins/menustyle/default.page
226
+ M /trunk/webgen/doc/src/documentation/plugins/tag/default.page
227
+ M /trunk/webgen/doc/src/documentation/references/meta_info_reference.page
228
+
229
+ * updated meta information reference page
230
+ * the webgen website now uses the omitIndexFile option for the breadcrumb trail with some index files displayed nonetheless
231
+ ------------------------------------------------------------------------
232
+ r599 | thomas | 2007-02-14 21:32:52 +0100 (Wed, 14 Feb 2007) | 1 line
233
+ Changed paths:
234
+ A /trunk/webgen/lib/webgen/sipttra_format.rb
235
+ A /trunk/webgen/test/fixtures/tc_sipttra_format
236
+ A /trunk/webgen/test/fixtures/tc_sipttra_format/test.sipttra
237
+ A /trunk/webgen/test/unittests/tc_sipttra_format.rb
238
+
239
+ * implemented basic sipttra format
240
+ ------------------------------------------------------------------------
241
+ r598 | thomas | 2007-02-14 20:42:43 +0100 (Wed, 14 Feb 2007) | 1 line
242
+ Changed paths:
243
+ M /trunk/webgen/doc/src/documentation/plugins/core/configuration.page
244
+ A /trunk/webgen/doc/src/documentation/plugins/tag/customvar.page
245
+ M /trunk/webgen/lib/webgen/plugins/coreplugins/configuration.rb
246
+ A /trunk/webgen/lib/webgen/plugins/tags/customvar.rb
247
+ A /trunk/webgen/test/unittests/tc_tags_customvar.rb
248
+
249
+ * implemented FR#T007: plugin for storing and accessing global variables
250
+ ------------------------------------------------------------------------
251
+ r597 | thomas | 2007-02-14 08:52:49 +0100 (Wed, 14 Feb 2007) | 1 line
252
+ Changed paths:
253
+ M /trunk/webgen/lib/webgen/plugin.rb
254
+
255
+ * fixed bug T009
256
+ ------------------------------------------------------------------------
257
+ r596 | thomas | 2007-02-14 08:44:14 +0100 (Wed, 14 Feb 2007) | 1 line
258
+ Changed paths:
259
+ M /trunk/webgen/test/unittests/tc_tags_date.rb
260
+
261
+ * added missing require statement
262
+ ------------------------------------------------------------------------
263
+ r595 | thomas | 2007-02-14 08:43:28 +0100 (Wed, 14 Feb 2007) | 1 line
264
+ Changed paths:
265
+ M /trunk/webgen/doc/src/documentation/plugins/tag/breadcrumbtrail.page
266
+ M /trunk/webgen/lib/webgen/plugins/tags/breadcrumbtrail.rb
267
+ M /trunk/webgen/test/unittests/tc_tags_breadcrumbtrail.rb
268
+
269
+ * applied patch#7942, extended it and added test cases and documentation
270
+ ------------------------------------------------------------------------
271
+ r594 | thomas | 2007-02-14 07:07:51 +0100 (Wed, 14 Feb 2007) | 1 line
272
+ Changed paths:
273
+ M /trunk/webgen/lib/webgen/plugins/filehandlers/filehandler.rb
274
+
275
+ * fixed bug: no files were ever rendered in #render_files
276
+ ------------------------------------------------------------------------
277
+ r593 | thomas | 2007-02-13 20:33:44 +0100 (Tue, 13 Feb 2007) | 1 line
278
+ Changed paths:
279
+ M /trunk/webgen/doc/src/documentation/plugins/file/templatehandler.page
280
+ M /trunk/webgen/lib/webgen/plugins/filehandlers/template.rb
281
+ M /trunk/webgen/test/unittests/tc_filehandler_template.rb
282
+
283
+ * implemented FR#T004: HTML now default format for template files
284
+ ------------------------------------------------------------------------
285
+ r592 | thomas | 2007-02-02 17:18:37 +0100 (Fri, 02 Feb 2007) | 1 line
286
+ Changed paths:
287
+ M /trunk/webgen/data/webgen/website_styles/1024px/default.css
288
+ M /trunk/webgen/data/webgen/website_styles/andreas00/default.css
289
+ M /trunk/webgen/data/webgen/website_styles/andreas01/default.css
290
+ M /trunk/webgen/data/webgen/website_styles/andreas03/default.css
291
+ M /trunk/webgen/data/webgen/website_styles/andreas04/default.css
292
+ M /trunk/webgen/data/webgen/website_styles/andreas05/default.css
293
+ M /trunk/webgen/data/webgen/website_styles/andreas06/default.css
294
+ M /trunk/webgen/data/webgen/website_styles/andreas07/default.css
295
+ M /trunk/webgen/data/webgen/website_styles/andreas08/default.css
296
+ M /trunk/webgen/data/webgen/website_styles/andreas09/default.css
297
+ M /trunk/webgen/data/webgen/website_styles/default/default.css
298
+ M /trunk/webgen/data/webgen/website_styles/plain/default.css
299
+
300
+ * updated website styles to work correctly when File/DefaultHandler:linkToCurrentPage is false (thanks to Bill Paxton for reporting this style bug!)
301
+ ------------------------------------------------------------------------
2
302
  r590 | thomas | 2007-01-12 11:03:52 +0100 (Fri, 12 Jan 2007) | 1 line
3
303
  Changed paths:
4
304
  M /trunk/webgen/Rakefile
data/Rakefile CHANGED
@@ -94,6 +94,7 @@ CLOBBER << "doc/examples"
94
94
  CLOBBER << "doc/src/examples/website_templates"
95
95
  CLOBBER << "doc/src/examples/website_styles"
96
96
  CLOBBER << "doc/src/examples/gallery_styles"
97
+ CLOBBER << "doc/src/examples/sipttra_styles"
97
98
  CLOBBER << "doc/plugin/gallery"
98
99
  desc "Creates the files for the examples section of the docu"
99
100
  task :create_examples do
@@ -127,19 +128,23 @@ Following is the list of all available website styles:
127
128
 
128
129
  # gallery styles
129
130
  Webgen::GalleryStyle.entries.each do |name, entry|
130
- puts "Creating example files for gallery style '#{name}'..."
131
- mkdir_p( "doc/plugin/gallery/#{name}" )
132
- FileUtils.cp( entry.plugin_files, "doc/plugin/gallery/#{name}" )
133
131
  base_dir = "doc/src/examples/gallery_styles/#{name}"
134
- mkdir_p( base_dir )
135
- entry.copy_to( base_dir )
136
-
137
- additional = case name
138
- when 'slides' then "layouter: slides\nthumbnailResizeMethod: :cropped"
139
- else ''
140
- end
141
- File.open( File.join( base_dir, "#{name}.gallery" ), 'w+' ) do |f|
142
- f.write("title: index
132
+ files_mtime = (entry.files + entry.plugin_files).collect {|f| File.mtime( f) }.max
133
+ dir_mtime = File.mtime( base_dir ) rescue Time.parse("1970-1-1")
134
+ if dir_mtime < files_mtime
135
+ puts "Creating example files for gallery style '#{name}'..."
136
+ mkdir_p( "doc/plugin/gallery/#{name}" )
137
+ FileUtils.cp( entry.plugin_files, "doc/plugin/gallery/#{name}" )
138
+ mkdir_p( base_dir )
139
+ FileUtils.touch( base_dir )
140
+ entry.copy_to( base_dir )
141
+
142
+ additional = case name
143
+ when 'slides' then "layouter: slides\nthumbnailResizeMethod: :cropped"
144
+ else ''
145
+ end
146
+ File.open( File.join( base_dir, "#{name}.gallery" ), 'w+' ) do |f|
147
+ f.write("title: index
143
148
  images: ../../images/*
144
149
  imagesPerPage: 8
145
150
  mainPageMetaInfo:
@@ -218,6 +223,7 @@ mainPageMetaInfo:
218
223
  title: Zakynthos 3
219
224
  description: The Navagio ship wreck, very famous Greek tourist destination.
220
225
  ")
226
+ end
221
227
  end
222
228
  end
223
229
 
@@ -233,6 +239,124 @@ Following is the list of all available gallery styles:
233
239
  data[:entries] = Webgen::GalleryStyle.entries
234
240
  create_example_index( "doc/src/examples/gallery_styles/index.page", data )
235
241
 
242
+
243
+ # sipttra styles
244
+ Webgen::SipttraStyle.entries.each do |name, entry|
245
+ base_dir = "doc/src/examples/sipttra_styles/#{name}"
246
+ files_mtime = entry.files.collect {|f| File.mtime( f ) }.max
247
+ dir_mtime = File.mtime( base_dir ) rescue Time.parse("1970-1-1")
248
+ if dir_mtime < files_mtime
249
+ puts "Creating example files for sipttra style '#{name}'..."
250
+ mkdir_p( base_dir )
251
+ FileUtils.touch( base_dir )
252
+ entry.copy_to( base_dir )
253
+
254
+ File.open( File.join( base_dir, "index.todo" ), 'w+' ) do |f|
255
+ f.write("---
256
+ webgen-metainfo:
257
+ template: sipttra.template
258
+ ---
259
+ ###### Milestones ######
260
+ * Feb07 (2007-02-28) Bug fixes and small enhancements
261
+ - include patches/requests created since 0.4.1 release
262
+ - add support for sipttra files, the Simple Plain Text Tracker
263
+
264
+ * F: Ideas and todo items for future versions
265
+
266
+ This milestone holds all ideas/todo items/requests which are implemented some
267
+ time in the future.
268
+
269
+ ###### Implementation (open) ######
270
+
271
+ * T002 [F] add localization support for all files
272
+ See also FR#7891
273
+
274
+ * T003 [F] add additional tests for sipttra implementation
275
+
276
+ ## Implementation (closed) ##
277
+
278
+ * T004 [Feb07] use HTML as default format for templates
279
+ See also FR#7893
280
+
281
+ * T006 [Feb07] add parameter for not showing index files in breadcrumb trail
282
+ See also PATCH#7942
283
+
284
+ * T007 [Feb07] implement a plugin for storing/accessing global variables
285
+
286
+ * T001 [Feb07] add support for sipttra files
287
+
288
+ ###### Bugs (open) ######
289
+
290
+ * T013 [Feb07] fix TreeWalker (write mail to mailing list and ask what should be done with it)
291
+
292
+ ## Bugs (closed) ##
293
+
294
+ * T005 [Feb07] check all styles for correctly selected menu items
295
+ style issues because of new span element when File/DefaultHandler:linkToCurrentPage is false
296
+
297
+ * T009 [Feb07] PluginManager#init: log typo for 'creating plugin of class...'
298
+
299
+ * T012 [Feb07] update copyright notices for included website templates
300
+ See also Bug#8725
301
+
302
+ * T008 [Feb07] PluginLoader shouldn't load plugins that are already loaded in the DEFAULT_WRAPPER_MODULE
303
+ When site plugins use the load_plugin command to load plugins that are shipped with webgen and loaded by
304
+ default, some plugins don't work correctly as plugin classes get defined twice with different oids.
305
+
306
+ ###### Documentation (open) ######
307
+
308
+ * T011 [Feb07] add example section for sipttra style files
309
+
310
+ ## Documentation (closed) ##
311
+
312
+ * T010 [Feb07] add some example sites
313
+ It was requested that one should be able to download some zipped examples sites from the examples
314
+ section showing basic use cases for webgen.
315
+ ")
316
+ end
317
+ File.open( File.join( base_dir, "default.template" ), 'w+' ) do |f|
318
+ f.write( '---
319
+ template: ~
320
+ ---
321
+ <?xml version="1.0" encoding="UTF-8"?>
322
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
323
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
324
+ <head>
325
+ <title>Sipttra Style</title>
326
+ <link rel="stylesheet" href="{resource: {name: webgen-css, insert: :path}}" type="text/css" media="screen" />
327
+ <link rel="stylesheet" href="{relocatable: css/sipttra.css}" type="text/css" media="screen" />
328
+ <script type="text/javascript" src="{relocatable: js/sipttra.js}" />
329
+ </head>
330
+ <body>
331
+ {block:}
332
+ </body>
333
+ </html>
334
+ ')
335
+ end
336
+ File.open( File.join( File.dirname( base_dir ), "#{name}.page" ), 'w+' ) do |f|
337
+ f.write("---
338
+ title: #{name}
339
+ inMenu: true
340
+ --- content, html
341
+ <object type='text/html' data='#{name}/index.html' width='100%' height='600px' />
342
+ ")
343
+ end
344
+ end
345
+ end
346
+
347
+ data = {}
348
+ data[:dirname] = 'Sipttra Styles'
349
+ data[:desc]= "h2. List of sipttra styles
350
+
351
+ The sipttra style example pages open in an iframe when you use the menu items. Use the links
352
+ provided below to open the sipttra style example pages directly (fullscreen). All sipttra style
353
+ examples use
354
+
355
+ Following is the list of all available sipttra styles:
356
+ "
357
+ data[:entries] = Webgen::SipttraStyle.entries
358
+ create_example_index( "doc/src/examples/sipttra_styles/index.page", data )
359
+
236
360
  end
237
361
 
238
362
 
@@ -244,23 +368,21 @@ end
244
368
 
245
369
 
246
370
  PKG_FILES = FileList.new( [
247
- 'setup.rb',
248
- 'TODO',
249
- 'COPYING',
250
- 'README',
251
- 'Rakefile',
252
- 'ChangeLog',
253
- 'VERSION',
254
- 'bin/webgen',
255
- 'lib/**/*.rb',
256
- 'data/**/*',
257
- 'testsite/**/*',
258
- 'test/**/*',
259
- 'doc/**/*'
371
+ 'setup.rb',
372
+ 'TODO',
373
+ 'COPYING',
374
+ 'README',
375
+ 'Rakefile',
376
+ 'ChangeLog',
377
+ 'VERSION',
378
+ 'bin/webgen',
379
+ 'lib/**/*.rb',
380
+ 'data/**/*',
381
+ 'test/**/*',
382
+ 'doc/**/*',
383
+ 'man/**/*',
260
384
  ]) do |fl|
261
385
  fl.exclude( /\bsvn\b/ )
262
- fl.exclude( 'testsite/output' )
263
- fl.exclude( 'testsite/coverage' )
264
386
  fl.exclude( 'doc/output' )
265
387
  end
266
388