webgen 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +870 -0
- data/Rakefile +37 -36
- data/VERSION +1 -1
- data/data/webgen/resources.yaml +2 -2
- data/data/webgen/webgui/app.rb +11 -0
- data/data/webgen/webgui/controller/main.rb +30 -26
- data/data/webgen/webgui/{view/page.xhtml → layout/default.xhtml} +8 -8
- data/data/webgen/webgui/start.rb +9 -0
- data/data/webgen/webgui/view/create_website.xhtml +6 -14
- data/data/webgen/webgui/view/manage_website.xhtml +2 -2
- data/data/webgen/website_bundles/default/README +6 -0
- data/data/webgen/website_bundles/default/src/index.page +15 -0
- data/data/webgen/{website_styles → website_bundles/style}/1024px/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/1024px/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/1024px/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/1024px/src/images/background.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas00/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/bg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/front.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/menubg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/menubg2.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas01/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/images/bg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/images/front.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/print.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/bodybg.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/contbg.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/footerbg.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/gradient1.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/gradient2.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/blinkarrow.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/bodybg.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/contentbg.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/entrybg.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/flash.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/flash2.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/globe.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/globebottom.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/linkarrow.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/menuhover.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas05/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/images/bodybg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/images/front.png +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/default.css +6 -4
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/default.template +2 -2
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/bodybg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/boxbg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/greypx.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/header.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/innerbg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/leaves.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/tabs.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas07/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/browserfix.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/images/bodybg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/images/sidebarbg.gif +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas08/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas08/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas08/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/default.template +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-black.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-green.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-orange.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-purple.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-red.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/footerbg.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-black.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-green.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-orange.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-purple.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-red.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover.jpg +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/simple/README +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/simple/src/default.css +0 -0
- data/data/webgen/{website_styles → website_bundles/style}/simple/src/default.template +0 -0
- data/data/webgen/website_skeleton/README +1 -1
- data/data/webgen/website_skeleton/config.yaml +5 -4
- data/doc/contentprocessor/blocks.page +43 -10
- data/doc/contentprocessor/builder.page +1 -1
- data/doc/contentprocessor/erb.page +12 -11
- data/doc/contentprocessor/redcloth.page +3 -1
- data/doc/extensions.page +3 -3
- data/doc/faq.page +13 -10
- data/doc/getting_started.page +12 -15
- data/doc/index.page +7 -1
- data/doc/manual.page +78 -27
- data/doc/reference_configuration.page +166 -3
- data/doc/reference_website_styles.page +28 -0
- data/doc/source/filesystem.page +39 -0
- data/doc/source/tararchive.page +40 -0
- data/doc/tag/tikz.page +2 -1
- data/doc/webgen_page_format.page +13 -12
- data/doc/website_styles.metainfo +8 -0
- data/lib/webgen/blackboard.rb +2 -2
- data/lib/webgen/cache.rb +4 -4
- data/lib/webgen/cli.rb +29 -16
- data/lib/webgen/cli/apply_command.rb +66 -0
- data/lib/webgen/cli/create_command.rb +22 -16
- data/lib/webgen/cli/utils.rb +23 -0
- data/lib/webgen/cli/webgui_command.rb +31 -16
- data/lib/webgen/configuration.rb +8 -6
- data/lib/webgen/contentprocessor.rb +4 -5
- data/lib/webgen/contentprocessor/blocks.rb +2 -0
- data/lib/webgen/contentprocessor/builder.rb +6 -3
- data/lib/webgen/contentprocessor/erb.rb +6 -3
- data/lib/webgen/contentprocessor/erubis.rb +7 -6
- data/lib/webgen/contentprocessor/haml.rb +6 -3
- data/lib/webgen/contentprocessor/rdoc.rb +0 -1
- data/lib/webgen/contentprocessor/redcloth.rb +3 -1
- data/lib/webgen/context.rb +73 -0
- data/lib/webgen/context/nodes.rb +36 -0
- data/lib/webgen/coreext.rb +3 -2
- data/lib/webgen/default_config.rb +3 -1
- data/lib/webgen/deprecated.rb +53 -0
- data/lib/webgen/node.rb +24 -19
- data/lib/webgen/output.rb +50 -7
- data/lib/webgen/page.rb +45 -36
- data/lib/webgen/path.rb +1 -1
- data/lib/webgen/source.rb +32 -4
- data/lib/webgen/source/resource.rb +3 -3
- data/lib/webgen/source/stacked.rb +1 -1
- data/lib/webgen/source/tararchive.rb +73 -0
- data/lib/webgen/sourcehandler.rb +4 -4
- data/lib/webgen/sourcehandler/base.rb +36 -24
- data/lib/webgen/sourcehandler/copy.rb +1 -1
- data/lib/webgen/sourcehandler/feed.rb +2 -2
- data/lib/webgen/sourcehandler/fragment.rb +1 -1
- data/lib/webgen/sourcehandler/metainfo.rb +15 -6
- data/lib/webgen/sourcehandler/page.rb +9 -5
- data/lib/webgen/sourcehandler/virtual.rb +44 -7
- data/lib/webgen/tag/base.rb +19 -13
- data/lib/webgen/tag/link.rb +1 -0
- data/lib/webgen/version.rb +1 -1
- data/lib/webgen/webgentask.rb +15 -13
- data/lib/webgen/website.rb +42 -11
- data/lib/webgen/websiteaccess.rb +1 -1
- data/lib/webgen/websitemanager.rb +61 -66
- data/man/man1/webgen.1 +4 -0
- data/misc/default.css +13 -0
- data/misc/default.template +1 -1
- data/misc/htmldoc.metainfo +2 -1
- data/misc/style.page +33 -0
- data/test/test_cli.rb +1 -7
- data/test/test_common_sitemap.rb +2 -2
- data/test/test_contentprocessor_blocks.rb +14 -1
- data/test/test_contentprocessor_builder.rb +3 -1
- data/test/test_contentprocessor_erb.rb +3 -2
- data/test/test_contentprocessor_erubis.rb +3 -3
- data/test/test_contentprocessor_fragments.rb +3 -3
- data/test/test_contentprocessor_haml.rb +3 -2
- data/test/test_contentprocessor_maruku.rb +3 -3
- data/test/test_contentprocessor_rdiscount.rb +1 -1
- data/test/test_contentprocessor_rdoc.rb +1 -1
- data/test/test_contentprocessor_redcloth.rb +9 -2
- data/test/test_contentprocessor_sass.rb +1 -1
- data/test/test_contentprocessor_tags.rb +1 -1
- data/test/{test_contentprocessor_context.rb → test_context.rb} +9 -7
- data/test/test_node.rb +27 -21
- data/test/test_page.rb +4 -4
- data/test/test_source_tararchive.rb +65 -0
- data/test/test_sourcehandler_fragment.rb +1 -1
- data/test/test_sourcehandler_memory.rb +6 -6
- data/test/test_sourcehandler_metainfo.rb +34 -13
- data/test/test_sourcehandler_page.rb +8 -0
- data/test/test_sourcehandler_virtual.rb +51 -12
- data/test/test_tag_breadcrumbtrail.rb +4 -4
- data/test/test_tag_coderay.rb +1 -1
- data/test/test_tag_date.rb +1 -1
- data/test/test_tag_executecommand.rb +1 -1
- data/test/test_tag_includefile.rb +3 -3
- data/test/test_tag_langbar.rb +6 -6
- data/test/test_tag_link.rb +8 -2
- data/test/test_tag_menu.rb +9 -9
- data/test/test_tag_metainfo.rb +1 -1
- data/test/test_tag_relocatable.rb +1 -1
- data/test/test_tag_sitemap.rb +1 -1
- data/test/test_tag_tikz.rb +2 -2
- data/test/test_website.rb +17 -0
- data/test/test_websitemanager.rb +16 -21
- metadata +146 -187
- data/data/webgen/website_templates/default/README +0 -6
- data/data/webgen/website_templates/default/src/index.page +0 -8
- data/data/webgen/website_templates/project/README +0 -5
- data/data/webgen/website_templates/project/src/about.page +0 -12
- data/data/webgen/website_templates/project/src/download.page +0 -15
- data/data/webgen/website_templates/project/src/features.page +0 -8
- data/data/webgen/website_templates/project/src/index.page +0 -9
- data/data/webgen/website_templates/project/src/screenshots.page +0 -18
- data/lib/webgen/contentprocessor/context.rb +0 -89
@@ -2,6 +2,36 @@
|
|
2
2
|
title: Configuration Option Reference
|
3
3
|
in_menu: false
|
4
4
|
---
|
5
|
+
<%
|
6
|
+
def convert_proc(data, indent)
|
7
|
+
res = if data.kind_of?(Array)
|
8
|
+
data.inspect
|
9
|
+
elsif data.kind_of?(String)
|
10
|
+
(data.empty? ? '""' : data)
|
11
|
+
elsif data.kind_of?(Hash)
|
12
|
+
res = data.collect do |k,v|
|
13
|
+
if v.kind_of?(Hash)
|
14
|
+
k.to_s + ":\n" + convert_proc(v, 2)
|
15
|
+
else
|
16
|
+
k.to_s + ": " + convert_proc(v, 0)
|
17
|
+
end
|
18
|
+
end.join("\n")
|
19
|
+
(res.empty? ? "{}" : res)
|
20
|
+
elsif data.kind_of?(NilClass)
|
21
|
+
"~"
|
22
|
+
else
|
23
|
+
data.inspect
|
24
|
+
end
|
25
|
+
res.split("\n").collect {|l| ' '*indent + l}.join("\n")
|
26
|
+
end
|
27
|
+
|
28
|
+
require 'tmpdir'
|
29
|
+
ws = Webgen::Website.new(File.join(Dir.tmpdir, 'webgen' + Process.pid.to_s))
|
30
|
+
ws.init
|
31
|
+
show_default = lambda do |option|
|
32
|
+
"* Default value:\n\n#{convert_proc(ws.config[option], 10)}\n"
|
33
|
+
end
|
34
|
+
%>
|
5
35
|
|
6
36
|
# Configuration Option Reference
|
7
37
|
|
@@ -23,6 +53,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
23
53
|
|
24
54
|
* Syntax: `LANGUAGE` where `LANGUAGE` is a ISO-639-1/2 two or three letter language code
|
25
55
|
|
56
|
+
<%= show_default['website.lang'] %>
|
57
|
+
|
26
58
|
* Example for setting the option in the configuration file:
|
27
59
|
|
28
60
|
website.lang: de
|
@@ -35,6 +67,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
35
67
|
|
36
68
|
* Syntax: `BOOLEAN` where `BOOLEAN` is `true` or `false`
|
37
69
|
|
70
|
+
<%= show_default['website.link_to_current_page'] %>
|
71
|
+
|
38
72
|
* Example for setting the option in the configuration file:
|
39
73
|
|
40
74
|
website.link_to_current_page: false
|
@@ -49,6 +83,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
49
83
|
|
50
84
|
* Syntax: `[TYPE, LOCATION]` where `TYPE` is one of `:file` or `:string`
|
51
85
|
|
86
|
+
<%= show_default['website.cache'] %>
|
87
|
+
|
52
88
|
* Example for setting the option in the configuration file:
|
53
89
|
|
54
90
|
website.cache: [:file, my.cache]
|
@@ -63,6 +99,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
63
99
|
|
64
100
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
65
101
|
|
102
|
+
<%= show_default['common.sitemap.honor_in_menu'] %>
|
103
|
+
|
66
104
|
* Example for setting the option in the configuration file:
|
67
105
|
|
68
106
|
common.sitemap.honor_in_menu: true
|
@@ -79,6 +117,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
79
117
|
|
80
118
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
81
119
|
|
120
|
+
<%= show_default['common.sitemap.any_lang'] %>
|
121
|
+
|
82
122
|
* Example for setting the option in the configuration file:
|
83
123
|
|
84
124
|
common.sitemap.any_lang: true
|
@@ -95,6 +135,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
95
135
|
|
96
136
|
* Syntax: `[KIND, ...]` where `KIND` is the kind of node that should be used.
|
97
137
|
|
138
|
+
<%= show_default['common.sitemap.used_kinds'] %>
|
139
|
+
|
98
140
|
* Example for setting the option in the configuration file:
|
99
141
|
|
100
142
|
common.sitemap.used_kinds: [asset]
|
@@ -117,10 +159,15 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
117
159
|
`Webgen::Source::FileSystem`) and `ARG1`, `ARG2` and so on are the parameters for the source
|
118
160
|
class. The supported parameters can be found in the documentation for each source class.
|
119
161
|
|
162
|
+
<%= show_default['sources'] %>
|
163
|
+
|
120
164
|
* Example for setting the option in the configuration file:
|
121
165
|
|
122
166
|
sources: [[/, Webgen::Source::FileSystem, src], [/, Webgen::Source::FileSystem, /mnt/pictures, **/*.jpg]
|
123
167
|
|
168
|
+
Also have a look at the [file system source documentation]({relocatable:
|
169
|
+
source/filesystem.html}) for more examples!
|
170
|
+
|
124
171
|
|
125
172
|
* ### output
|
126
173
|
|
@@ -130,6 +177,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
130
177
|
`Webgen::Output::FileSystem`) and `ARG1`, `ARG2` and so on are the parameters for the output
|
131
178
|
class. The supported parameters can be found in the documentation for each output class.
|
132
179
|
|
180
|
+
<%= show_default['output'] %>
|
181
|
+
|
133
182
|
* Example for setting the option in the configuration file:
|
134
183
|
|
135
184
|
output: [Webgen::Output::FileSystem, custom_out]
|
@@ -145,6 +194,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
145
194
|
* Syntax: `\{NAME: [PATTERN, PATTERN, ...], ...}` where `NAME` is the
|
146
195
|
name the name of a source handler and `PATTERN` are one or more path patterns.
|
147
196
|
|
197
|
+
<%= show_default['sourcehandler.patterns'] %>
|
198
|
+
|
148
199
|
* Example for setting the option in `ext/init.rb`:
|
149
200
|
|
150
201
|
config = Webgen::WebsiteAccess.website.config
|
@@ -166,6 +217,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
166
217
|
invocation (source handlers with a lower `ORDER` setting are executed earlier than ones with a
|
167
218
|
higher `ORDER` setting) and `NAME` is the name of a source handler.
|
168
219
|
|
220
|
+
<%= show_default['sourcehandler.invoke'] %>
|
221
|
+
|
169
222
|
* Example for setting the option in `ext/init.rb`:
|
170
223
|
|
171
224
|
config = Webgen::WebsiteAccess.website.config
|
@@ -179,6 +232,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
179
232
|
|
180
233
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
181
234
|
|
235
|
+
<%= show_default['sourcehandler.casefold'] %>
|
236
|
+
|
182
237
|
* Example for setting the option in the configuration file:
|
183
238
|
|
184
239
|
sourcehandler.casefold: true
|
@@ -190,6 +245,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
190
245
|
|
191
246
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
192
247
|
|
248
|
+
<%= show_default['sourcehandler.use_hidden_files'] %>
|
249
|
+
|
193
250
|
* Example for setting the option in the configuration file:
|
194
251
|
|
195
252
|
sourcehandler.use_hidden_files: true
|
@@ -202,6 +259,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
202
259
|
|
203
260
|
* Syntax: `[PATTERN, ...]` where `PATTERN` is a valid path pattern.
|
204
261
|
|
262
|
+
<%= show_default['sourcehandler.ignore'] %>
|
263
|
+
|
205
264
|
* Example for setting the option in the configuration file:
|
206
265
|
|
207
266
|
sourcehandler.ignore: [**/*~, **/CVS/**]
|
@@ -214,6 +273,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
214
273
|
|
215
274
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
216
275
|
|
276
|
+
<%= show_default['sourcehandler.default_lang_in_output_path'] %>
|
277
|
+
|
217
278
|
* Example for setting the option in the configuration file:
|
218
279
|
|
219
280
|
sourcehandler.default_lang_in_output_path: true
|
@@ -228,6 +289,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
228
289
|
* Syntax: `\{NAME: {MI_KEY: MI_VALUE, ...}, ...}` where `NAME` is either the name of a source
|
229
290
|
handler or the special key `:all` which sets default meta info for all source handlers.
|
230
291
|
|
292
|
+
<%= show_default['sourcehandler.default_meta_info'] %>
|
293
|
+
|
231
294
|
* Example for setting the option in the configuration file:
|
232
295
|
|
233
296
|
default_meta_info:
|
@@ -242,7 +305,9 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
242
305
|
Specifies the name of the default template file of a directory. This template is used as
|
243
306
|
fallback when no specific template is specified.
|
244
307
|
|
245
|
-
* Syntax: `PATH` where `PATH` is the absolute localized canonical name of the default template.
|
308
|
+
* Syntax: `PATH` where `PATH` is the (absolute) localized canonical name of the default template.
|
309
|
+
|
310
|
+
<%= show_default['sourcehandler.template.default_template'] %>
|
246
311
|
|
247
312
|
* Example for setting the option in the configuration file:
|
248
313
|
|
@@ -261,6 +326,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
261
326
|
* Syntax: `\{SHORT: NAME, ...}` where `SHORT` is the short name of the content processor class
|
262
327
|
`NAME`.
|
263
328
|
|
329
|
+
<%= show_default['contentprocessor.map'] %>
|
330
|
+
|
264
331
|
* Examples for setting the option in `ext/init.rb`:
|
265
332
|
|
266
333
|
config = Webgen::WebsiteAccess.website.config
|
@@ -274,6 +341,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
274
341
|
|
275
342
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
276
343
|
|
344
|
+
<%= show_default['contentprocessor.erubis.use_pi'] %>
|
345
|
+
|
277
346
|
* Example for setting the option in the configuration file:
|
278
347
|
|
279
348
|
contentprocessor.erubis.use_pi: true
|
@@ -287,11 +356,27 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
287
356
|
* Syntax: `\{KEY: VALUE, ...}` where `KEY` and `VALUE` are key-value pairs of options where
|
288
357
|
`KEY` needs to be a Symbol and not a String.
|
289
358
|
|
359
|
+
<%= show_default['contentprocessor.erubis.options'] %>
|
360
|
+
|
290
361
|
* Example for setting the option in the configuration file:
|
291
362
|
|
292
363
|
contentprocessor.erubis.options: {:trim: true}
|
293
364
|
|
294
365
|
|
366
|
+
* ### contentprocessor.redcloth.hard\_breaks
|
367
|
+
|
368
|
+
Specifies whether hard breaks (i.e. single newlines) in paragraphs are converted to HTML break
|
369
|
+
tags.
|
370
|
+
|
371
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
372
|
+
|
373
|
+
<%= show_default['contentprocessor.redcloth.hard_breaks'] %>
|
374
|
+
|
375
|
+
* Example for setting the option in the configuration file:
|
376
|
+
|
377
|
+
contentprocessor.redcloth.hard_breaks: true
|
378
|
+
|
379
|
+
|
295
380
|
* ### contentprocessor.tags.prefix
|
296
381
|
|
297
382
|
Specifies the optional prefix that is used for tag names to avoid name clashes when another
|
@@ -299,6 +384,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
299
384
|
|
300
385
|
* Syntax: `PREFIX` where `PREFIX` is the prefix name.
|
301
386
|
|
387
|
+
<%= show_default['contentprocessor.tags.prefix'] %>
|
388
|
+
|
302
389
|
* Example for setting the option in the configuration file:
|
303
390
|
|
304
391
|
contentprocessor.tags.prefix: webgen
|
@@ -312,6 +399,8 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
|
|
312
399
|
|
313
400
|
* Syntax: `\{SHORT: NAME, ...}` where `SHORT` is the short name of the tag class `NAME`.
|
314
401
|
|
402
|
+
<%= show_default['contentprocessor.tags.map'] %>
|
403
|
+
|
315
404
|
* Example for setting the option in `ext/init.rb`:
|
316
405
|
|
317
406
|
config = Webgen::WebsiteAccess.website.config
|
@@ -333,6 +422,8 @@ shows how to set the option in the configuration file.
|
|
333
422
|
* Syntax: `SEPARATOR` where `SEPARATOR` is a string (special HTML characters need to be properly
|
334
423
|
escaped)
|
335
424
|
|
425
|
+
<%= show_default['tag.breadcrumbtrail.separator'] %>
|
426
|
+
|
336
427
|
* Example for setting the option in the configuration file:
|
337
428
|
|
338
429
|
tag.breadcrumbtrail.separator: '---'
|
@@ -348,6 +439,8 @@ shows how to set the option in the configuration file.
|
|
348
439
|
|
349
440
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
350
441
|
|
442
|
+
<%= show_default['tag.breadcrumbtrail.omit_index_path'] %>
|
443
|
+
|
351
444
|
* Example for setting the option in the configuration file:
|
352
445
|
|
353
446
|
tag.breadcrumbtrail.omit_index_path: true
|
@@ -373,6 +466,8 @@ shows how to set the option in the configuration file.
|
|
373
466
|
|
374
467
|
* Syntax: `INTEGER` where `INTEGER` is any integer number
|
375
468
|
|
469
|
+
<%= show_default['tag.breadcrumbtrail.start_level'] %>
|
470
|
+
|
376
471
|
* Example for setting the option in the configuration file:
|
377
472
|
|
378
473
|
tag.breadcrumbtrail.start_level: 2
|
@@ -389,6 +484,8 @@ shows how to set the option in the configuration file.
|
|
389
484
|
|
390
485
|
* Syntax: `INTEGER` where `INTEGER` is any integer number
|
391
486
|
|
487
|
+
<%= show_default['tag.breadcrumbtrail.end_level'] %>
|
488
|
+
|
392
489
|
* Example for setting the option in the configuration file:
|
393
490
|
|
394
491
|
tag.breadcrumbtrail.end_level: 2
|
@@ -404,6 +501,8 @@ shows how to set the option in the configuration file.
|
|
404
501
|
|
405
502
|
* Syntax: `LANG` where `LANG` is one of <%= (require 'coderay'; CodeRay::Scanners.list.map {|n| '`' + n + '`'}.join(', ')) %>.
|
406
503
|
|
504
|
+
<%= show_default['tag.coderay.lang'] %>
|
505
|
+
|
407
506
|
* Example for setting the option in the configuration file:
|
408
507
|
|
409
508
|
tag.coderay.lang: ruby
|
@@ -419,6 +518,8 @@ shows how to set the option in the configuration file.
|
|
419
518
|
|
420
519
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
421
520
|
|
521
|
+
<%= show_default['tag.coderay.process_body'] %>
|
522
|
+
|
422
523
|
* Example for setting the option in the configuration file:
|
423
524
|
|
424
525
|
tag.coderay.process_body: false
|
@@ -432,7 +533,9 @@ shows how to set the option in the configuration file.
|
|
432
533
|
|
433
534
|
Specifies in which HTML element the highlighted code should be wrapped.
|
434
535
|
|
435
|
-
* Syntax: `WRAP` where `WRAP` is either
|
536
|
+
* Syntax: `WRAP` where `WRAP` is either `:div` or `:span`
|
537
|
+
|
538
|
+
<%= show_default['tag.coderay.wrap'] %>
|
436
539
|
|
437
540
|
* Example for setting the option in the configuration file:
|
438
541
|
|
@@ -449,6 +552,8 @@ shows how to set the option in the configuration file.
|
|
449
552
|
|
450
553
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
451
554
|
|
555
|
+
<%= show_default['tag.coderay.line_numbers'] %>
|
556
|
+
|
452
557
|
* Example for setting the option in the configuration file:
|
453
558
|
|
454
559
|
tag.coderay.line_numbers: false
|
@@ -464,6 +569,8 @@ shows how to set the option in the configuration file.
|
|
464
569
|
|
465
570
|
* Syntax: `NUMBER` where `NUMBER` is an integer value.
|
466
571
|
|
572
|
+
<%= show_default['tag.coderay.line_number_start'] %>
|
573
|
+
|
467
574
|
* Example for setting the option in the configuration file:
|
468
575
|
|
469
576
|
tag.coderay.line_number_start: 4
|
@@ -479,6 +586,8 @@ shows how to set the option in the configuration file.
|
|
479
586
|
|
480
587
|
* Syntax: `NUMBER` where `NUMBER` is an integer value.
|
481
588
|
|
589
|
+
<%= show_default['tag.coderay.bold_every'] %>
|
590
|
+
|
482
591
|
* Example for setting the option in the configuration file:
|
483
592
|
|
484
593
|
tag.coderay.bold_every: 2
|
@@ -494,6 +603,8 @@ shows how to set the option in the configuration file.
|
|
494
603
|
|
495
604
|
* Syntax: `NUMBER` where `NUMBER` is an integer value.
|
496
605
|
|
606
|
+
<%= show_default['tag.coderay.tab_width'] %>
|
607
|
+
|
497
608
|
* Example for setting the option in the configuration file:
|
498
609
|
|
499
610
|
tag.coderay.tab_width: 4
|
@@ -511,6 +622,8 @@ shows how to set the option in the configuration file.
|
|
511
622
|
|
512
623
|
* Syntax: `FORMAT` where `FORMAT` is a string.
|
513
624
|
|
625
|
+
<%= show_default['tag.date.format'] %>
|
626
|
+
|
514
627
|
* Example for setting the option in the configuration file:
|
515
628
|
|
516
629
|
tag.date.format: '%Y-%m-%d'
|
@@ -527,6 +640,8 @@ shows how to set the option in the configuration file.
|
|
527
640
|
|
528
641
|
* Syntax: `COMMAND` where `COMMAND` is the to-be-executed command.
|
529
642
|
|
643
|
+
<%= show_default['tag.executecommand.command'] %>
|
644
|
+
|
530
645
|
* Example for setting the option directly in a tag:
|
531
646
|
|
532
647
|
executing a simple command \{exeucte_cmd: echo hallo}
|
@@ -539,6 +654,8 @@ shows how to set the option in the configuration file.
|
|
539
654
|
|
540
655
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
541
656
|
|
657
|
+
<%= show_default['tag.executecommand.process_output'] %>
|
658
|
+
|
542
659
|
* Example for setting the option in the configuration file:
|
543
660
|
|
544
661
|
tag.executecommand.process_output: false
|
@@ -554,6 +671,8 @@ shows how to set the option in the configuration file.
|
|
554
671
|
|
555
672
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
556
673
|
|
674
|
+
<%= show_default['tag.executecommand.escape_html'] %>
|
675
|
+
|
557
676
|
* Example for setting the option in the configuration file:
|
558
677
|
|
559
678
|
tag.executecommand.escape_html: false
|
@@ -571,6 +690,8 @@ shows how to set the option in the configuration file.
|
|
571
690
|
|
572
691
|
* Syntax: `FILENAME` where `FILENAME` is the name of a file
|
573
692
|
|
693
|
+
<%= show_default['tag.includefile.filename'] %>
|
694
|
+
|
574
695
|
* Example for setting the option directly in a tag:
|
575
696
|
|
576
697
|
including a file \{include_file: my_file.txt}
|
@@ -583,6 +704,8 @@ shows how to set the option in the configuration file.
|
|
583
704
|
|
584
705
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
585
706
|
|
707
|
+
<%= show_default['tag.includefile.process_output'] %>
|
708
|
+
|
586
709
|
* Example for setting the option in the configuration file:
|
587
710
|
|
588
711
|
tag.includefile.process_output: false
|
@@ -598,6 +721,8 @@ shows how to set the option in the configuration file.
|
|
598
721
|
|
599
722
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
600
723
|
|
724
|
+
<%= show_default['tag.includefile.escape_html'] %>
|
725
|
+
|
601
726
|
* Example for setting the option in the configuration file:
|
602
727
|
|
603
728
|
tag.includefile.escape_html: false
|
@@ -614,6 +739,8 @@ shows how to set the option in the configuration file.
|
|
614
739
|
* Syntax: `SEPARATOR` where `SEPARATOR` is a string (special HTML characters need to be properly
|
615
740
|
escaped)
|
616
741
|
|
742
|
+
<%= show_default['tag.langbar.separator'] %>
|
743
|
+
|
617
744
|
* Example for setting the option in the configuration file:
|
618
745
|
|
619
746
|
tag.langbar.separator: ' --- '
|
@@ -629,6 +756,8 @@ shows how to set the option in the configuration file.
|
|
629
756
|
|
630
757
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
631
758
|
|
759
|
+
<%= show_default['tag.langbar.show_own_lang'] %>
|
760
|
+
|
632
761
|
* Example for setting the option in the configuration file:
|
633
762
|
|
634
763
|
tag.langbar.show_own_lang: false
|
@@ -645,6 +774,8 @@ shows how to set the option in the configuration file.
|
|
645
774
|
|
646
775
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
647
776
|
|
777
|
+
<%= show_default['tag.langbar.show_single_lang'] %>
|
778
|
+
|
648
779
|
* Example for setting the option in the configuration file:
|
649
780
|
|
650
781
|
tag.langbar.show_single_lang: false
|
@@ -662,6 +793,8 @@ shows how to set the option in the configuration file.
|
|
662
793
|
* Syntax: `\{CODE: NAME, ...}` where `CODE` is a language code and `NAME` the associated language
|
663
794
|
name of the code.
|
664
795
|
|
796
|
+
<%= show_default['tag.langbar.lang_names'] %>
|
797
|
+
|
665
798
|
* Example for setting the option in the configuration file:
|
666
799
|
|
667
800
|
tag.langbar.lang_names: \{de: Deutsch, en: English}
|
@@ -678,6 +811,8 @@ shows how to set the option in the configuration file.
|
|
678
811
|
|
679
812
|
* Syntax: `PATH` where `PATH` is an (absolute) (localized) canonical name.
|
680
813
|
|
814
|
+
<%= show_default['tag.link.path'] %>
|
815
|
+
|
681
816
|
* Example for setting the option directly in a tag:
|
682
817
|
|
683
818
|
You will find more information on the \{link: docu.html} page!
|
@@ -690,6 +825,8 @@ shows how to set the option in the configuration file.
|
|
690
825
|
* Syntax: `\{NAME: VALUE, ...}` where `NAME` is a valid HTML attribute name and `VALUE` its
|
691
826
|
value.
|
692
827
|
|
828
|
+
<%= show_default['tag.link.attr'] %>
|
829
|
+
|
693
830
|
* Example for setting the option in the configuration file:
|
694
831
|
|
695
832
|
tag.link.attr: \{title: DocuPage}
|
@@ -708,6 +845,8 @@ shows how to set the option in the configuration file.
|
|
708
845
|
|
709
846
|
* Syntax: `TYPE` where `TYPE` is one of `all`, `files` or `fragments`
|
710
847
|
|
848
|
+
<%= show_default['tag.menu.used_nodes'] %>
|
849
|
+
|
711
850
|
* Example for setting the option in the configuration file:
|
712
851
|
|
713
852
|
tag.menu.used_nodes: fragments
|
@@ -724,6 +863,8 @@ shows how to set the option in the configuration file.
|
|
724
863
|
|
725
864
|
* Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
|
726
865
|
|
866
|
+
<%= show_default['tag.menu.start_level'] %>
|
867
|
+
|
727
868
|
* Example for setting the option in the configuration file:
|
728
869
|
|
729
870
|
tag.menu.start_level: 2
|
@@ -740,6 +881,8 @@ shows how to set the option in the configuration file.
|
|
740
881
|
|
741
882
|
* Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
|
742
883
|
|
884
|
+
<%= show_default['tag.menu.min_levels'] %>
|
885
|
+
|
743
886
|
* Example for setting the option in the configuration file:
|
744
887
|
|
745
888
|
tag.menu.min_levels: 2
|
@@ -756,6 +899,8 @@ shows how to set the option in the configuration file.
|
|
756
899
|
|
757
900
|
* Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
|
758
901
|
|
902
|
+
<%= show_default['tag.menu.max_levels'] %>
|
903
|
+
|
759
904
|
* Example for setting the option in the configuration file:
|
760
905
|
|
761
906
|
tag.menu.max_levels: 2
|
@@ -773,6 +918,8 @@ shows how to set the option in the configuration file.
|
|
773
918
|
|
774
919
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
775
920
|
|
921
|
+
<%= show_default['tag.menu.show_current_subtree_only'] %>
|
922
|
+
|
776
923
|
* Example for setting the option in the configuration file:
|
777
924
|
|
778
925
|
tag.menu.show_current_subtree_only: false
|
@@ -810,6 +957,8 @@ shows how to set the option in the configuration file.
|
|
810
957
|
|
811
958
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
812
959
|
|
960
|
+
<%= show_default['tag.menu.nested'] %>
|
961
|
+
|
813
962
|
* Example for setting the option in the configuration file:
|
814
963
|
|
815
964
|
tag.menu.nested: false
|
@@ -826,6 +975,8 @@ shows how to set the option in the configuration file.
|
|
826
975
|
|
827
976
|
* Syntax: `PATH` where `PATH` is a (localized) canonical name.
|
828
977
|
|
978
|
+
<%= show_default['tag.relocatable.path'] %>
|
979
|
+
|
829
980
|
* Example for setting the option directly in a tag:
|
830
981
|
|
831
982
|
<a href="\{relocatable: ../features.html}">Some Path</a>
|
@@ -839,6 +990,8 @@ shows how to set the option in the configuration file.
|
|
839
990
|
|
840
991
|
* Syntax: `PATH` where `PATH` is a relative or absolute source path.
|
841
992
|
|
993
|
+
<%= show_default['tag.tikz.path'] %>
|
994
|
+
|
842
995
|
* Example for setting the option directly in a tag:
|
843
996
|
|
844
997
|
\{tikz:: images/tikz.png}\tikz \draw (0,0) -- (0,2);{tikz}
|
@@ -851,6 +1004,8 @@ shows how to set the option in the configuration file.
|
|
851
1004
|
|
852
1005
|
* Syntax: `[NAME, ...]` where `NAME` is the name of a TikZ library.
|
853
1006
|
|
1007
|
+
<%= show_default['tag.tikz.libraries'] %>
|
1008
|
+
|
854
1009
|
* Example for setting the option in the configuration file:
|
855
1010
|
|
856
1011
|
tag.tikz.libraries: [mindmap, arrows]
|
@@ -868,6 +1023,8 @@ shows how to set the option in the configuration file.
|
|
868
1023
|
|
869
1024
|
* Syntax: `OPTS` where `OPTS` is the string with the global options.
|
870
1025
|
|
1026
|
+
<%= show_default['tag.tikz.opts'] %>
|
1027
|
+
|
871
1028
|
* Example for setting the option in the configuration file:
|
872
1029
|
|
873
1030
|
tag.tikz.opts: 'scale=3, line cap=round'
|
@@ -884,11 +1041,13 @@ shows how to set the option in the configuration file.
|
|
884
1041
|
Specifies the render and output resolutions that should be used to convert the TikZ image in PDF
|
885
1042
|
format to the chosen image format. The first number specifies the render resolution and the
|
886
1043
|
second one the output resolution. If the render resolution is higher than the output resolution,
|
887
|
-
the final image quality is better but the image needs to scaled down to the output resolution.
|
1044
|
+
the final image quality is better but the image needs to be scaled down to the output resolution.
|
888
1045
|
|
889
1046
|
* Syntax: `RENDER_RES OUTPUT_RES` where `RENDER_RES` is the integer specifying the render
|
890
1047
|
resolution and `OUTPUT_RES` is the integer specifying the output resolution.
|
891
1048
|
|
1049
|
+
<%= show_default['tag.tikz.resolution'] %>
|
1050
|
+
|
892
1051
|
* Example for setting the option in the configuration file:
|
893
1052
|
|
894
1053
|
tag.tikz.resolution: 300 72
|
@@ -908,6 +1067,8 @@ shows how to set the option in the configuration file.
|
|
908
1067
|
|
909
1068
|
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
910
1069
|
|
1070
|
+
<%= show_default['tag.tikz.transparent'] %>
|
1071
|
+
|
911
1072
|
* Example for setting the option in the configuration file:
|
912
1073
|
|
913
1074
|
tag.tikz.transparent: true
|
@@ -926,6 +1087,8 @@ shows how to set the option in the configuration file.
|
|
926
1087
|
* Syntax: `\{KEY:VALUE, ...}` where `KEY` is a valid HTML `img` tag attribute name and `VALUE`
|
927
1088
|
the to-be-set value.
|
928
1089
|
|
1090
|
+
<%= show_default['tag.tikz.img_attr'] %>
|
1091
|
+
|
929
1092
|
* Example for setting the option in the configuration file:
|
930
1093
|
|
931
1094
|
tag.tikz.img_attr: \{alt: Some TikZ picture}
|