webgen 0.3.0 → 0.3.1
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 +280 -0
- data/Rakefile +3 -1
- data/TODO +29 -12
- data/VERSION +1 -1
- data/doc/extension.config +11 -6
- data/doc/src/about.page +21 -0
- data/doc/src/default.css +17 -0
- data/doc/src/default.template +3 -5
- data/doc/src/design.gallery +1 -1
- data/doc/src/designs/curdesign.png +0 -0
- data/doc/src/designs/nostyle.png +0 -0
- data/doc/src/designs/old.png +0 -0
- data/doc/src/documentation/contenthandler/html.page +11 -0
- data/doc/src/documentation/contenthandler/index.page +7 -0
- data/doc/src/documentation/contenthandler/markdown.page +11 -0
- data/doc/src/documentation/contenthandler/rdoc.page +11 -0
- data/doc/src/documentation/contenthandler/textile.page +11 -0
- data/doc/src/documentation/extloader.page +1 -1
- data/doc/src/documentation/filehandler/backing.page +1 -1
- data/doc/src/documentation/filehandler/galleryhandler.page +79 -0
- data/doc/src/documentation/filehandler/{page.page → pagehandler.page} +2 -7
- data/doc/src/documentation/gallerylayouter/defaultlayouter.page +12 -0
- data/doc/src/documentation/gallerylayouter/index.page +14 -0
- data/doc/src/documentation/htmlvalidator/index.page +6 -0
- data/doc/src/documentation/htmlvalidator/xmllint.page +14 -0
- data/doc/src/documentation/index.page +33 -6
- data/doc/src/documentation/tags/index.page +2 -2
- data/doc/src/documentation/tags/{lang.de.page → langbar.de.page} +0 -0
- data/doc/src/documentation/tags/{lang.page → langbar.page} +6 -6
- data/doc/src/documentation/tags/menu.page +1 -1
- data/doc/src/documentation/tags/sitemap.page +18 -0
- data/doc/src/download.page +2 -0
- data/doc/src/features.page +4 -4
- data/doc/src/index.page +18 -20
- data/doc/src/meta.info +5 -5
- data/install.rb +1 -1
- data/lib/webgen/configuration.rb +35 -12
- data/lib/webgen/node.rb +9 -3
- data/lib/webgen/plugins/contenthandler/defaultcontenthandler.rb +39 -0
- data/lib/webgen/plugins/{filehandler/pagehandler → contenthandler}/html.rb +4 -7
- data/lib/webgen/plugins/{filehandler/pagehandler → contenthandler}/markdown.rb +4 -7
- data/lib/webgen/plugins/{filehandler/pagehandler → contenthandler}/rdoc.rb +5 -5
- data/lib/webgen/plugins/{filehandler/pagehandler → contenthandler}/textile.rb +4 -7
- data/lib/webgen/plugins/filehandler/backing.rb +4 -4
- data/lib/webgen/plugins/filehandler/directory.rb +25 -3
- data/lib/webgen/plugins/filehandler/filecopy.rb +4 -2
- data/lib/webgen/plugins/filehandler/filehandler.rb +5 -8
- data/lib/webgen/plugins/filehandler/{pagehandler/page.rb → page.rb} +48 -32
- data/lib/webgen/plugins/filehandler/picturegallery.rb +70 -51
- data/lib/webgen/plugins/gallerylayouter/defaultgallerylayouter.rb +152 -0
- data/lib/webgen/plugins/htmlvalidator/defaulthtmlvalidator.rb +37 -0
- data/lib/webgen/plugins/htmlvalidator/xmllint.rb +70 -0
- data/lib/webgen/plugins/tags/{lang.rb → langbar.rb} +3 -3
- data/lib/webgen/plugins/tags/menu.rb +9 -13
- data/lib/webgen/plugins/tags/relocatable.rb +2 -2
- data/lib/webgen/plugins/tags/sitemap.rb +73 -0
- data/lib/webgen/plugins/tags/tags.rb +9 -9
- data/lib/webgen/plugins/treewalker.rb +2 -2
- data/testsite/src/{images/bghack.png → bghack.png} +0 -0
- metadata +33 -20
- data/doc/src/designs/default.png +0 -0
- data/doc/src/documentation/filehandler/picturegallery.page +0 -25
- data/testsite/src/images/o.png +0 -0
- data/testsite/src/images/smagacor.png +0 -0
- data/testsite/src/images/tictactoe.png +0 -0
- data/testsite/src/images/x.png +0 -0
- data/testsite/src/test.gallery +0 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#
|
|
2
|
+
#--
|
|
3
|
+
#
|
|
4
|
+
# $Id: defaulthtmlvalidator.rb 214 2005-02-27 13:40:27Z thomas $
|
|
5
|
+
#
|
|
6
|
+
# webgen: template based static website generator
|
|
7
|
+
# Copyright (C) 2004 Thomas Leitner
|
|
8
|
+
#
|
|
9
|
+
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
|
10
|
+
# General Public License as published by the Free Software Foundation; either version 2 of the
|
|
11
|
+
# License, or (at your option) any later version.
|
|
12
|
+
#
|
|
13
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
|
14
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
15
|
+
# General Public License for more details.
|
|
16
|
+
#
|
|
17
|
+
# You should have received a copy of the GNU General Public License along with this program; if not,
|
|
18
|
+
# write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
19
|
+
#
|
|
20
|
+
#++
|
|
21
|
+
#
|
|
22
|
+
|
|
23
|
+
module HTMLValidators
|
|
24
|
+
|
|
25
|
+
class DefaultHTMLValidator < Webgen::Plugin
|
|
26
|
+
|
|
27
|
+
summary "Base class for all HTML validators"
|
|
28
|
+
|
|
29
|
+
define_handler 'validator'
|
|
30
|
+
|
|
31
|
+
# Should be overridden in subclass!
|
|
32
|
+
def validate_file( filename )
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#
|
|
2
|
+
#--
|
|
3
|
+
#
|
|
4
|
+
# $Id: xmllint.rb 216 2005-02-27 14:06:09Z thomas $
|
|
5
|
+
#
|
|
6
|
+
# webgen: template based static website generator
|
|
7
|
+
# Copyright (C) 2004 Thomas Leitner
|
|
8
|
+
#
|
|
9
|
+
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
|
10
|
+
# General Public License as published by the Free Software Foundation; either version 2 of the
|
|
11
|
+
# License, or (at your option) any later version.
|
|
12
|
+
#
|
|
13
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
|
14
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
15
|
+
# General Public License for more details.
|
|
16
|
+
#
|
|
17
|
+
# You should have received a copy of the GNU General Public License along with this program; if not,
|
|
18
|
+
# write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
19
|
+
#
|
|
20
|
+
#++
|
|
21
|
+
#
|
|
22
|
+
|
|
23
|
+
require 'webgen/plugins/htmlvalidator/defaulthtmlvalidator'
|
|
24
|
+
require "tempfile"
|
|
25
|
+
|
|
26
|
+
# Allows one to get stdout and stderr from an executed command. Original version
|
|
27
|
+
# by Karl von Laudermann in ruby-talk #113035
|
|
28
|
+
class ExtendedCommand
|
|
29
|
+
|
|
30
|
+
attr_reader :ret_code, :out_text, :err_text
|
|
31
|
+
|
|
32
|
+
def initialize( command )
|
|
33
|
+
tempfile = Tempfile.new( 'xmllint' )
|
|
34
|
+
tempfile.close # So that child process can write to it
|
|
35
|
+
|
|
36
|
+
# Execute command, redirecting stderr to temp file
|
|
37
|
+
@out_text = `#{command} 2> #{tempfile.path}`
|
|
38
|
+
@ret_code = $? >> 8
|
|
39
|
+
|
|
40
|
+
# Read temp file
|
|
41
|
+
tempfile.open
|
|
42
|
+
@err_text = tempfile.readlines.join
|
|
43
|
+
tempfile.close
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
module HTMLValidators
|
|
49
|
+
|
|
50
|
+
class XmllintHTMLValidator < DefaultHTMLValidator
|
|
51
|
+
|
|
52
|
+
summary "Uses xmllint to check if a file is valid and well-formed"
|
|
53
|
+
|
|
54
|
+
add_param "args", '--catalogs --noout --valid', 'Arguments passed to the xmllint command'
|
|
55
|
+
register_validator 'xmllint'
|
|
56
|
+
|
|
57
|
+
def validate_file( filename )
|
|
58
|
+
cmd = ExtendedCommand.new( "xmllint #{get_param( 'args' )} #{filename}" )
|
|
59
|
+
case cmd.ret_code
|
|
60
|
+
when 0
|
|
61
|
+
when 1..10
|
|
62
|
+
self.logger.warn { "xmllint was run on <#{filename}>, exited with the return code #{cmd.ret_code} and the error message: \n#{cmd.err_text}" }
|
|
63
|
+
else
|
|
64
|
+
self.logger.error { "Error running xmllint:\n#{cmd.err_text}" }
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
#--
|
|
3
3
|
#
|
|
4
|
-
# $Id:
|
|
4
|
+
# $Id: langbar.rb 223 2005-03-16 14:10:57Z thomas $
|
|
5
5
|
#
|
|
6
6
|
# webgen: template based static website generator
|
|
7
7
|
# Copyright (C) 2004 Thomas Leitner
|
|
@@ -25,7 +25,7 @@ require 'webgen/plugins/tags/tags'
|
|
|
25
25
|
module Tags
|
|
26
26
|
|
|
27
27
|
# Generates a list with all the languages for a page.
|
|
28
|
-
class
|
|
28
|
+
class LanguageBarTag < DefaultTag
|
|
29
29
|
|
|
30
30
|
summary 'Provides links to translations of the page'
|
|
31
31
|
add_param 'separator', ' | ', 'Separates the languages from each other.'
|
|
@@ -35,7 +35,7 @@ module Tags
|
|
|
35
35
|
|
|
36
36
|
def initialize
|
|
37
37
|
super
|
|
38
|
-
register_tag( '
|
|
38
|
+
register_tag( 'langbar' )
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def process_tag( tag, node, refNode )
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
#--
|
|
3
3
|
#
|
|
4
|
-
# $Id: menu.rb
|
|
4
|
+
# $Id: menu.rb 223 2005-03-16 14:10:57Z thomas $
|
|
5
5
|
#
|
|
6
6
|
# webgen: template based static website generator
|
|
7
7
|
# Copyright (C) 2004 Thomas Leitner
|
|
@@ -79,11 +79,13 @@ module Tags
|
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
summary 'Builds
|
|
82
|
+
summary 'Builds a menu'
|
|
83
83
|
depends_on 'Tags'
|
|
84
84
|
|
|
85
|
-
add_param 'menuTag', 'ul', 'The tag used for
|
|
85
|
+
add_param 'menuTag', 'ul', 'The tag used for submenus.'
|
|
86
86
|
add_param 'itemTag', 'li', 'The tag used for menu items.'
|
|
87
|
+
add_param 'submenuClass', 'webgen-submenu', 'Specifies the class of a submenu'
|
|
88
|
+
add_param 'selectedMenuitemClass', 'webgen-menuitem-selected', 'Specifies the class of the selected menu item'
|
|
87
89
|
add_param 'level', 1, \
|
|
88
90
|
'Specifies how many levels the menu should have by default, ie. how deep it is. ' \
|
|
89
91
|
'For example, if level = 3, then three levels are always shown at least.'
|
|
@@ -153,20 +155,14 @@ module Tags
|
|
|
153
155
|
isDir = node.kind_of?( FileHandlers::DirHandler::DirNode )
|
|
154
156
|
|
|
155
157
|
styles = []
|
|
156
|
-
styles << '
|
|
157
|
-
styles << '
|
|
158
|
+
styles << get_param( 'submenuClass' ) if isDir
|
|
159
|
+
styles << get_param( 'selectedMenuitemClass' ) if langNode.recursive_value( 'dest' ) == srcNode.recursive_value( 'dest' )
|
|
158
160
|
|
|
159
161
|
style = " class=\"#{styles.join(' ')}\"" if styles.length > 0
|
|
160
162
|
link = langNode['processor'].get_html_link( langNode, srcNode, ( isDir ? langNode['directoryName'] || node['directoryName'] : langNode['title'] ) )
|
|
161
163
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
before = "<#{itemTag}#{style}>#{link}"
|
|
165
|
-
after = "</#{itemTag}>"
|
|
166
|
-
else
|
|
167
|
-
before = "<#{itemTag}#{style}>#{link}</#{itemTag}>"
|
|
168
|
-
after = ""
|
|
169
|
-
end
|
|
164
|
+
before = "<#{get_param( 'itemTag' )}#{style}>#{link}"
|
|
165
|
+
after = "</#{get_param( 'itemTag' )}>"
|
|
170
166
|
|
|
171
167
|
self.logger.debug { [before, after] }
|
|
172
168
|
return before, after
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
#--
|
|
3
3
|
#
|
|
4
|
-
# $Id: relocatable.rb
|
|
4
|
+
# $Id: relocatable.rb 224 2005-03-16 15:26:33Z thomas $
|
|
5
5
|
#
|
|
6
6
|
# webgen: template based static website generator
|
|
7
7
|
# Copyright (C) 2004 Thomas Leitner
|
|
@@ -47,7 +47,7 @@ module Tags
|
|
|
47
47
|
def process_tag( tag, node, refNode )
|
|
48
48
|
unless get_param( 'item' ).nil?
|
|
49
49
|
destNode = refNode.node_for_string( get_param( 'item' ) )
|
|
50
|
-
return ( destNode.nil? ? '' : node.relpath_to_node( destNode['processor'].get_lang_node( destNode, node['lang'] ) ) )
|
|
50
|
+
return ( destNode.nil? ? '' : node.relpath_to_node( destNode['node:isLangNode'] ? destNode : destNode['processor'].get_lang_node( destNode, node['lang'] ) ) )
|
|
51
51
|
else
|
|
52
52
|
return ''
|
|
53
53
|
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#
|
|
2
|
+
#--
|
|
3
|
+
#
|
|
4
|
+
# $Id: sitemap.rb 211 2005-02-26 17:23:20Z thomas $
|
|
5
|
+
#
|
|
6
|
+
# webgen: template based static website generator
|
|
7
|
+
# Copyright (C) 2004 Thomas Leitner
|
|
8
|
+
#
|
|
9
|
+
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
|
10
|
+
# General Public License as published by the Free Software Foundation; either version 2 of the
|
|
11
|
+
# License, or (at your option) any later version.
|
|
12
|
+
#
|
|
13
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
|
14
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
15
|
+
# General Public License for more details.
|
|
16
|
+
#
|
|
17
|
+
# You should have received a copy of the GNU General Public License along with this program; if not,
|
|
18
|
+
# write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
19
|
+
#
|
|
20
|
+
#++
|
|
21
|
+
#
|
|
22
|
+
|
|
23
|
+
require 'webgen/plugins/tags/tags'
|
|
24
|
+
|
|
25
|
+
module Tags
|
|
26
|
+
|
|
27
|
+
# Generates a sitemap. The sitemap contains the hierarchy of all pages on the web site.
|
|
28
|
+
class SitemapTag < DefaultTag
|
|
29
|
+
|
|
30
|
+
summary 'Shows all pages of the website'
|
|
31
|
+
add_param 'levelTag', 'ul', 'The tag used for creating a new hierarchy level.'
|
|
32
|
+
add_param 'itemTag', 'li', 'The tag used for pages.'
|
|
33
|
+
depends_on 'Tags'
|
|
34
|
+
|
|
35
|
+
def initialize
|
|
36
|
+
super
|
|
37
|
+
register_tag( 'sitemap' )
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def process_tag( tag, srcNode, refNode )
|
|
41
|
+
root = Node.root( srcNode )
|
|
42
|
+
output_node( root, srcNode )
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
#######
|
|
46
|
+
private
|
|
47
|
+
#######
|
|
48
|
+
|
|
49
|
+
def output_node( node, srcNode )
|
|
50
|
+
return '' if not node.find {|c| c.kind_of?( FileHandlers::DirHandler::DirNode ) || c.kind_of?( FileHandlers::PageHandler::PageNode ) }
|
|
51
|
+
|
|
52
|
+
out = "<#{get_param( 'levelTag' )}>"
|
|
53
|
+
node.each do |child|
|
|
54
|
+
next unless child.kind_of?( FileHandlers::DirHandler::DirNode ) || child.kind_of?( FileHandlers::PageHandler::PageNode )
|
|
55
|
+
|
|
56
|
+
isDir = child.kind_of?( FileHandlers::DirHandler::DirNode )
|
|
57
|
+
subout = output_node( child, srcNode )
|
|
58
|
+
if subout != '' || !isDir
|
|
59
|
+
langNode = child['processor'].get_lang_node( child, srcNode['lang'] )
|
|
60
|
+
link = langNode['processor'].get_html_link( langNode, srcNode, ( isDir ? langNode['directoryName'] || child['directoryName'] : langNode['title'] ) )
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
out += "<#{get_param( 'itemTag' )}>#{link}" if !isDir || subout != ''
|
|
64
|
+
out += subout if isDir
|
|
65
|
+
out += "</#{get_param( 'itemTag' )}>" if !isDir || subout != ''
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
out += "</#{get_param( 'levelTag' )}>"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
#--
|
|
3
3
|
#
|
|
4
|
-
# $Id: tags.rb
|
|
4
|
+
# $Id: tags.rb 223 2005-03-16 14:10:57Z thomas $
|
|
5
5
|
#
|
|
6
6
|
# webgen: template based static website generator
|
|
7
7
|
# Copyright (C) 2004 Thomas Leitner
|
|
@@ -93,7 +93,7 @@ module Tags
|
|
|
93
93
|
newContent += content[index + $1.length, length - $1.length]
|
|
94
94
|
else
|
|
95
95
|
tagHeaderLength = $1.length + tag.length + 2
|
|
96
|
-
realContent = content[index + tagHeaderLength, length - tagHeaderLength - 1]
|
|
96
|
+
realContent = content[index + tagHeaderLength, length - tagHeaderLength - 1].lstrip
|
|
97
97
|
newContent += yield( tag, realContent )
|
|
98
98
|
end
|
|
99
99
|
content[index, length] = newContent
|
|
@@ -140,18 +140,18 @@ module Tags
|
|
|
140
140
|
# will be assigned to the default mandatory parameter. There *should* be only one default
|
|
141
141
|
# mandatory parameter.
|
|
142
142
|
def self.set_mandatory( param, default = false )
|
|
143
|
-
if Webgen::Plugin.config[self
|
|
143
|
+
if Webgen::Plugin.config[self].params.nil? || !Webgen::Plugin.config[self].params.has_key?( param )
|
|
144
144
|
self.logger.error { "Cannot set parameter #{param} as mandatory as this parameter does not exist for #{self.name}" }
|
|
145
145
|
else
|
|
146
|
-
Webgen::Plugin.config[self
|
|
147
|
-
Webgen::Plugin.config[self
|
|
146
|
+
Webgen::Plugin.config[self].params[param].mandatory = true
|
|
147
|
+
Webgen::Plugin.config[self].params[param].mandatoryDefault = default
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
# Register +tag+ at the Tags plugin.
|
|
152
152
|
def register_tag( tag )
|
|
153
153
|
Webgen::Plugin['Tags'].tags[tag] = self
|
|
154
|
-
Webgen::Plugin.config[self.class
|
|
154
|
+
Webgen::Plugin.config[self.class].tag = tag
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# Set the configuration parameters for the next #process_tag call. The configuration, if
|
|
@@ -211,7 +211,7 @@ module Tags
|
|
|
211
211
|
|
|
212
212
|
# Set the default mandatory parameter.
|
|
213
213
|
def set_default_mandatory_param( value )
|
|
214
|
-
data = Webgen::Plugin.config[self.class
|
|
214
|
+
data = Webgen::Plugin.config[self.class]
|
|
215
215
|
key = data.params.detect {|k,v| v.mandatoryDefault} unless data.params.nil?
|
|
216
216
|
if key.nil?
|
|
217
217
|
self.logger.error { "Default mandatory parameter not specified for tag '#{self.class.name}'"}
|
|
@@ -222,13 +222,13 @@ module Tags
|
|
|
222
222
|
|
|
223
223
|
# Check if this tag has mandatory parameters.
|
|
224
224
|
def has_mandatory_params?
|
|
225
|
-
data = Webgen::Plugin.config[self.class
|
|
225
|
+
data = Webgen::Plugin.config[self.class]
|
|
226
226
|
!data.params.nil? && data.params.any? {|k,v| v.mandatory }
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
# Check if all mandatory parameters have been set
|
|
230
230
|
def all_mandatory_params_set?
|
|
231
|
-
params = Webgen::Plugin.config[self.class
|
|
231
|
+
params = Webgen::Plugin.config[self.class].params
|
|
232
232
|
( params.nil? ? true : params.all? { |k,v| !v.mandatory || @curConfig.has_key?( k ) } )
|
|
233
233
|
end
|
|
234
234
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
#--
|
|
3
3
|
#
|
|
4
|
-
# $Id: treewalker.rb
|
|
4
|
+
# $Id: treewalker.rb 218 2005-03-11 15:41:39Z thomas $
|
|
5
5
|
#
|
|
6
6
|
# webgen: template based static website generator
|
|
7
7
|
# Copyright (C) 2004 Thomas Leitner
|
|
@@ -28,7 +28,7 @@ module TreeWalkers
|
|
|
28
28
|
# so that it is called when the main class' #execute method is called.
|
|
29
29
|
class TreeWalker < Webgen::Plugin
|
|
30
30
|
|
|
31
|
-
summary "Super plugin for
|
|
31
|
+
summary "Super plugin for traversing the data tree"
|
|
32
32
|
|
|
33
33
|
attr_reader :walkers
|
|
34
34
|
|
|
File without changes
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: webgen
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.3.
|
|
7
|
-
date: 2005-
|
|
6
|
+
version: 0.3.1
|
|
7
|
+
date: 2005-03-16
|
|
8
8
|
summary: Webgen is a templated based static website generator.
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
@@ -46,40 +46,44 @@ files:
|
|
|
46
46
|
- lib/webgen/plugins/treewalker.rb
|
|
47
47
|
- lib/webgen/plugins/tags/date.rb
|
|
48
48
|
- lib/webgen/plugins/tags/executecommand.rb
|
|
49
|
-
- lib/webgen/plugins/tags/lang.rb
|
|
50
49
|
- lib/webgen/plugins/tags/navbar.rb
|
|
51
50
|
- lib/webgen/plugins/tags/wikilink.rb
|
|
52
51
|
- lib/webgen/plugins/tags/tags.rb
|
|
53
52
|
- lib/webgen/plugins/tags/menu.rb
|
|
54
53
|
- lib/webgen/plugins/tags/meta.rb
|
|
55
54
|
- lib/webgen/plugins/tags/includefile.rb
|
|
55
|
+
- lib/webgen/plugins/tags/sitemap.rb
|
|
56
|
+
- lib/webgen/plugins/tags/langbar.rb
|
|
56
57
|
- lib/webgen/plugins/tags/relocatable.rb
|
|
58
|
+
- lib/webgen/plugins/contenthandler/rdoc.rb
|
|
59
|
+
- lib/webgen/plugins/contenthandler/textile.rb
|
|
60
|
+
- lib/webgen/plugins/contenthandler/markdown.rb
|
|
61
|
+
- lib/webgen/plugins/contenthandler/defaultcontenthandler.rb
|
|
62
|
+
- lib/webgen/plugins/contenthandler/html.rb
|
|
57
63
|
- lib/webgen/plugins/filehandler/picturegallery.rb
|
|
58
64
|
- lib/webgen/plugins/filehandler/backing.rb
|
|
59
65
|
- lib/webgen/plugins/filehandler/template.rb
|
|
60
66
|
- lib/webgen/plugins/filehandler/directory.rb
|
|
67
|
+
- lib/webgen/plugins/filehandler/page.rb
|
|
61
68
|
- lib/webgen/plugins/filehandler/filecopy.rb
|
|
62
69
|
- lib/webgen/plugins/filehandler/filehandler.rb
|
|
63
|
-
- lib/webgen/plugins/
|
|
64
|
-
- lib/webgen/plugins/
|
|
65
|
-
- lib/webgen/plugins/
|
|
66
|
-
- lib/webgen/plugins/filehandler/pagehandler/page.rb
|
|
67
|
-
- lib/webgen/plugins/filehandler/pagehandler/html.rb
|
|
70
|
+
- lib/webgen/plugins/gallerylayouter/defaultgallerylayouter.rb
|
|
71
|
+
- lib/webgen/plugins/htmlvalidator/defaulthtmlvalidator.rb
|
|
72
|
+
- lib/webgen/plugins/htmlvalidator/xmllint.rb
|
|
68
73
|
- testsite/src
|
|
69
74
|
- testsite/config.yaml
|
|
70
75
|
- testsite/src/bluecloth.page
|
|
71
76
|
- testsite/src/news_are_so-cool.de.page
|
|
72
77
|
- testsite/src/default.css
|
|
73
78
|
- testsite/src/projects.es.page
|
|
79
|
+
- testsite/src/bghack.png
|
|
74
80
|
- testsite/src/projects.page
|
|
75
81
|
- testsite/src/rdoc.page
|
|
76
82
|
- testsite/src/pictures
|
|
77
83
|
- testsite/src/index.page
|
|
78
|
-
- testsite/src/images
|
|
79
84
|
- testsite/src/default.template
|
|
80
85
|
- testsite/src/noindex
|
|
81
86
|
- testsite/src/meta.info
|
|
82
|
-
- testsite/src/test.gallery
|
|
83
87
|
- testsite/src/projects
|
|
84
88
|
- testsite/src/home.page
|
|
85
89
|
- testsite/src/projects.de.page
|
|
@@ -87,11 +91,6 @@ files:
|
|
|
87
91
|
- testsite/src/home.en.page
|
|
88
92
|
- testsite/src/redcloth.page
|
|
89
93
|
- testsite/src/pictures/index.page
|
|
90
|
-
- testsite/src/images/o.png
|
|
91
|
-
- testsite/src/images/x.png
|
|
92
|
-
- testsite/src/images/tictactoe.png
|
|
93
|
-
- testsite/src/images/bghack.png
|
|
94
|
-
- testsite/src/images/smagacor.png
|
|
95
94
|
- testsite/src/noindex/noindex.page
|
|
96
95
|
- testsite/src/projects/05.project3.page
|
|
97
96
|
- testsite/src/projects/index.page
|
|
@@ -107,41 +106,55 @@ files:
|
|
|
107
106
|
- doc/src/default.css
|
|
108
107
|
- doc/src/features.page
|
|
109
108
|
- doc/src/index.page
|
|
109
|
+
- doc/src/about.page
|
|
110
110
|
- doc/src/documentation
|
|
111
111
|
- doc/src/download.page
|
|
112
112
|
- doc/src/design.gallery
|
|
113
113
|
- doc/src/default.template
|
|
114
114
|
- doc/src/meta.info
|
|
115
115
|
- doc/src/logo.png
|
|
116
|
-
- doc/src/designs/
|
|
116
|
+
- doc/src/designs/curdesign.png
|
|
117
117
|
- doc/src/designs/nostyle.png
|
|
118
118
|
- doc/src/designs/old.png
|
|
119
119
|
- doc/src/documentation/tags
|
|
120
|
+
- doc/src/documentation/contenthandler
|
|
120
121
|
- doc/src/documentation/extloader.page
|
|
121
122
|
- doc/src/documentation/index.page
|
|
122
123
|
- doc/src/documentation/filehandler
|
|
124
|
+
- doc/src/documentation/gallerylayouter
|
|
125
|
+
- doc/src/documentation/htmlvalidator
|
|
123
126
|
- doc/src/documentation/tags/multilang.fr.page
|
|
124
127
|
- doc/src/documentation/tags/multilang.page
|
|
125
128
|
- doc/src/documentation/tags/menu.page
|
|
126
129
|
- doc/src/documentation/tags/relocatable.page
|
|
127
|
-
- doc/src/documentation/tags/lang.de.page
|
|
128
130
|
- doc/src/documentation/tags/date.page
|
|
129
131
|
- doc/src/documentation/tags/executecommand.page
|
|
130
132
|
- doc/src/documentation/tags/menu.de.page
|
|
131
133
|
- doc/src/documentation/tags/index.page
|
|
134
|
+
- doc/src/documentation/tags/langbar.page
|
|
132
135
|
- doc/src/documentation/tags/navbar.page
|
|
136
|
+
- doc/src/documentation/tags/sitemap.page
|
|
133
137
|
- doc/src/documentation/tags/multilang.de.page
|
|
134
138
|
- doc/src/documentation/tags/meta.page
|
|
139
|
+
- doc/src/documentation/tags/langbar.de.page
|
|
135
140
|
- doc/src/documentation/tags/wikilink.page
|
|
136
|
-
- doc/src/documentation/tags/lang.page
|
|
137
141
|
- doc/src/documentation/tags/includefile.page
|
|
142
|
+
- doc/src/documentation/contenthandler/html.page
|
|
143
|
+
- doc/src/documentation/contenthandler/rdoc.page
|
|
144
|
+
- doc/src/documentation/contenthandler/index.page
|
|
145
|
+
- doc/src/documentation/contenthandler/textile.page
|
|
146
|
+
- doc/src/documentation/contenthandler/markdown.page
|
|
138
147
|
- doc/src/documentation/filehandler/template.page
|
|
139
148
|
- doc/src/documentation/filehandler/directory.page
|
|
140
|
-
- doc/src/documentation/filehandler/
|
|
141
|
-
- doc/src/documentation/filehandler/picturegallery.page
|
|
149
|
+
- doc/src/documentation/filehandler/galleryhandler.page
|
|
142
150
|
- doc/src/documentation/filehandler/index.page
|
|
151
|
+
- doc/src/documentation/filehandler/pagehandler.page
|
|
143
152
|
- doc/src/documentation/filehandler/copy.page
|
|
144
153
|
- doc/src/documentation/filehandler/backing.page
|
|
154
|
+
- doc/src/documentation/gallerylayouter/defaultlayouter.page
|
|
155
|
+
- doc/src/documentation/gallerylayouter/index.page
|
|
156
|
+
- doc/src/documentation/htmlvalidator/index.page
|
|
157
|
+
- doc/src/documentation/htmlvalidator/xmllint.page
|
|
145
158
|
test_files: []
|
|
146
159
|
rdoc_options:
|
|
147
160
|
- "--line-numbers"
|