webgen 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/ChangeLog +201 -0
  2. data/Rakefile +3 -2
  3. data/TODO +31 -4
  4. data/VERSION +1 -1
  5. data/data/webgen/example/config.yaml +2 -0
  6. data/data/webgen/example/src/default.css +84 -0
  7. data/data/webgen/example/src/default.template +32 -0
  8. data/data/webgen/example/src/index.page +8 -0
  9. data/{doc/src → data/webgen/images}/generated_by_webgen.png +0 -0
  10. data/data/webgen/images/valid-css.gif +0 -0
  11. data/data/webgen/images/valid-xhtml11.png +0 -0
  12. data/data/webgen/images/webgen_logo.png +0 -0
  13. data/doc/config.yaml +2 -0
  14. data/doc/plugin/extension.rb +8 -4
  15. data/doc/plugin/resources.rb +30 -0
  16. data/doc/src/default.css +251 -149
  17. data/doc/src/default.template +8 -8
  18. data/doc/src/documentation/gettingstarted.page +1 -1
  19. data/doc/src/documentation/index.page +6 -2
  20. data/doc/src/documentation/plugins/filehandler/backing.page +22 -9
  21. data/doc/src/documentation/plugins/filehandler/galleryhandler.page +1 -1
  22. data/doc/src/documentation/plugins/filehandler/index.page +9 -4
  23. data/doc/src/documentation/plugins/filehandler/pagehandler.page +33 -10
  24. data/doc/src/documentation/plugins/index.page +9 -1
  25. data/doc/src/documentation/plugins/menustyles/horizontal-dropdown.page +42 -0
  26. data/doc/src/documentation/plugins/menustyles/horizontal.page +21 -0
  27. data/doc/src/documentation/plugins/menustyles/index.page +12 -0
  28. data/doc/src/documentation/plugins/menustyles/partial.page +27 -0
  29. data/doc/src/documentation/plugins/menustyles/vertical-dropdown.page +23 -0
  30. data/doc/src/documentation/plugins/menustyles/vertical.page +32 -0
  31. data/doc/src/documentation/plugins/resourcemanager.page +30 -0
  32. data/doc/src/documentation/plugins/tags/index.page +2 -2
  33. data/doc/src/documentation/plugins/tags/langbar.page +4 -4
  34. data/doc/src/documentation/plugins/tags/menu.page +6 -17
  35. data/doc/src/documentation/plugins/tags/navbar.page +2 -1
  36. data/doc/src/documentation/plugins/tags/resource.page +22 -0
  37. data/doc/src/download.page +1 -1
  38. data/doc/src/features.page +32 -9
  39. data/doc/src/index.page +24 -10
  40. data/doc/src/meta.info +16 -6
  41. data/install.rb +1 -1
  42. data/lib/webgen/configuration.rb +24 -2
  43. data/lib/webgen/node.rb +29 -5
  44. data/lib/webgen/plugin.rb +1 -5
  45. data/lib/webgen/plugins/contenthandler/textile.rb +3 -3
  46. data/lib/webgen/plugins/filehandler/backing.rb +5 -4
  47. data/lib/webgen/plugins/filehandler/directory.rb +3 -3
  48. data/lib/webgen/plugins/filehandler/filehandler.rb +8 -4
  49. data/lib/webgen/plugins/filehandler/page.rb +33 -18
  50. data/lib/webgen/plugins/filehandler/picturegallery.rb +10 -8
  51. data/lib/webgen/plugins/menustyles/defaultmenustyle.rb +73 -0
  52. data/lib/webgen/plugins/menustyles/horizontal.rb +93 -0
  53. data/lib/webgen/plugins/menustyles/horizontal_dropdown.rb +113 -0
  54. data/lib/webgen/plugins/menustyles/partial.rb +95 -0
  55. data/lib/webgen/plugins/menustyles/vertical.rb +107 -0
  56. data/lib/webgen/plugins/menustyles/vertical_dropdown.rb +107 -0
  57. data/lib/webgen/plugins/resourcemanager.rb +264 -0
  58. data/lib/webgen/plugins/tags/langbar.rb +9 -5
  59. data/lib/webgen/plugins/tags/menu.rb +4 -66
  60. data/lib/webgen/plugins/treewalker.rb +7 -6
  61. data/lib/webgen/webgen.rb +72 -161
  62. metadata +37 -6
  63. data/doc/src/logo.png +0 -0
data/ChangeLog CHANGED
@@ -1,4 +1,205 @@
1
1
  ------------------------------------------------------------------------
2
+ r303 | thomas | 2005-06-24 15:44:14 +0200 (Fri, 24 Jun 2005) | 1 line
3
+ Changed paths:
4
+ M /trunk/webgen/Rakefile
5
+ M /trunk/webgen/TODO
6
+ M /trunk/webgen/lib/webgen/configuration.rb
7
+ M /trunk/webgen/lib/webgen/plugins/filehandler/picturegallery.rb
8
+ A /trunk/webgen/otherdata/webgen-gallery-creator.rb
9
+
10
+ * added thumbnailSize option to gallery file
11
+ ------------------------------------------------------------------------
12
+ r301 | thomas | 2005-06-14 12:25:49 +0200 (Tue, 14 Jun 2005) | 1 line
13
+ Changed paths:
14
+ M /trunk/webgen/lib/webgen/plugins/filehandler/page.rb
15
+
16
+ * separated rendering of page nodes from writing
17
+ ------------------------------------------------------------------------
18
+ r300 | thomas | 2005-06-14 12:04:17 +0200 (Tue, 14 Jun 2005) | 2 lines
19
+ Changed paths:
20
+ M /trunk/webgen/TODO
21
+ M /trunk/webgen/doc/src/documentation/plugins/menustyles/horizontal-dropdown.page
22
+ M /trunk/webgen/lib/webgen/plugins/menustyles/horizontal_dropdown.rb
23
+ M /trunk/webgen/lib/webgen/plugins/menustyles/vertical_dropdown.rb
24
+ M /trunk/webgen/lib/webgen/plugins/resourcemanager.rb
25
+
26
+ * fixed ResourceManager plugin to work in Windows
27
+ * updated CSS styles for dropdown menus to look "nice" in IE because they do not work in IE
28
+ ------------------------------------------------------------------------
29
+ r296 | thomas | 2005-06-14 08:42:31 +0200 (Tue, 14 Jun 2005) | 2 lines
30
+ Changed paths:
31
+ M /trunk/webgen/doc/src/documentation/plugins/filehandler/backing.page
32
+ M /trunk/webgen/doc/src/documentation/plugins/filehandler/index.page
33
+ M /trunk/webgen/doc/src/documentation/plugins/filehandler/pagehandler.page
34
+ M /trunk/webgen/doc/src/documentation/plugins/resourcemanager.page
35
+ M /trunk/webgen/doc/src/index.page
36
+
37
+ * updated documentation of backing file handler
38
+ * updated some other pages
39
+ ------------------------------------------------------------------------
40
+ r295 | thomas | 2005-06-14 08:41:37 +0200 (Tue, 14 Jun 2005) | 1 line
41
+ Changed paths:
42
+ M /trunk/webgen/doc/src/default.css
43
+ M /trunk/webgen/doc/src/default.template
44
+
45
+ * now using vertical dropdown menu and quick menu on the left side
46
+ ------------------------------------------------------------------------
47
+ r294 | thomas | 2005-06-14 08:37:56 +0200 (Tue, 14 Jun 2005) | 3 lines
48
+ Changed paths:
49
+ M /trunk/webgen/lib/webgen/node.rb
50
+ M /trunk/webgen/lib/webgen/plugins/filehandler/backing.rb
51
+ M /trunk/webgen/lib/webgen/plugins/filehandler/page.rb
52
+ M /trunk/webgen/test/webgen/tc_node.rb
53
+
54
+ * fixed Node#get_node_for_string and tests so that page files with standardified names are found
55
+ * fixed bug in backing file handler where meta info files in subdirs were not processed
56
+ * updated PageHandler to provided a localized standardified page name to page nodes
57
+ ------------------------------------------------------------------------
58
+ r293 | thomas | 2005-06-11 10:37:51 +0200 (Sat, 11 Jun 2005) | 17 lines
59
+ Changed paths:
60
+ M /trunk/webgen/Rakefile
61
+ M /trunk/webgen/TODO
62
+ A /trunk/webgen/data
63
+ A /trunk/webgen/data/webgen
64
+ A /trunk/webgen/data/webgen/example
65
+ A /trunk/webgen/data/webgen/example/config.yaml
66
+ A /trunk/webgen/data/webgen/example/log
67
+ A /trunk/webgen/data/webgen/example/output
68
+ A /trunk/webgen/data/webgen/example/plugin
69
+ A /trunk/webgen/data/webgen/example/src
70
+ A /trunk/webgen/data/webgen/example/src/default.css
71
+ A /trunk/webgen/data/webgen/example/src/default.template
72
+ A /trunk/webgen/data/webgen/example/src/index.page
73
+ A /trunk/webgen/data/webgen/images
74
+ A /trunk/webgen/data/webgen/images/generated_by_webgen.png
75
+ A /trunk/webgen/data/webgen/images/valid-css.gif
76
+ A /trunk/webgen/data/webgen/images/valid-xhtml11.png
77
+ A /trunk/webgen/data/webgen/images/webgen_logo.png
78
+ M /trunk/webgen/doc/plugin/extension.rb
79
+ A /trunk/webgen/doc/plugin/resources.rb
80
+ M /trunk/webgen/doc/src/default.css
81
+ M /trunk/webgen/doc/src/default.template
82
+ M /trunk/webgen/doc/src/documentation/index.page
83
+ M /trunk/webgen/doc/src/documentation/plugins/filehandler/index.page
84
+ M /trunk/webgen/doc/src/documentation/plugins/index.page
85
+ A /trunk/webgen/doc/src/documentation/plugins/menustyles
86
+ A /trunk/webgen/doc/src/documentation/plugins/menustyles/horizontal-dropdown.page
87
+ A /trunk/webgen/doc/src/documentation/plugins/menustyles/horizontal.page
88
+ A /trunk/webgen/doc/src/documentation/plugins/menustyles/index.page
89
+ A /trunk/webgen/doc/src/documentation/plugins/menustyles/partial.page
90
+ A /trunk/webgen/doc/src/documentation/plugins/menustyles/vertical-dropdown.page
91
+ A /trunk/webgen/doc/src/documentation/plugins/menustyles/vertical.page
92
+ A /trunk/webgen/doc/src/documentation/plugins/resourcemanager.page
93
+ M /trunk/webgen/doc/src/documentation/plugins/tags/langbar.page
94
+ M /trunk/webgen/doc/src/documentation/plugins/tags/menu.page
95
+ M /trunk/webgen/doc/src/documentation/plugins/tags/navbar.page
96
+ A /trunk/webgen/doc/src/documentation/plugins/tags/resource.page
97
+ M /trunk/webgen/doc/src/download.page
98
+ M /trunk/webgen/doc/src/features.page
99
+ D /trunk/webgen/doc/src/generated_by_webgen.png
100
+ M /trunk/webgen/doc/src/index.page
101
+ D /trunk/webgen/doc/src/logo.png
102
+ M /trunk/webgen/doc/src/meta.info
103
+ M /trunk/webgen/lib/webgen/configuration.rb
104
+ M /trunk/webgen/lib/webgen/node.rb
105
+ M /trunk/webgen/lib/webgen/plugin.rb
106
+ M /trunk/webgen/lib/webgen/plugins/filehandler/filehandler.rb
107
+ A /trunk/webgen/lib/webgen/plugins/menustyles
108
+ A /trunk/webgen/lib/webgen/plugins/menustyles/defaultmenustyle.rb
109
+ A /trunk/webgen/lib/webgen/plugins/menustyles/horizontal.rb
110
+ A /trunk/webgen/lib/webgen/plugins/menustyles/horizontal_dropdown.rb
111
+ A /trunk/webgen/lib/webgen/plugins/menustyles/partial.rb
112
+ A /trunk/webgen/lib/webgen/plugins/menustyles/vertical.rb
113
+ A /trunk/webgen/lib/webgen/plugins/menustyles/vertical_dropdown.rb
114
+ A /trunk/webgen/lib/webgen/plugins/resourcemanager.rb
115
+ M /trunk/webgen/lib/webgen/plugins/tags/langbar.rb
116
+ M /trunk/webgen/lib/webgen/plugins/tags/menu.rb
117
+ M /trunk/webgen/lib/webgen/webgen.rb
118
+ M /trunk/webgen/otherdata/logo.svg
119
+ M /trunk/webgen/test/webgen/tc_node.rb
120
+
121
+ * added method Node#relpath_to_string and tests for it
122
+ * updated to cmdparse version 1.0.3
123
+ * extensively updated documentation (esp. features)
124
+ * updated default.template to use webgen image resources
125
+ * added webgen doc site specific plugin for showing the predefined resources
126
+ * the ancestors of plugins are now shown in the information section
127
+ * added new plugin ResourceManager for handling file and memory resources
128
+ * added new tag resource for accessing resources
129
+ * restructured menu tag to allow different menu styles
130
+ * added five menu styles: horizontal, vertical, partial, horizontal-dropdown, vertical-dropdown
131
+ * added documentation pages for menu styles, Resource Manager and resource tag
132
+ * added new listener message to FileHandler: AFTER_ALL_WRITTEN
133
+ * updated relpath_to_node to better handle absolute destinations (http, ftp, ...)
134
+ * Configuration.data_dir returns webgen specific data directory now
135
+ * webgen sample site moved to data directory
136
+ * added some images to data directory
137
+ * created new logo for webgen
138
+ ------------------------------------------------------------------------
139
+ r289 | thomas | 2005-06-05 10:49:15 +0200 (Sun, 05 Jun 2005) | 1 line
140
+ Changed paths:
141
+ M /trunk/webgen/lib/webgen/plugins/tags/langbar.rb
142
+
143
+ * incorporated change (option showOwnLang) from Thomas Werschlein
144
+ ------------------------------------------------------------------------
145
+ r288 | thomas | 2005-05-29 14:25:47 +0200 (Sun, 29 May 2005) | 4 lines
146
+ Changed paths:
147
+ M /trunk/webgen/TODO
148
+ A /trunk/webgen/doc/config.yaml
149
+ M /trunk/webgen/doc/src/documentation/gettingstarted.page
150
+ M /trunk/webgen/doc/src/documentation/plugins/filehandler/galleryhandler.page
151
+ M /trunk/webgen/doc/src/documentation/plugins/filehandler/pagehandler.page
152
+ M /trunk/webgen/doc/src/documentation/plugins/tags/index.page
153
+ M /trunk/webgen/doc/src/documentation/plugins/tags/langbar.page
154
+ M /trunk/webgen/doc/src/features.page
155
+ M /trunk/webgen/doc/src/index.page
156
+ M /trunk/webgen/doc/src/meta.info
157
+ M /trunk/webgen/lib/webgen/node.rb
158
+ M /trunk/webgen/lib/webgen/plugins/contenthandler/textile.rb
159
+ M /trunk/webgen/lib/webgen/plugins/filehandler/backing.rb
160
+ M /trunk/webgen/lib/webgen/plugins/filehandler/directory.rb
161
+ M /trunk/webgen/lib/webgen/plugins/filehandler/page.rb
162
+ M /trunk/webgen/test/webgen/tc_node.rb
163
+
164
+ * BUG fixed in Node#get_node_for_string: invalid name resolution if node is directory node
165
+ * metainfo int:pagename now set to <name of page>.page
166
+ * changed PageHandler:validator to default to nil
167
+ * added some doku
168
+ ------------------------------------------------------------------------
169
+ r287 | thomas | 2005-05-26 11:33:38 +0200 (Thu, 26 May 2005) | 2 lines
170
+ Changed paths:
171
+ M /trunk/webgen/TODO
172
+ M /trunk/webgen/doc/src/default.template
173
+ M /trunk/webgen/lib/webgen/plugins/filehandler/backing.rb
174
+ M /trunk/webgen/lib/webgen/plugins/treewalker.rb
175
+ M /trunk/webgen/lib/webgen/webgen.rb
176
+
177
+ * added clean command to CLI
178
+ * added parameter to TreeWalker#execute for specifying the order in which #handle_node is called
179
+ ------------------------------------------------------------------------
180
+ r283 | thomas | 2005-05-21 13:15:59 +0200 (Sat, 21 May 2005) | 1 line
181
+ Changed paths:
182
+ M /trunk/webgen/TODO
183
+ M /trunk/webgen/lib/webgen/plugins/filehandler/filehandler.rb
184
+
185
+ * BUG fixed where invokation of webgen without src dir produced error
186
+ ------------------------------------------------------------------------
187
+ r280 | thomas | 2005-05-16 08:51:18 +0200 (Mon, 16 May 2005) | 2 lines
188
+ Changed paths:
189
+ M /trunk/webgen/TODO
190
+ M /trunk/webgen/doc/src/default.template
191
+ M /trunk/webgen/doc/src/index.page
192
+ M /trunk/webgen/lib/webgen/configuration.rb
193
+
194
+ * bumped version number
195
+ * small change to docu
196
+ ------------------------------------------------------------------------
197
+ r278 | thomas | 2005-05-12 12:22:51 +0200 (Thu, 12 May 2005) | 1 line
198
+ Changed paths:
199
+ M /trunk/webgen/doc/src/default.template
200
+
201
+ * made webgen logo relocatable
202
+ ------------------------------------------------------------------------
2
203
  r277 | thomas | 2005-05-12 10:43:54 +0200 (Thu, 12 May 2005) | 1 line
3
204
  Changed paths:
4
205
  M /trunk/webgen/lib/webgen/plugins/filehandler/page.rb
data/Rakefile CHANGED
@@ -106,6 +106,7 @@ PKG_FILES = FileList.new( [
106
106
  'install.rb',
107
107
  'bin/**/*',
108
108
  'lib/**/*.rb',
109
+ 'data/**/*',
109
110
  'testsite/**/*',
110
111
  'tests/**/*',
111
112
  'doc/**/*'
@@ -181,7 +182,7 @@ else
181
182
  #### Dependencies, requirements and files
182
183
 
183
184
  s.files = PKG_FILES.to_a
184
- s.add_dependency( 'cmdparse', '>= 1.0.2' )
185
+ s.add_dependency( 'cmdparse', '>= 1.0.3' )
185
186
 
186
187
  s.require_path = 'lib'
187
188
  s.autorequire = nil
@@ -199,7 +200,7 @@ else
199
200
 
200
201
  s.author = "Thomas Leitner"
201
202
  s.email = "t_leitner@gmx.at"
202
- s.homepage = "webgen.rubyforge.org"
203
+ s.homepage = "http://webgen.rubyforge.org"
203
204
  s.rubyforge_project = "webgen"
204
205
  end
205
206
 
data/TODO CHANGED
@@ -1,24 +1,30 @@
1
1
  ---- CURRENT ----
2
2
 
3
- * implement command "webgen clean" (options -f (force) -a (all files in dir, not only generated ones)
4
- * implement plugin which creates nodes for fragment identifiers (#info) in html
3
+ * simplify menu style plugins
4
+ * make menu generation faster (for webgen: 5.2s without menus in template, 9.2s with menus!)
5
5
  * modify tags system sothat tags can be specified via a tag directive (like extension with file handlers)
6
6
  * create tests for methods in webgen.rb
7
7
  * webgen -c => output same info as on docu pages
8
8
  * check if duplicate nodes are created??? by using a tag in a template
9
9
  * allow a template to use another template (templates as page description files?) (template2 uses template1)
10
- * security concerns (setting different $SAFE level???)
11
10
  * use code generator to create test file with all tags and all tag parameter configurations
12
11
 
13
12
  ---- DOCU ----
14
13
 
15
14
  * DEV: self.logger.warn/error/info/debug can be used for messages
15
+ * add keywords to default.template
16
+ * document which meta info can be used in gallery file for gallery itself, gallery pages and picture pages
16
17
 
17
18
  ---- FUTURE ----
18
19
 
20
+ * parameter for setting the orderInfo of index pages so that they always appear as first entry
21
+ * custom commands provided by plugins
22
+ * implement plugin which creates nodes for fragment identifiers (#info) in html
23
+ * convert smiley characters to smileys
24
+ * include spell checker (ispell, aspell, MS Word OLE on Win32,...)
25
+ * tag 'download' which links to a download file and appends its size and ev. an image (PDF, ...)
19
26
  * tag 'resume', uses xmlresume2x to provide HTML version of xml resume
20
27
  * multi-lingual picture/gallery files
21
- * refactor menu: abstract menu generator+parser, concrete impls (vert. menu, horz. menu, ...)
22
28
  * include exif info for pictures
23
29
 
24
30
  ---- DONE ----
@@ -170,3 +176,24 @@ W do not allow two or more page files in the same language, print warn
170
176
  * reloctable tag: correct output for complex URLS???
171
177
  * document the various meta info entries that the plugins use (inMenu, menuOrdering, ...) --> define: Plugin.used_meta_info( name, desc )
172
178
  * create logo "Created with webgen"
179
+ * implement command "webgen clean" (options -f (force) -a (all files in dir, not only generated ones)
180
+ * BUG: relocatable should work if defaultLangInFilename is true (eg. copy.html -> not found because of copy.en.html)
181
+ * refactor menu: abstract menu generator+parser, concrete impls (vert. menu, horz. menu, ...)
182
+ * change langbar like in mail from Thomas Werschleinvn
183
+ * mention which extension the file handlers work on (backing file handler, template file handler, ...)
184
+ * add doku for new menu builder plugins, adjust menu.page
185
+ * test Node#relpath_to_string
186
+ * add possibility to add user-defined resources via config.yaml
187
+ * MAYBE: ONE page node for all pages, metainfo 'en' => all info about english, 'de' => same, ...??? --> better not
188
+ * add style advices for menu styles
189
+ * resources should be saved in Webgen::Plugin.config
190
+ * make tag plugin for predefinedResources work
191
+ * document ResourceManager
192
+ * specify on menu style pages in which browsers the menus work
193
+ * document super classes of plugins because plugins can use parameters of super classes
194
+ * create partialMenu style which only shows a partial menu
195
+ * security concerns (setting different $SAFE level???) --> No
196
+ * create vertical-dropdown menu
197
+ * better docu for backing file handler
198
+ * make dropdown menus "look" nice in IE
199
+ * make dropdown menus work in IE -> rather hard to do in a general way
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.5
@@ -0,0 +1,2 @@
1
+ # Configuration file for webgen
2
+ # Used to set the parameters of the plugins
@@ -0,0 +1,84 @@
1
+
2
+ #all { background-color: #CCCCCC; }
3
+
4
+ #header {
5
+ border-bottom: 1px solid black;
6
+ padding: 1ex;
7
+ background-color: #888888;
8
+ }
9
+ #header h1 {
10
+ margin: 0ex;
11
+ font-size: 300%;
12
+ font-style: italic;
13
+ font-weight: normal;
14
+ }
15
+
16
+ , #headerbar { border-bottom: 1px solid black; }
17
+ #footer { border-top: 1px solid black; }
18
+
19
+ #body {
20
+ margin-left: 250px;
21
+ margin-right: 20px;
22
+ padding: 10px;
23
+ }
24
+
25
+ #menu {
26
+ float: left;
27
+ width: 230px;
28
+ padding: 20px 0px 0px 2px;
29
+ }
30
+
31
+ .bar {
32
+ clear: both;
33
+ padding: 3px;
34
+ text-align: center;
35
+ font-size: 90%;
36
+ background-color: #AAAAAA;
37
+ }
38
+
39
+ .left, .right {
40
+ padding: 0px 1em;
41
+ }
42
+
43
+ .left {
44
+ float: left;
45
+ text-align: left;
46
+ }
47
+
48
+ .right {
49
+ float: right;
50
+ text-align: right;
51
+ }
52
+
53
+ /* styling the menu */
54
+
55
+ #menu a {
56
+ text-decoration: none;
57
+ font-weight: bold;
58
+ font-size: 130%;
59
+ }
60
+
61
+ #menu a:hover {
62
+ text-decoration: underline;
63
+ }
64
+
65
+ #menu .webgen-menuitem-selected {
66
+ border-left: 3px solid black;
67
+ }
68
+
69
+ #menu ul {
70
+ list-style-type: none;
71
+ padding: 0px;
72
+ margin-left: 10px;
73
+ }
74
+
75
+ #menu li > ul {
76
+ font-size: 95%;
77
+ }
78
+
79
+ #menu li {
80
+ margin: 0.0em 0px;
81
+ padding: 2px 0px;
82
+ padding-left: 5px;
83
+ border-left: 3px solid #CCCCCC;
84
+ }
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
4
+ <head>
5
+ <title>{title: }</title>
6
+ <link href="{relocatable: default.css}" rel="stylesheet" />
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ </head>
9
+ <body>
10
+ <div id="header">
11
+ <h1>{title: }</h1>
12
+ </div>
13
+
14
+ <div id="headerbar" class="bar">
15
+ <span class="left">Navbar: {navbar: }</span>
16
+ <span class="right">Language: {langbar: }</span>
17
+ <div style="clear:both"></div>
18
+ </div>
19
+
20
+ <div id="menu">
21
+ {menu: }
22
+ </div>
23
+
24
+ <div id="body">
25
+ {content: }
26
+ </div>
27
+
28
+ <div id="footer" class="bar">
29
+ generated with <a href="http://webgen.rubyforge.org"><img src="{resource: webgen-generated}" /></a> on <b>{date: }</b>
30
+ </div>
31
+ </body>
32
+ </html>
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Empty index page
3
+ inMenu: true
4
+ directoryName: New Website
5
+ ---
6
+ h2. Empty index file
7
+
8
+ Fill this file with your own data!!!
Binary file
Binary file
data/doc/config.yaml ADDED
@@ -0,0 +1,2 @@
1
+ PageHandler:
2
+ validator: xmllint
@@ -41,8 +41,12 @@ module OtherPlugins
41
41
  s = "<table>"
42
42
  row = lambda {|desc, value| "<tr style='vertical-align: top'><td style='font-weight:bold'>#{CGI::escapeHTML( desc )}:</td><td>#{value}</td></tr>" }
43
43
 
44
- # plugin, summary, description
45
- [['Plugin Name', 'plugin'], ['Summary', 'summary'], ['Description', 'description']].each do |desc, name|
44
+ # Plugin and ancestors
45
+ ancestors = data.klass.ancestor_classes[1..-1].collect {|k| Webgen::Plugin.config[k].plugin}.join(', ')
46
+ s += row['Plugin name', CGI::escapeHTML( data.plugin + (ancestors.empty? ? '' : " (#{ancestors})" ) )]
47
+
48
+ # summary, description
49
+ [['Summary', 'summary'], ['Description', 'description']].each do |desc, name|
46
50
  s += row[desc, CGI::escapeHTML( data.send( name ) )] if eval( "data.#{name}" )
47
51
  end
48
52
 
@@ -66,11 +70,11 @@ module OtherPlugins
66
70
 
67
71
  # tag name, file ext
68
72
  s += row['Name of tag', (data.tag == :default ? "Default tag" : data.tag)] if data.tag
69
- s += row['File extension', data.extension.inspect.gsub(/"/, '')] if data.extension
73
+ s += row['Handled paths', data.path.collect {|p| CGI::escapeHTML( p )}.join('<br />')] if data.path
70
74
 
71
75
  # Show all registered handlers
72
76
  data.table.keys.find_all {|k| /^registered_/ =~ k.to_s }.each do |k|
73
- s += row[k.to_s.sub( /^registered_/, '' ).capitalize + " name", data.send( k )]
77
+ s += row[k.to_s.sub( /^registered_/, '' ).tr('_', ' ').capitalize + " name", data.send( k )]
74
78
  end
75
79
 
76
80
  s += "</table>"