webgen 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. data/ChangeLog +870 -0
  2. data/Rakefile +37 -36
  3. data/VERSION +1 -1
  4. data/data/webgen/resources.yaml +2 -2
  5. data/data/webgen/webgui/app.rb +11 -0
  6. data/data/webgen/webgui/controller/main.rb +30 -26
  7. data/data/webgen/webgui/{view/page.xhtml → layout/default.xhtml} +8 -8
  8. data/data/webgen/webgui/start.rb +9 -0
  9. data/data/webgen/webgui/view/create_website.xhtml +6 -14
  10. data/data/webgen/webgui/view/manage_website.xhtml +2 -2
  11. data/data/webgen/website_bundles/default/README +6 -0
  12. data/data/webgen/website_bundles/default/src/index.page +15 -0
  13. data/data/webgen/{website_styles → website_bundles/style}/1024px/README +0 -0
  14. data/data/webgen/{website_styles → website_bundles/style}/1024px/src/default.css +0 -0
  15. data/data/webgen/{website_styles → website_bundles/style}/1024px/src/default.template +0 -0
  16. data/data/webgen/{website_styles → website_bundles/style}/1024px/src/images/background.gif +0 -0
  17. data/data/webgen/{website_styles → website_bundles/style}/andreas00/README +0 -0
  18. data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/default.css +0 -0
  19. data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/default.template +0 -0
  20. data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/bg.gif +0 -0
  21. data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/front.jpg +0 -0
  22. data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/menubg.gif +0 -0
  23. data/data/webgen/{website_styles → website_bundles/style}/andreas00/src/images/menubg2.gif +0 -0
  24. data/data/webgen/{website_styles → website_bundles/style}/andreas01/README +0 -0
  25. data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/default.css +0 -0
  26. data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/default.template +0 -0
  27. data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/images/bg.gif +0 -0
  28. data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/images/front.jpg +0 -0
  29. data/data/webgen/{website_styles → website_bundles/style}/andreas01/src/print.css +0 -0
  30. data/data/webgen/{website_styles → website_bundles/style}/andreas03/README +0 -0
  31. data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/default.css +0 -0
  32. data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/default.template +0 -0
  33. data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/bodybg.png +0 -0
  34. data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/contbg.png +0 -0
  35. data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/footerbg.png +0 -0
  36. data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/gradient1.png +0 -0
  37. data/data/webgen/{website_styles → website_bundles/style}/andreas03/src/images/gradient2.png +0 -0
  38. data/data/webgen/{website_styles → website_bundles/style}/andreas04/README +0 -0
  39. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/default.css +0 -0
  40. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/default.template +0 -0
  41. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/blinkarrow.gif +0 -0
  42. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/bodybg.png +0 -0
  43. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/contentbg.png +0 -0
  44. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/entrybg.png +0 -0
  45. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/flash.gif +0 -0
  46. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/flash2.gif +0 -0
  47. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/globe.gif +0 -0
  48. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/globebottom.gif +0 -0
  49. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/linkarrow.gif +0 -0
  50. data/data/webgen/{website_styles → website_bundles/style}/andreas04/src/images/menuhover.png +0 -0
  51. data/data/webgen/{website_styles → website_bundles/style}/andreas05/README +0 -0
  52. data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/default.css +0 -0
  53. data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/default.template +0 -0
  54. data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/images/bodybg.gif +0 -0
  55. data/data/webgen/{website_styles → website_bundles/style}/andreas05/src/images/front.png +0 -0
  56. data/data/webgen/{website_styles → website_bundles/style}/andreas06/README +0 -0
  57. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/default.css +6 -4
  58. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/default.template +2 -2
  59. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/bodybg.gif +0 -0
  60. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/boxbg.gif +0 -0
  61. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/greypx.gif +0 -0
  62. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/header.jpg +0 -0
  63. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/innerbg.gif +0 -0
  64. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/leaves.jpg +0 -0
  65. data/data/webgen/{website_styles → website_bundles/style}/andreas06/src/images/tabs.gif +0 -0
  66. data/data/webgen/{website_styles → website_bundles/style}/andreas07/README +0 -0
  67. data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/browserfix.css +0 -0
  68. data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/default.css +0 -0
  69. data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/default.template +0 -0
  70. data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/images/bodybg.gif +0 -0
  71. data/data/webgen/{website_styles → website_bundles/style}/andreas07/src/images/sidebarbg.gif +0 -0
  72. data/data/webgen/{website_styles → website_bundles/style}/andreas08/README +0 -0
  73. data/data/webgen/{website_styles → website_bundles/style}/andreas08/src/default.css +0 -0
  74. data/data/webgen/{website_styles → website_bundles/style}/andreas08/src/default.template +0 -0
  75. data/data/webgen/{website_styles → website_bundles/style}/andreas09/README +0 -0
  76. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/default.css +0 -0
  77. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/default.template +0 -0
  78. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-black.jpg +0 -0
  79. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-green.jpg +0 -0
  80. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-orange.jpg +0 -0
  81. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-purple.jpg +0 -0
  82. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg-red.jpg +0 -0
  83. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/bodybg.jpg +0 -0
  84. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/footerbg.jpg +0 -0
  85. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-black.jpg +0 -0
  86. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-green.jpg +0 -0
  87. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-orange.jpg +0 -0
  88. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-purple.jpg +0 -0
  89. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover-red.jpg +0 -0
  90. data/data/webgen/{website_styles → website_bundles/style}/andreas09/src/images/menuhover.jpg +0 -0
  91. data/data/webgen/{website_styles → website_bundles/style}/simple/README +0 -0
  92. data/data/webgen/{website_styles → website_bundles/style}/simple/src/default.css +0 -0
  93. data/data/webgen/{website_styles → website_bundles/style}/simple/src/default.template +0 -0
  94. data/data/webgen/website_skeleton/README +1 -1
  95. data/data/webgen/website_skeleton/config.yaml +5 -4
  96. data/doc/contentprocessor/blocks.page +43 -10
  97. data/doc/contentprocessor/builder.page +1 -1
  98. data/doc/contentprocessor/erb.page +12 -11
  99. data/doc/contentprocessor/redcloth.page +3 -1
  100. data/doc/extensions.page +3 -3
  101. data/doc/faq.page +13 -10
  102. data/doc/getting_started.page +12 -15
  103. data/doc/index.page +7 -1
  104. data/doc/manual.page +78 -27
  105. data/doc/reference_configuration.page +166 -3
  106. data/doc/reference_website_styles.page +28 -0
  107. data/doc/source/filesystem.page +39 -0
  108. data/doc/source/tararchive.page +40 -0
  109. data/doc/tag/tikz.page +2 -1
  110. data/doc/webgen_page_format.page +13 -12
  111. data/doc/website_styles.metainfo +8 -0
  112. data/lib/webgen/blackboard.rb +2 -2
  113. data/lib/webgen/cache.rb +4 -4
  114. data/lib/webgen/cli.rb +29 -16
  115. data/lib/webgen/cli/apply_command.rb +66 -0
  116. data/lib/webgen/cli/create_command.rb +22 -16
  117. data/lib/webgen/cli/utils.rb +23 -0
  118. data/lib/webgen/cli/webgui_command.rb +31 -16
  119. data/lib/webgen/configuration.rb +8 -6
  120. data/lib/webgen/contentprocessor.rb +4 -5
  121. data/lib/webgen/contentprocessor/blocks.rb +2 -0
  122. data/lib/webgen/contentprocessor/builder.rb +6 -3
  123. data/lib/webgen/contentprocessor/erb.rb +6 -3
  124. data/lib/webgen/contentprocessor/erubis.rb +7 -6
  125. data/lib/webgen/contentprocessor/haml.rb +6 -3
  126. data/lib/webgen/contentprocessor/rdoc.rb +0 -1
  127. data/lib/webgen/contentprocessor/redcloth.rb +3 -1
  128. data/lib/webgen/context.rb +73 -0
  129. data/lib/webgen/context/nodes.rb +36 -0
  130. data/lib/webgen/coreext.rb +3 -2
  131. data/lib/webgen/default_config.rb +3 -1
  132. data/lib/webgen/deprecated.rb +53 -0
  133. data/lib/webgen/node.rb +24 -19
  134. data/lib/webgen/output.rb +50 -7
  135. data/lib/webgen/page.rb +45 -36
  136. data/lib/webgen/path.rb +1 -1
  137. data/lib/webgen/source.rb +32 -4
  138. data/lib/webgen/source/resource.rb +3 -3
  139. data/lib/webgen/source/stacked.rb +1 -1
  140. data/lib/webgen/source/tararchive.rb +73 -0
  141. data/lib/webgen/sourcehandler.rb +4 -4
  142. data/lib/webgen/sourcehandler/base.rb +36 -24
  143. data/lib/webgen/sourcehandler/copy.rb +1 -1
  144. data/lib/webgen/sourcehandler/feed.rb +2 -2
  145. data/lib/webgen/sourcehandler/fragment.rb +1 -1
  146. data/lib/webgen/sourcehandler/metainfo.rb +15 -6
  147. data/lib/webgen/sourcehandler/page.rb +9 -5
  148. data/lib/webgen/sourcehandler/virtual.rb +44 -7
  149. data/lib/webgen/tag/base.rb +19 -13
  150. data/lib/webgen/tag/link.rb +1 -0
  151. data/lib/webgen/version.rb +1 -1
  152. data/lib/webgen/webgentask.rb +15 -13
  153. data/lib/webgen/website.rb +42 -11
  154. data/lib/webgen/websiteaccess.rb +1 -1
  155. data/lib/webgen/websitemanager.rb +61 -66
  156. data/man/man1/webgen.1 +4 -0
  157. data/misc/default.css +13 -0
  158. data/misc/default.template +1 -1
  159. data/misc/htmldoc.metainfo +2 -1
  160. data/misc/style.page +33 -0
  161. data/test/test_cli.rb +1 -7
  162. data/test/test_common_sitemap.rb +2 -2
  163. data/test/test_contentprocessor_blocks.rb +14 -1
  164. data/test/test_contentprocessor_builder.rb +3 -1
  165. data/test/test_contentprocessor_erb.rb +3 -2
  166. data/test/test_contentprocessor_erubis.rb +3 -3
  167. data/test/test_contentprocessor_fragments.rb +3 -3
  168. data/test/test_contentprocessor_haml.rb +3 -2
  169. data/test/test_contentprocessor_maruku.rb +3 -3
  170. data/test/test_contentprocessor_rdiscount.rb +1 -1
  171. data/test/test_contentprocessor_rdoc.rb +1 -1
  172. data/test/test_contentprocessor_redcloth.rb +9 -2
  173. data/test/test_contentprocessor_sass.rb +1 -1
  174. data/test/test_contentprocessor_tags.rb +1 -1
  175. data/test/{test_contentprocessor_context.rb → test_context.rb} +9 -7
  176. data/test/test_node.rb +27 -21
  177. data/test/test_page.rb +4 -4
  178. data/test/test_source_tararchive.rb +65 -0
  179. data/test/test_sourcehandler_fragment.rb +1 -1
  180. data/test/test_sourcehandler_memory.rb +6 -6
  181. data/test/test_sourcehandler_metainfo.rb +34 -13
  182. data/test/test_sourcehandler_page.rb +8 -0
  183. data/test/test_sourcehandler_virtual.rb +51 -12
  184. data/test/test_tag_breadcrumbtrail.rb +4 -4
  185. data/test/test_tag_coderay.rb +1 -1
  186. data/test/test_tag_date.rb +1 -1
  187. data/test/test_tag_executecommand.rb +1 -1
  188. data/test/test_tag_includefile.rb +3 -3
  189. data/test/test_tag_langbar.rb +6 -6
  190. data/test/test_tag_link.rb +8 -2
  191. data/test/test_tag_menu.rb +9 -9
  192. data/test/test_tag_metainfo.rb +1 -1
  193. data/test/test_tag_relocatable.rb +1 -1
  194. data/test/test_tag_sitemap.rb +1 -1
  195. data/test/test_tag_tikz.rb +2 -2
  196. data/test/test_website.rb +17 -0
  197. data/test/test_websitemanager.rb +16 -21
  198. metadata +146 -187
  199. data/data/webgen/website_templates/default/README +0 -6
  200. data/data/webgen/website_templates/default/src/index.page +0 -8
  201. data/data/webgen/website_templates/project/README +0 -5
  202. data/data/webgen/website_templates/project/src/about.page +0 -12
  203. data/data/webgen/website_templates/project/src/download.page +0 -15
  204. data/data/webgen/website_templates/project/src/features.page +0 -8
  205. data/data/webgen/website_templates/project/src/index.page +0 -9
  206. data/data/webgen/website_templates/project/src/screenshots.page +0 -18
  207. 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 `div` or `span`
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}