thewoolleyman-webgen 0.5.8.20090419

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. data/AUTHORS +8 -0
  2. data/COPYING +10 -0
  3. data/GPL +340 -0
  4. data/Rakefile +334 -0
  5. data/THANKS +18 -0
  6. data/bin/webgen +12 -0
  7. data/data/webgen/resources.yaml +3 -0
  8. data/data/webgen/webgui/controller/main.rb +135 -0
  9. data/data/webgen/webgui/overrides/win32console.rb +0 -0
  10. data/data/webgen/webgui/public/css/jquery.autocomplete.css +50 -0
  11. data/data/webgen/webgui/public/css/ramaze_error.css +90 -0
  12. data/data/webgen/webgui/public/css/style.css +55 -0
  13. data/data/webgen/webgui/public/img/headerbg.jpg +0 -0
  14. data/data/webgen/webgui/public/img/webgen_logo.png +0 -0
  15. data/data/webgen/webgui/public/js/jquery.autocomplete.js +15 -0
  16. data/data/webgen/webgui/public/js/jquery.js +32 -0
  17. data/data/webgen/webgui/view/create_website.xhtml +22 -0
  18. data/data/webgen/webgui/view/error.xhtml +64 -0
  19. data/data/webgen/webgui/view/index.xhtml +22 -0
  20. data/data/webgen/webgui/view/manage_website.xhtml +18 -0
  21. data/data/webgen/webgui/view/page.xhtml +40 -0
  22. data/data/webgen/website_skeleton/README +10 -0
  23. data/data/webgen/website_skeleton/Rakefile +40 -0
  24. data/data/webgen/website_skeleton/config.yaml +17 -0
  25. data/data/webgen/website_skeleton/ext/init.rb +10 -0
  26. data/data/webgen/website_styles/1024px/README +13 -0
  27. data/data/webgen/website_styles/1024px/src/default.css +188 -0
  28. data/data/webgen/website_styles/1024px/src/default.template +60 -0
  29. data/data/webgen/website_styles/1024px/src/images/background.gif +0 -0
  30. data/data/webgen/website_styles/andreas00/README +13 -0
  31. data/data/webgen/website_styles/andreas00/src/default.css +290 -0
  32. data/data/webgen/website_styles/andreas00/src/default.template +60 -0
  33. data/data/webgen/website_styles/andreas00/src/images/bg.gif +0 -0
  34. data/data/webgen/website_styles/andreas00/src/images/front.jpg +0 -0
  35. data/data/webgen/website_styles/andreas00/src/images/menubg.gif +0 -0
  36. data/data/webgen/website_styles/andreas00/src/images/menubg2.gif +0 -0
  37. data/data/webgen/website_styles/andreas01/README +14 -0
  38. data/data/webgen/website_styles/andreas01/src/default.css +310 -0
  39. data/data/webgen/website_styles/andreas01/src/default.template +62 -0
  40. data/data/webgen/website_styles/andreas01/src/images/bg.gif +0 -0
  41. data/data/webgen/website_styles/andreas01/src/images/front.jpg +0 -0
  42. data/data/webgen/website_styles/andreas01/src/print.css +35 -0
  43. data/data/webgen/website_styles/andreas03/README +14 -0
  44. data/data/webgen/website_styles/andreas03/src/default.css +223 -0
  45. data/data/webgen/website_styles/andreas03/src/default.template +58 -0
  46. data/data/webgen/website_styles/andreas03/src/images/bodybg.png +0 -0
  47. data/data/webgen/website_styles/andreas03/src/images/contbg.png +0 -0
  48. data/data/webgen/website_styles/andreas03/src/images/footerbg.png +0 -0
  49. data/data/webgen/website_styles/andreas03/src/images/gradient1.png +0 -0
  50. data/data/webgen/website_styles/andreas03/src/images/gradient2.png +0 -0
  51. data/data/webgen/website_styles/andreas04/README +15 -0
  52. data/data/webgen/website_styles/andreas04/src/default.css +290 -0
  53. data/data/webgen/website_styles/andreas04/src/default.template +81 -0
  54. data/data/webgen/website_styles/andreas04/src/images/blinkarrow.gif +0 -0
  55. data/data/webgen/website_styles/andreas04/src/images/bodybg.png +0 -0
  56. data/data/webgen/website_styles/andreas04/src/images/contentbg.png +0 -0
  57. data/data/webgen/website_styles/andreas04/src/images/entrybg.png +0 -0
  58. data/data/webgen/website_styles/andreas04/src/images/flash.gif +0 -0
  59. data/data/webgen/website_styles/andreas04/src/images/flash2.gif +0 -0
  60. data/data/webgen/website_styles/andreas04/src/images/globe.gif +0 -0
  61. data/data/webgen/website_styles/andreas04/src/images/globebottom.gif +0 -0
  62. data/data/webgen/website_styles/andreas04/src/images/linkarrow.gif +0 -0
  63. data/data/webgen/website_styles/andreas04/src/images/menuhover.png +0 -0
  64. data/data/webgen/website_styles/andreas05/README +14 -0
  65. data/data/webgen/website_styles/andreas05/src/default.css +33 -0
  66. data/data/webgen/website_styles/andreas05/src/default.template +40 -0
  67. data/data/webgen/website_styles/andreas05/src/images/bodybg.gif +0 -0
  68. data/data/webgen/website_styles/andreas05/src/images/front.png +0 -0
  69. data/data/webgen/website_styles/andreas06/README +14 -0
  70. data/data/webgen/website_styles/andreas06/src/default.css +354 -0
  71. data/data/webgen/website_styles/andreas06/src/default.template +70 -0
  72. data/data/webgen/website_styles/andreas06/src/images/bodybg.gif +0 -0
  73. data/data/webgen/website_styles/andreas06/src/images/boxbg.gif +0 -0
  74. data/data/webgen/website_styles/andreas06/src/images/greypx.gif +0 -0
  75. data/data/webgen/website_styles/andreas06/src/images/header.jpg +0 -0
  76. data/data/webgen/website_styles/andreas06/src/images/innerbg.gif +0 -0
  77. data/data/webgen/website_styles/andreas06/src/images/leaves.jpg +0 -0
  78. data/data/webgen/website_styles/andreas06/src/images/tabs.gif +0 -0
  79. data/data/webgen/website_styles/andreas07/README +15 -0
  80. data/data/webgen/website_styles/andreas07/src/browserfix.css +7 -0
  81. data/data/webgen/website_styles/andreas07/src/default.css +92 -0
  82. data/data/webgen/website_styles/andreas07/src/default.template +42 -0
  83. data/data/webgen/website_styles/andreas07/src/images/bodybg.gif +0 -0
  84. data/data/webgen/website_styles/andreas07/src/images/sidebarbg.gif +0 -0
  85. data/data/webgen/website_styles/andreas08/README +14 -0
  86. data/data/webgen/website_styles/andreas08/src/default.css +224 -0
  87. data/data/webgen/website_styles/andreas08/src/default.template +51 -0
  88. data/data/webgen/website_styles/andreas09/README +14 -0
  89. data/data/webgen/website_styles/andreas09/src/default.css +308 -0
  90. data/data/webgen/website_styles/andreas09/src/default.template +68 -0
  91. data/data/webgen/website_styles/andreas09/src/images/bodybg-black.jpg +0 -0
  92. data/data/webgen/website_styles/andreas09/src/images/bodybg-green.jpg +0 -0
  93. data/data/webgen/website_styles/andreas09/src/images/bodybg-orange.jpg +0 -0
  94. data/data/webgen/website_styles/andreas09/src/images/bodybg-purple.jpg +0 -0
  95. data/data/webgen/website_styles/andreas09/src/images/bodybg-red.jpg +0 -0
  96. data/data/webgen/website_styles/andreas09/src/images/bodybg.jpg +0 -0
  97. data/data/webgen/website_styles/andreas09/src/images/footerbg.jpg +0 -0
  98. data/data/webgen/website_styles/andreas09/src/images/menuhover-black.jpg +0 -0
  99. data/data/webgen/website_styles/andreas09/src/images/menuhover-green.jpg +0 -0
  100. data/data/webgen/website_styles/andreas09/src/images/menuhover-orange.jpg +0 -0
  101. data/data/webgen/website_styles/andreas09/src/images/menuhover-purple.jpg +0 -0
  102. data/data/webgen/website_styles/andreas09/src/images/menuhover-red.jpg +0 -0
  103. data/data/webgen/website_styles/andreas09/src/images/menuhover.jpg +0 -0
  104. data/data/webgen/website_styles/simple/README +6 -0
  105. data/data/webgen/website_styles/simple/src/default.css +84 -0
  106. data/data/webgen/website_styles/simple/src/default.template +36 -0
  107. data/data/webgen/website_templates/default/README +6 -0
  108. data/data/webgen/website_templates/default/src/index.page +8 -0
  109. data/data/webgen/website_templates/project/README +5 -0
  110. data/data/webgen/website_templates/project/src/about.page +12 -0
  111. data/data/webgen/website_templates/project/src/download.page +15 -0
  112. data/data/webgen/website_templates/project/src/features.page +8 -0
  113. data/data/webgen/website_templates/project/src/index.page +9 -0
  114. data/data/webgen/website_templates/project/src/screenshots.page +18 -0
  115. data/doc/contentprocessor.template +11 -0
  116. data/doc/contentprocessor/blocks.page +129 -0
  117. data/doc/contentprocessor/builder.page +80 -0
  118. data/doc/contentprocessor/erb.page +59 -0
  119. data/doc/contentprocessor/erubis.page +46 -0
  120. data/doc/contentprocessor/fragments.page +25 -0
  121. data/doc/contentprocessor/haml.page +47 -0
  122. data/doc/contentprocessor/maruku.page +41 -0
  123. data/doc/contentprocessor/rdiscount.page +37 -0
  124. data/doc/contentprocessor/rdoc.page +36 -0
  125. data/doc/contentprocessor/redcloth.page +39 -0
  126. data/doc/contentprocessor/sass.page +31 -0
  127. data/doc/contentprocessor/tags.page +73 -0
  128. data/doc/extensions.metainfo +29 -0
  129. data/doc/extensions.page +16 -0
  130. data/doc/extensions.template +17 -0
  131. data/doc/faq.page +219 -0
  132. data/doc/getting_started.page +135 -0
  133. data/doc/index.page +65 -0
  134. data/doc/manual.page +589 -0
  135. data/doc/reference_configuration.page +959 -0
  136. data/doc/reference_metainfo.page +222 -0
  137. data/doc/source/filesystem.page +39 -0
  138. data/doc/source/tararchive.page +40 -0
  139. data/doc/sourcehandler.template +21 -0
  140. data/doc/sourcehandler/copy.page +19 -0
  141. data/doc/sourcehandler/directory.page +27 -0
  142. data/doc/sourcehandler/feed.page +105 -0
  143. data/doc/sourcehandler/metainfo.page +41 -0
  144. data/doc/sourcehandler/page.page +14 -0
  145. data/doc/sourcehandler/sitemap.page +46 -0
  146. data/doc/sourcehandler/template.page +45 -0
  147. data/doc/sourcehandler/virtual.page +49 -0
  148. data/doc/tag.template +25 -0
  149. data/doc/tag/breadcrumbtrail.page +40 -0
  150. data/doc/tag/coderay.page +49 -0
  151. data/doc/tag/date.page +31 -0
  152. data/doc/tag/executecommand.page +26 -0
  153. data/doc/tag/includefile.page +32 -0
  154. data/doc/tag/langbar.page +44 -0
  155. data/doc/tag/link.page +44 -0
  156. data/doc/tag/menu.page +106 -0
  157. data/doc/tag/metainfo.page +29 -0
  158. data/doc/tag/relocatable.page +38 -0
  159. data/doc/tag/sitemap.page +31 -0
  160. data/doc/tag/tikz.page +158 -0
  161. data/doc/upgrading.page +139 -0
  162. data/doc/webgen_page_format.page +129 -0
  163. data/lib/webgen/blackboard.rb +78 -0
  164. data/lib/webgen/cache.rb +87 -0
  165. data/lib/webgen/cli.rb +124 -0
  166. data/lib/webgen/cli/apply_command.rb +64 -0
  167. data/lib/webgen/cli/create_command.rb +66 -0
  168. data/lib/webgen/cli/run_command.rb +22 -0
  169. data/lib/webgen/cli/utils.rb +88 -0
  170. data/lib/webgen/cli/webgui_command.rb +72 -0
  171. data/lib/webgen/common.rb +21 -0
  172. data/lib/webgen/common/sitemap.rb +83 -0
  173. data/lib/webgen/configuration.rb +153 -0
  174. data/lib/webgen/contentprocessor.rb +99 -0
  175. data/lib/webgen/contentprocessor/blocks.rb +60 -0
  176. data/lib/webgen/contentprocessor/builder.rb +30 -0
  177. data/lib/webgen/contentprocessor/context.rb +89 -0
  178. data/lib/webgen/contentprocessor/erb.rb +28 -0
  179. data/lib/webgen/contentprocessor/erubis.rb +40 -0
  180. data/lib/webgen/contentprocessor/fragments.rb +25 -0
  181. data/lib/webgen/contentprocessor/haml.rb +30 -0
  182. data/lib/webgen/contentprocessor/maruku.rb +20 -0
  183. data/lib/webgen/contentprocessor/rdiscount.rb +17 -0
  184. data/lib/webgen/contentprocessor/rdoc.rb +19 -0
  185. data/lib/webgen/contentprocessor/redcloth.rb +17 -0
  186. data/lib/webgen/contentprocessor/sass.rb +20 -0
  187. data/lib/webgen/contentprocessor/tags.rb +136 -0
  188. data/lib/webgen/coreext.rb +13 -0
  189. data/lib/webgen/default_config.rb +215 -0
  190. data/lib/webgen/languages.rb +589 -0
  191. data/lib/webgen/loggable.rb +25 -0
  192. data/lib/webgen/logger.rb +97 -0
  193. data/lib/webgen/node.rb +391 -0
  194. data/lib/webgen/output.rb +82 -0
  195. data/lib/webgen/output/filesystem.rb +69 -0
  196. data/lib/webgen/page.rb +153 -0
  197. data/lib/webgen/path.rb +194 -0
  198. data/lib/webgen/source.rb +54 -0
  199. data/lib/webgen/source/filesystem.rb +61 -0
  200. data/lib/webgen/source/resource.rb +44 -0
  201. data/lib/webgen/source/stacked.rb +55 -0
  202. data/lib/webgen/source/tararchive.rb +73 -0
  203. data/lib/webgen/sourcehandler.rb +226 -0
  204. data/lib/webgen/sourcehandler/base.rb +248 -0
  205. data/lib/webgen/sourcehandler/copy.rb +43 -0
  206. data/lib/webgen/sourcehandler/directory.rb +36 -0
  207. data/lib/webgen/sourcehandler/feed.rb +117 -0
  208. data/lib/webgen/sourcehandler/fragment.rb +68 -0
  209. data/lib/webgen/sourcehandler/memory.rb +43 -0
  210. data/lib/webgen/sourcehandler/metainfo.rb +128 -0
  211. data/lib/webgen/sourcehandler/page.rb +59 -0
  212. data/lib/webgen/sourcehandler/sitemap.rb +60 -0
  213. data/lib/webgen/sourcehandler/template.rb +66 -0
  214. data/lib/webgen/sourcehandler/virtual.rb +110 -0
  215. data/lib/webgen/tag.rb +27 -0
  216. data/lib/webgen/tag/base.rb +170 -0
  217. data/lib/webgen/tag/breadcrumbtrail.rb +70 -0
  218. data/lib/webgen/tag/coderay.rb +31 -0
  219. data/lib/webgen/tag/date.rb +18 -0
  220. data/lib/webgen/tag/executecommand.rb +30 -0
  221. data/lib/webgen/tag/includefile.rb +42 -0
  222. data/lib/webgen/tag/langbar.rb +52 -0
  223. data/lib/webgen/tag/link.rb +26 -0
  224. data/lib/webgen/tag/menu.rb +207 -0
  225. data/lib/webgen/tag/metainfo.rb +25 -0
  226. data/lib/webgen/tag/relocatable.rb +54 -0
  227. data/lib/webgen/tag/sitemap.rb +41 -0
  228. data/lib/webgen/tag/tikz.rb +119 -0
  229. data/lib/webgen/tree.rb +90 -0
  230. data/lib/webgen/version.rb +8 -0
  231. data/lib/webgen/webgentask.rb +152 -0
  232. data/lib/webgen/website.rb +342 -0
  233. data/lib/webgen/websiteaccess.rb +31 -0
  234. data/lib/webgen/websitemanager.rb +127 -0
  235. data/man/man1/webgen.1 +73 -0
  236. data/misc/default.css +384 -0
  237. data/misc/default.template +75 -0
  238. data/misc/htmldoc.metainfo +25 -0
  239. data/misc/htmldoc.virtual +5 -0
  240. data/misc/images/arrow.gif +0 -0
  241. data/misc/images/error.png +0 -0
  242. data/misc/images/headerbg.jpg +0 -0
  243. data/misc/images/important.png +0 -0
  244. data/misc/images/information.png +0 -0
  245. data/misc/images/quote.gif +0 -0
  246. data/misc/images/warning.png +0 -0
  247. data/setup.rb +1585 -0
  248. data/test/helper.rb +45 -0
  249. data/test/test_blackboard.rb +60 -0
  250. data/test/test_cache.rb +59 -0
  251. data/test/test_cli.rb +21 -0
  252. data/test/test_common.rb +18 -0
  253. data/test/test_common_sitemap.rb +58 -0
  254. data/test/test_configuration.rb +68 -0
  255. data/test/test_contentprocessor.rb +33 -0
  256. data/test/test_contentprocessor_blocks.rb +68 -0
  257. data/test/test_contentprocessor_builder.rb +23 -0
  258. data/test/test_contentprocessor_context.rb +40 -0
  259. data/test/test_contentprocessor_erb.rb +23 -0
  260. data/test/test_contentprocessor_erubis.rb +49 -0
  261. data/test/test_contentprocessor_fragments.rb +42 -0
  262. data/test/test_contentprocessor_haml.rb +23 -0
  263. data/test/test_contentprocessor_maruku.rb +29 -0
  264. data/test/test_contentprocessor_rdiscount.rb +17 -0
  265. data/test/test_contentprocessor_rdoc.rb +18 -0
  266. data/test/test_contentprocessor_redcloth.rb +15 -0
  267. data/test/test_contentprocessor_sass.rb +22 -0
  268. data/test/test_contentprocessor_tags.rb +99 -0
  269. data/test/test_languages.rb +67 -0
  270. data/test/test_loggable.rb +32 -0
  271. data/test/test_logger.rb +94 -0
  272. data/test/test_node.rb +367 -0
  273. data/test/test_output_filesystem.rb +60 -0
  274. data/test/test_page.rb +214 -0
  275. data/test/test_path.rb +165 -0
  276. data/test/test_source_filesystem.rb +76 -0
  277. data/test/test_source_resource.rb +28 -0
  278. data/test/test_source_stacked.rb +36 -0
  279. data/test/test_source_tararchive.rb +65 -0
  280. data/test/test_sourcehandler_base.rb +123 -0
  281. data/test/test_sourcehandler_copy.rb +47 -0
  282. data/test/test_sourcehandler_directory.rb +42 -0
  283. data/test/test_sourcehandler_feed.rb +77 -0
  284. data/test/test_sourcehandler_fragment.rb +69 -0
  285. data/test/test_sourcehandler_memory.rb +44 -0
  286. data/test/test_sourcehandler_metainfo.rb +118 -0
  287. data/test/test_sourcehandler_page.rb +65 -0
  288. data/test/test_sourcehandler_sitemap.rb +49 -0
  289. data/test/test_sourcehandler_template.rb +65 -0
  290. data/test/test_sourcehandler_virtual.rb +87 -0
  291. data/test/test_tag_base.rb +85 -0
  292. data/test/test_tag_breadcrumbtrail.rb +91 -0
  293. data/test/test_tag_coderay.rb +32 -0
  294. data/test/test_tag_date.rb +18 -0
  295. data/test/test_tag_executecommand.rb +41 -0
  296. data/test/test_tag_includefile.rb +50 -0
  297. data/test/test_tag_langbar.rb +72 -0
  298. data/test/test_tag_link.rb +69 -0
  299. data/test/test_tag_menu.rb +207 -0
  300. data/test/test_tag_metainfo.rb +19 -0
  301. data/test/test_tag_relocatable.rb +59 -0
  302. data/test/test_tag_sitemap.rb +47 -0
  303. data/test/test_tag_tikz.rb +69 -0
  304. data/test/test_tree.rb +70 -0
  305. data/test/test_webgentask.rb +23 -0
  306. data/test/test_website.rb +98 -0
  307. data/test/test_websiteaccess.rb +25 -0
  308. data/test/test_websitemanager.rb +70 -0
  309. metadata +613 -0
@@ -0,0 +1,959 @@
1
+ ---
2
+ title: Configuration Option Reference
3
+ in_menu: false
4
+ ---
5
+
6
+ # Configuration Option Reference
7
+
8
+ This reference describes all available configurations that can be set via the [configuration
9
+ file]({relocatable: manual.html#website-configfile}) `config.yaml` (or, if you want to have more
10
+ control, via an extension file).
11
+
12
+ The reference is splitted into sections to provide better navigation. A sub header under a category
13
+ always specifies the name of a configuration option and after that comes a description and example
14
+ code. The example code either shows how to set this option in the configuration file (for most
15
+ configuration options) and/or how to use it in a webgen tag (for tag configuration options).
16
+
17
+ ## General Options
18
+
19
+ * ### website.lang
20
+
21
+ Specifies the default language of the website. The default language is assigned, for example, to
22
+ page files for which a language is not explicitly specified.
23
+
24
+ * Syntax: `LANGUAGE` where `LANGUAGE` is a ISO-639-1/2 two or three letter language code
25
+
26
+ * Example for setting the option in the configuration file:
27
+
28
+ website.lang: de
29
+
30
+
31
+ * ### website.link\_to\_current\_page
32
+
33
+ If this option is set to `true`, automatically generated links from a page to itself are
34
+ used. Otherwise, only the title of the page is shown.
35
+
36
+ * Syntax: `BOOLEAN` where `BOOLEAN` is `true` or `false`
37
+
38
+ * Example for setting the option in the configuration file:
39
+
40
+ website.link_to_current_page: false
41
+
42
+
43
+ * ### website.cache
44
+
45
+ Specifies the type and location of the cache. Two types are currently supported: `:file` and
46
+ `:string`. The file cache type stores the cache in a file relative to the website directory. The
47
+ string cache type stores the cache directly in the second part of the configuration option (this
48
+ is only useful when webgen is used as a library).
49
+
50
+ * Syntax: `[TYPE, LOCATION]` where `TYPE` is one of `:file` or `:string`
51
+
52
+ * Example for setting the option in the configuration file:
53
+
54
+ website.cache: [:file, my.cache]
55
+
56
+
57
+ ## Commonly Used Options
58
+
59
+ * ### common.sitemap.honor\_in\_menu
60
+
61
+ Specifies whether the sitemap should only include nodes that have the meta information `in_menu`
62
+ set.
63
+
64
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
65
+
66
+ * Example for setting the option in the configuration file:
67
+
68
+ common.sitemap.honor_in_menu: true
69
+
70
+ Example for setting the option directly in a tag:
71
+
72
+ Sitemap with in-menu nodes: \{sitemap: {honor_in_menu: true}}
73
+
74
+
75
+ * ### common.sitemap.any\_lang
76
+
77
+ Specifies whether the sitemap should include nodes in any language or only those without a
78
+ language or with the language of the node in which the sitemap tag is used.
79
+
80
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
81
+
82
+ * Example for setting the option in the configuration file:
83
+
84
+ common.sitemap.any_lang: true
85
+
86
+ Example for setting the option directly in a tag:
87
+
88
+ Sitemap with nodes in any language: \{sitemap: {any_lang: true}}
89
+
90
+
91
+ * ### common.sitemap.used\_kinds
92
+
93
+ Specifies the kind of nodes that should be used in the sitemap. This defaults to all nodes with
94
+ the kind `page`. If this is set to an empty array, any kind of node is used.
95
+
96
+ * Syntax: `[KIND, ...]` where `KIND` is the kind of node that should be used.
97
+
98
+ * Example for setting the option in the configuration file:
99
+
100
+ common.sitemap.used_kinds: [asset]
101
+
102
+ Example for setting the option directly in a tag:
103
+
104
+ Sitemap with only asset nodes: \{sitemap: {used_kinds: [asset]}}
105
+
106
+
107
+ ## Source and Output Specific Options
108
+
109
+ * ### sources
110
+
111
+ Specifies one or more sources from which paths are read. This can also be used, for example, to
112
+ additionally add other directories as source directories that may or may not be located in the
113
+ website directory.
114
+
115
+ * Syntax: `[[MOUNT POINT, NAME, ARG1, ARG2, ...], ...]` where `MOUNT POINT` is the path under
116
+ which the source should be mounted, `NAME` is the name of the source class (for example,
117
+ `Webgen::Source::FileSystem`) and `ARG1`, `ARG2` and so on are the parameters for the source
118
+ class. The supported parameters can be found in the documentation for each source class.
119
+
120
+ * Example for setting the option in the configuration file:
121
+
122
+ sources: [[/, Webgen::Source::FileSystem, src], [/, Webgen::Source::FileSystem, /mnt/pictures, **/*.jpg]
123
+
124
+ Also have a look at the [file system source documentation]({relocatable:
125
+ source/filesystem.html}) for more examples!
126
+
127
+
128
+ * ### output
129
+
130
+ Specifies the output class that should be used for writing out the generated paths.
131
+
132
+ * Syntax: `[NAME, ARG1, ARG2, ...]` where `NAME` is the name of the output class (for example,
133
+ `Webgen::Output::FileSystem`) and `ARG1`, `ARG2` and so on are the parameters for the output
134
+ class. The supported parameters can be found in the documentation for each output class.
135
+
136
+ * Example for setting the option in the configuration file:
137
+
138
+ output: [Webgen::Output::FileSystem, custom_out]
139
+
140
+
141
+ * ### sourcehandler.patterns
142
+
143
+ Specifies the path patterns that are used by the individual source handlers. This configuration
144
+ option is not normally set directly in the configuration file but either in an extension file
145
+ (e.g. `ext/init.rb`) or using a [configuration file helper]({relocatable:
146
+ manual.html#website-configfile}) because otherwise the default entries would be overwritten.
147
+
148
+ * Syntax: `\{NAME: [PATTERN, PATTERN, ...], ...}` where `NAME` is the
149
+ name the name of a source handler and `PATTERN` are one or more path patterns.
150
+
151
+ * Example for setting the option in `ext/init.rb`:
152
+
153
+ config = Webgen::WebsiteAccess.website.config
154
+ config['sourcehandler.patterns']['Webgen::SourceHandler::Copy'] << '**/*.swf'
155
+
156
+ Example for setting the option via the configuration file helper in the configuration file:
157
+
158
+ patterns:
159
+ Copy:
160
+ add: [**/*.swf]
161
+
162
+
163
+ * ### sourcehandler.invoke
164
+
165
+ Specifies the invocation order of the various source handlers. This configuration option should
166
+ normally only be used by extensions to register their source handlers!
167
+
168
+ * Syntax: `\{ORDER: [NAME, ...], ...}` where `ORDER` is a number identifying the priority of the
169
+ invocation (source handlers with a lower `ORDER` setting are executed earlier than ones with a
170
+ higher `ORDER` setting) and `NAME` is the name of a source handler.
171
+
172
+ * Example for setting the option in `ext/init.rb`:
173
+
174
+ config = Webgen::WebsiteAccess.website.config
175
+ config['sourcehandler.invoke'][5] << 'Extension::MyNewSourceHandler'
176
+
177
+
178
+ * ### sourcehandler.casefold
179
+
180
+ Specifies whether path names should be considered case-sensitive (set to `false`) or
181
+ case-insensitive (set to `true`).
182
+
183
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
184
+
185
+ * Example for setting the option in the configuration file:
186
+
187
+ sourcehandler.casefold: true
188
+
189
+
190
+ * ### sourcehandler.use\_hidden\_files
191
+
192
+ Specifies whether hidden files (those starting with a dot) should be used.
193
+
194
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
195
+
196
+ * Example for setting the option in the configuration file:
197
+
198
+ sourcehandler.use_hidden_files: true
199
+
200
+
201
+ * ### sourcehandler.ignore
202
+
203
+ Specifies path patterns that should be ignored. All paths that match at least one of the
204
+ patterns are never used.
205
+
206
+ * Syntax: `[PATTERN, ...]` where `PATTERN` is a valid path pattern.
207
+
208
+ * Example for setting the option in the configuration file:
209
+
210
+ sourcehandler.ignore: [**/*~, **/CVS/**]
211
+
212
+
213
+ * ### sourcehandler.default\_lang\_in\_output\_path
214
+
215
+ Specifies whether output paths in the default language should have the language code in their
216
+ name.
217
+
218
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
219
+
220
+ * Example for setting the option in the configuration file:
221
+
222
+ sourcehandler.default_lang_in_output_path: true
223
+
224
+
225
+ * ### sourcehandler.default\_meta\_info
226
+
227
+ Specifies default meta information for all source handlers or for specific ones. The
228
+ configuration file provides a shortcut for setting meta information items using the special
229
+ `default_meta_info` key (see the examples).
230
+
231
+ * Syntax: `\{NAME: {MI_KEY: MI_VALUE, ...}, ...}` where `NAME` is either the name of a source
232
+ handler or the special key `:all` which sets default meta info for all source handlers.
233
+
234
+ * Example for setting the option in the configuration file:
235
+
236
+ default_meta_info:
237
+ :all:
238
+ output_path_style: [:parent, :cnbase, :lang, :ext]
239
+ Webgen::SourceHandler::Page:
240
+ in_menu: true
241
+
242
+
243
+ * ### sourcehandler.template.default\_template
244
+
245
+ Specifies the name of the default template file of a directory. This template is used as
246
+ fallback when no specific template is specified.
247
+
248
+ * Syntax: `PATH` where `PATH` is the absolute localized canonical name of the default template.
249
+
250
+ * Example for setting the option in the configuration file:
251
+
252
+ sourcehandler.template.default_template: other.template
253
+
254
+
255
+ ## Content Processor Specific Options
256
+
257
+ * ### contentprocessor.map
258
+
259
+ This configuration option maps short names for content processor to their class names. The short
260
+ names are used, for example, in the procesing pipeline of a content block of a file in Webgen
261
+ Page Format. This configuration option is normally only used by extensions to register the short
262
+ name of a content processor!
263
+
264
+ * Syntax: `\{SHORT: NAME, ...}` where `SHORT` is the short name of the content processor class
265
+ `NAME`.
266
+
267
+ * Examples for setting the option in `ext/init.rb`:
268
+
269
+ config = Webgen::WebsiteAccess.website.config
270
+ config['contentprocessor.map']['newcp'] = 'Extension::MyNewContentProcessor'
271
+
272
+
273
+ * ### contentprocessor.erubis.use\_pi
274
+
275
+ Specifies whether Erubis should look for XML processing instructions or the standard ERB tags
276
+ when processing content.
277
+
278
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
279
+
280
+ * Example for setting the option in the configuration file:
281
+
282
+ contentprocessor.erubis.use_pi: true
283
+
284
+
285
+ * ### contentprocessor.erubis.options
286
+
287
+ This configuration option can be used to specify additional options that the Erubis processor
288
+ should use.
289
+
290
+ * Syntax: `\{KEY: VALUE, ...}` where `KEY` and `VALUE` are key-value pairs of options where
291
+ `KEY` needs to be a Symbol and not a String.
292
+
293
+ * Example for setting the option in the configuration file:
294
+
295
+ contentprocessor.erubis.options: {:trim: true}
296
+
297
+
298
+ * ### contentprocessor.tags.prefix
299
+
300
+ Specifies the optional prefix that is used for tag names to avoid name clashes when another
301
+ content processor uses similar markup.
302
+
303
+ * Syntax: `PREFIX` where `PREFIX` is the prefix name.
304
+
305
+ * Example for setting the option in the configuration file:
306
+
307
+ contentprocessor.tags.prefix: webgen
308
+
309
+
310
+ * ### contentprocessor.tags.map
311
+
312
+ This configuration option maps short names for tag classes to tag class names. The short names
313
+ are used in page and template files to specify the tag. This configuration option is normally
314
+ only used by extensions to register the short name of a content processor.
315
+
316
+ * Syntax: `\{SHORT: NAME, ...}` where `SHORT` is the short name of the tag class `NAME`.
317
+
318
+ * Example for setting the option in `ext/init.rb`:
319
+
320
+ config = Webgen::WebsiteAccess.website.config
321
+ config['contentprocessor.tags.map']['highlight'] = 'Extension::MyHighlightingTag'
322
+
323
+
324
+ ## Tag Specific Options
325
+
326
+ These options are not normally set in the configuration file but given directly as options to the
327
+ respective tag classes. Therefore, all options described in this section have an example which shows
328
+ how to use the option in files in Webgen Page Format and most options also have an example which
329
+ shows how to set the option in the configuration file.
330
+
331
+ * ### tag.breadcrumbtrail.separator
332
+
333
+ Specifies the string that should be used as separator between indivdual parts of the breadcrumb
334
+ trail.
335
+
336
+ * Syntax: `SEPARATOR` where `SEPARATOR` is a string (special HTML characters need to be properly
337
+ escaped)
338
+
339
+ * Example for setting the option in the configuration file:
340
+
341
+ tag.breadcrumbtrail.separator: '---'
342
+
343
+ Example for setting the option directly in a tag:
344
+
345
+ Breadcrumb trail with different separator: \{breadcrumb_trail: {separator: ' --- '}}
346
+
347
+
348
+ * ### tag.breadcrumbtrail.omit\_index\_path
349
+
350
+ Specifies that the last part of the breadcrumb trail should be omitted if it is an index path.
351
+
352
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
353
+
354
+ * Example for setting the option in the configuration file:
355
+
356
+ tag.breadcrumbtrail.omit_index_path: true
357
+
358
+ Example for setting the option directly in a tag:
359
+
360
+ Breadcrumb trail with index path omitted: \{breadcrumb_trail: {omit_index_path: true}}
361
+
362
+
363
+ * ### tag.breadcrumbtrail.start\_level
364
+
365
+ Specifies the level at which the breadcrumb trail starts. The default of 0 means to start a the
366
+ root directory. Setting this option to 1 starts the breadcrumb trail at the first level. If you
367
+ specify negative numbers, then everything is calculated from the end of the trail. Following is
368
+ a diagram showing the level numbers for a sample path:
369
+
370
+ 0 1 2 3
371
+ / dir1 / dir2 / myfile.html
372
+ -4 -3 -2 -1
373
+
374
+ Be aware that the you need to take the `tag.breadcrumbtrail.omit_index_path` option into
375
+ account when specifying the level number.
376
+
377
+ * Syntax: `INTEGER` where `INTEGER` is any integer number
378
+
379
+ * Example for setting the option in the configuration file:
380
+
381
+ tag.breadcrumbtrail.start_level: 2
382
+
383
+ Example for setting the option directly in a tag:
384
+
385
+ Breadcrumb trail starting at level 2: \{breadcrumb_trail: {start_level: 2}}
386
+
387
+
388
+ * ### tag.breadcrumbtrail.end\_level
389
+
390
+ Specifies the level at which the breadcrumb trail ends. Have a look at the documentation for
391
+ `tag.breadcrumbtrail.start_level` for more information on the useable level numbers.
392
+
393
+ * Syntax: `INTEGER` where `INTEGER` is any integer number
394
+
395
+ * Example for setting the option in the configuration file:
396
+
397
+ tag.breadcrumbtrail.end_level: 2
398
+
399
+ Example for setting the option directly in a tag:
400
+
401
+ Breadcrumb trail ending at level 2: \{breadcrumb_trail: {end_level: 2}}
402
+
403
+
404
+ * ### tag.coderay.lang
405
+
406
+ Specifies the language that should be used for syntax highlighting.
407
+
408
+ * Syntax: `LANG` where `LANG` is one of <%= (require 'coderay'; CodeRay::Scanners.list.map {|n| '`' + n + '`'}.join(', ')) %>.
409
+
410
+ * Example for setting the option in the configuration file:
411
+
412
+ tag.coderay.lang: ruby
413
+
414
+ Example for setting the option directly in a tag:
415
+
416
+ highlighting some ruby code \{coderay:: ruby}puts 5 + 5{coderay}
417
+
418
+
419
+ * ### tag.coderay.process\_body
420
+
421
+ Specifies whether the body of the tag should be processed by the tags content processor first.
422
+
423
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
424
+
425
+ * Example for setting the option in the configuration file:
426
+
427
+ tag.coderay.process_body: false
428
+
429
+ Example for setting the option directly in a tag:
430
+
431
+ wrapping in a span: \{coderay:: {lang: ruby, process_body: false}}puts 5 + 5{coderay}
432
+
433
+
434
+ * ### tag.coderay.wrap
435
+
436
+ Specifies in which HTML element the highlighted code should be wrapped.
437
+
438
+ * Syntax: `WRAP` where `WRAP` is either `div` or `span`
439
+
440
+ * Example for setting the option in the configuration file:
441
+
442
+ tag.coderay.wrap: span
443
+
444
+ Example for setting the option directly in a tag:
445
+
446
+ wrapping in a span: \{coderay:: {lang: ruby, wrap: span}}puts 5 + 5{coderay}
447
+
448
+
449
+ * ### tag.coderay.line\_numbers
450
+
451
+ Specifies whether line numbers should be shown.
452
+
453
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
454
+
455
+ * Example for setting the option in the configuration file:
456
+
457
+ tag.coderay.line_numbers: false
458
+
459
+ Example for setting the option directly in a tag:
460
+
461
+ not showing line numbers: \{coderay:: {lang: ruby, line_numbers: false}}puts 5 + 5{coderay}
462
+
463
+
464
+ * ### tag.coderay.line\_number\_start
465
+
466
+ Specifies the line number that should be used for the first line.
467
+
468
+ * Syntax: `NUMBER` where `NUMBER` is an integer value.
469
+
470
+ * Example for setting the option in the configuration file:
471
+
472
+ tag.coderay.line_number_start: 4
473
+
474
+ Example for setting the option directly in a tag:
475
+
476
+ starting with line 4: \{coderay:: {lang: ruby, line_number_start: 4}}puts 5 + 5{coderay}
477
+
478
+
479
+ * ### tag.coderay.bold\_every
480
+
481
+ Specifies the interval at which the line numbers should appear bold.
482
+
483
+ * Syntax: `NUMBER` where `NUMBER` is an integer value.
484
+
485
+ * Example for setting the option in the configuration file:
486
+
487
+ tag.coderay.bold_every: 2
488
+
489
+ Example for setting the option directly in a tag:
490
+
491
+ every other line bold: \{coderay:: {lang: ruby, bold_every: 2}}puts 5 + 5{coderay}
492
+
493
+
494
+ * ### tag.coderay.tab\_width
495
+
496
+ Specifies the number of spaces that should be used to replace tabulator characters.
497
+
498
+ * Syntax: `NUMBER` where `NUMBER` is an integer value.
499
+
500
+ * Example for setting the option in the configuration file:
501
+
502
+ tag.coderay.tab_width: 4
503
+
504
+ Example for setting the option directly in a tag:
505
+
506
+ tabulator == 4 spaces: \{coderay:: {lang: ruby, tab_width: 4}}puts 5 + 5{coderay}
507
+
508
+
509
+ * ### tag.date.format
510
+
511
+ Specifies the format that should be used for formatting the current date. The format string
512
+ needs to be in a format supported by Ruby's method
513
+ [Time#strftime](http://www.ruby-doc.org/core/classes/Time.html).
514
+
515
+ * Syntax: `FORMAT` where `FORMAT` is a string.
516
+
517
+ * Example for setting the option in the configuration file:
518
+
519
+ tag.date.format: '%Y-%m-%d'
520
+
521
+ Example for setting the option directly in a tag:
522
+
523
+ very short date format: \{date: {format: '%Y-%m-%d'}}
524
+
525
+
526
+ * ### tag.executecommand.command
527
+
528
+ Specifies the command that should be executed. This option is the default mandatory option for
529
+ Webgen::Tag::ExecuteCommand.
530
+
531
+ * Syntax: `COMMAND` where `COMMAND` is the to-be-executed command.
532
+
533
+ * Example for setting the option directly in a tag:
534
+
535
+ executing a simple command \{exeucte_cmd: echo hallo}
536
+
537
+
538
+ * ### tag.executecommand.process\_output
539
+
540
+ Specifies whether the output of the executed command should be further processed by the tags
541
+ content processor.
542
+
543
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
544
+
545
+ * Example for setting the option in the configuration file:
546
+
547
+ tag.executecommand.process_output: false
548
+
549
+ Example for setting the option directly in a tag:
550
+
551
+ executing command without further processing \{execute_cmd: {command: 'echo hallo', process_output: false}}
552
+
553
+
554
+ * ### tag.executecommand.escape\_html
555
+
556
+ Specifies whether special HTML characters in the output of the executed command should be escaped.
557
+
558
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
559
+
560
+ * Example for setting the option in the configuration file:
561
+
562
+ tag.executecommand.escape_html: false
563
+
564
+ Example for setting the option directly in a tag:
565
+
566
+ executing command, output not escaped \{execute_cmd: {command: 'echo hallo', escape_html: false}}
567
+
568
+
569
+ * ### tag.includefile.filename
570
+
571
+ Specifies the name of the file that should be included. The filename needs to be relative to the
572
+ website directory or an absolute path. This option is the default mandatory option for
573
+ Webgen::Tag::IncludeFile.
574
+
575
+ * Syntax: `FILENAME` where `FILENAME` is the name of a file
576
+
577
+ * Example for setting the option directly in a tag:
578
+
579
+ including a file \{include_file: my_file.txt}
580
+
581
+
582
+ * ### tag.includefile.process\_output
583
+
584
+ Specifies whether the content of the file should be further processed by the tags content
585
+ processor.
586
+
587
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
588
+
589
+ * Example for setting the option in the configuration file:
590
+
591
+ tag.includefile.process_output: false
592
+
593
+ Example for setting the option directly in a tag:
594
+
595
+ including a file without further processing \{include_file: {filename: my_file.txt, process_output: false}}
596
+
597
+
598
+ * ### tag.includefile.escape\_html
599
+
600
+ Specifies whether special HTML characters in the content of the file should be escaped.
601
+
602
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
603
+
604
+ * Example for setting the option in the configuration file:
605
+
606
+ tag.includefile.escape_html: false
607
+
608
+ Example for setting the option directly in a tag:
609
+
610
+ including a file without escaping \{include_file: {filename: my_file.txt, escape_html: false}}
611
+
612
+
613
+ * ### tag.langbar.separator
614
+
615
+ Specifies the string that should be used as separator between the individual language parts.
616
+
617
+ * Syntax: `SEPARATOR` where `SEPARATOR` is a string (special HTML characters need to be properly
618
+ escaped)
619
+
620
+ * Example for setting the option in the configuration file:
621
+
622
+ tag.langbar.separator: ' --- '
623
+
624
+ Example for setting the option directly in a tag:
625
+
626
+ Langbar with another separator: \{langbar: {separator: ' --- '}}
627
+
628
+
629
+ * ### tag.langbar.show\_own\_lang
630
+
631
+ Specifies whether the link to the language of the current page should be displayed.
632
+
633
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
634
+
635
+ * Example for setting the option in the configuration file:
636
+
637
+ tag.langbar.show_own_lang: false
638
+
639
+ Example for setting the option directly in a tag:
640
+
641
+ Langbar with current page's lang not shown: \{langbar: {show_own_lang: false}}
642
+
643
+
644
+ * ### tag.langbar.show\_single\_lang
645
+
646
+ Specifies whether the list should be displayed even if there are no translations of the page
647
+ (i.e. when there is only one page).
648
+
649
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
650
+
651
+ * Example for setting the option in the configuration file:
652
+
653
+ tag.langbar.show_single_lang: false
654
+
655
+ Example for setting the option directly in a tag:
656
+
657
+ Langbar with single language not shown: \{langbar: {show_single_lang: false}}
658
+
659
+
660
+ * ### tag.langbar.lang\_names
661
+
662
+ This configuration option can be used to specify the language names that should be displayed
663
+ instead of the language codes.
664
+
665
+ * Syntax: `\{CODE: NAME, ...}` where `CODE` is a language code and `NAME` the associated language
666
+ name of the code.
667
+
668
+ * Example for setting the option in the configuration file:
669
+
670
+ tag.langbar.lang_names: \{de: Deutsch, en: English}
671
+
672
+ Example for setting the option directly in a tag:
673
+
674
+ Langbar with custom language names: \{langbar: {lang_names: {de: Deutsch, en: English}}}
675
+
676
+
677
+ * ### tag.link.path
678
+
679
+ The default mandatory configuration option for Tag::Link that specifies the (AL)CN path to which
680
+ should be linked.
681
+
682
+ * Syntax: `PATH` where `PATH` is an (absolute) (localized) canonical name.
683
+
684
+ * Example for setting the option directly in a tag:
685
+
686
+ You will find more information on the \{link: docu.html} page!
687
+
688
+
689
+ * ### tag.link.attr
690
+
691
+ Specifies additional HTML attributes that should be set on the link generated by Tag::Link.
692
+
693
+ * Syntax: `\{NAME: VALUE, ...}` where `NAME` is a valid HTML attribute name and `VALUE` its
694
+ value.
695
+
696
+ * Example for setting the option in the configuration file:
697
+
698
+ tag.link.attr: \{title: DocuPage}
699
+
700
+ Example for setting the option directly in a tag:
701
+
702
+ You will find more info on the \{link: {path: docu.html, attr: {title: DocuPage}}} page!
703
+
704
+
705
+ * ### tag.menu.used\_nodes
706
+
707
+ Specifies the type of nodes that should be used for menu generation. If `all` is specified then
708
+ all available menu nodes are used, if `files` is specified then only menu nodes that represent
709
+ files or directories are used and if `fragments` is specified then only the fragment nodes of
710
+ the displayed file are used.
711
+
712
+ * Syntax: `TYPE` where `TYPE` is one of `all`, `files` or `fragments`
713
+
714
+ * Example for setting the option in the configuration file:
715
+
716
+ tag.menu.used_nodes: fragments
717
+
718
+ Example for setting the option directly in a tag:
719
+
720
+ Show the fragment node menu: \{menu: {used_nodes: fragments}}
721
+
722
+
723
+ * ### tag.menu.start\_level
724
+
725
+ Specifies the start level for the menu. All nodes with a lower level than this number are not
726
+ shown in the menu.
727
+
728
+ * Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
729
+
730
+ * Example for setting the option in the configuration file:
731
+
732
+ tag.menu.start_level: 2
733
+
734
+ Example for setting the option directly in a tag:
735
+
736
+ Menu starting at level 2: \{menu: {start_level: 2}}
737
+
738
+
739
+ * ### tag.menu.min\_levels
740
+
741
+ Specifies the minimum number of levels that should always be shown. For example, if this is set
742
+ to `2` then two menu levels are always shown.
743
+
744
+ * Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
745
+
746
+ * Example for setting the option in the configuration file:
747
+
748
+ tag.menu.min_levels: 2
749
+
750
+ Example for setting the option directly in a tag:
751
+
752
+ Menu that always shows at least 2 levels : \{menu: {min_levels: 2}}
753
+
754
+
755
+ * ### tag.menu.max\_levels
756
+
757
+ Specifies the maximum number of levels that should be shown even if there would be more. For
758
+ example, if this is set to `2` then there are only shown at most two menu levels.
759
+
760
+ * Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
761
+
762
+ * Example for setting the option in the configuration file:
763
+
764
+ tag.menu.max_levels: 2
765
+
766
+ Example for setting the option directly in a tag:
767
+
768
+ Menu that always shows at most 2 levels : \{menu: {max_levels: 2}}
769
+
770
+
771
+ * ### tag.menu.show\_current\_subtree\_only
772
+
773
+ Specifies whether only the current subtree (ie. the subtree in which the node is that is
774
+ displayed) should be shown in the menu or all subtrees. This option takes effect when there are
775
+ at least two menu levels visible.
776
+
777
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
778
+
779
+ * Example for setting the option in the configuration file:
780
+
781
+ tag.menu.show_current_subtree_only: false
782
+
783
+ Example for setting the option directly in a tag:
784
+
785
+ Showing all subtrees: \{menu: {show_current_subtree_only: false}}
786
+
787
+
788
+ * ### tag.menu.nested
789
+
790
+ Specifies whether the generated menu should contain nested lists, ie. whether sub menus are
791
+ put inline
792
+
793
+ ul 1
794
+ li 2
795
+ ul 3
796
+ li 4
797
+ li 5
798
+ li 6
799
+
800
+ or separately following the previous menu level
801
+
802
+ ul 1
803
+ li 2
804
+ li 6
805
+ ul 3
806
+ li 4
807
+ li 5
808
+
809
+ > When this option is enabled you should enable the option
810
+ > `tag.menu.show_current_subtree_only`. Otherwise the generated menu will look a little bit
811
+ > confusing.
812
+ {.information}
813
+
814
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
815
+
816
+ * Example for setting the option in the configuration file:
817
+
818
+ tag.menu.nested: false
819
+
820
+ Example for setting the option directly in a tag:
821
+
822
+ Don't use nested lists: \{menu: {nested: false}}
823
+
824
+
825
+ * ### tag.relocatable.path
826
+
827
+ The default mandatory configuration option for Tag::Relocatable that specifies the path that
828
+ should be made relocatable.
829
+
830
+ * Syntax: `PATH` where `PATH` is a (localized) canonical name.
831
+
832
+ * Example for setting the option directly in a tag:
833
+
834
+ <a href="\{relocatable: ../features.html}">Some Path</a>
835
+
836
+
837
+ * ### tag.tikz.path
838
+
839
+ The default mandatory configuration option for Tag::TikZ that specifies the (naturally
840
+ non-existing) source path that should be used for creating the TikZ image. The output path is
841
+ derived from this path the usual way. You shouldn't use a path that does already exist!
842
+
843
+ * Syntax: `PATH` where `PATH` is a relative or absolute source path.
844
+
845
+ * Example for setting the option directly in a tag:
846
+
847
+ \{tikz:: images/tikz.png}\tikz \draw (0,0) -- (0,2);{tikz}
848
+
849
+
850
+ * ### tag.tikz.libraries
851
+
852
+ Specifies the names of additional TikZ library names that should be used when creating the
853
+ image.
854
+
855
+ * Syntax: `[NAME, ...]` where `NAME` is the name of a TikZ library.
856
+
857
+ * Example for setting the option in the configuration file:
858
+
859
+ tag.tikz.libraries: [mindmap, arrows]
860
+
861
+ Example for setting the option directly in a tag:
862
+
863
+ \{tikz:: {path: images/tikz.png, libraries: [mindmap, arrows]}}
864
+ \tikz \draw (0,0) -- (0,2) -- (2,2);
865
+ {tikz}
866
+
867
+
868
+ * ### tag.tikz.opts
869
+
870
+ Specifies additional global options for the `tikzpicture` environment.
871
+
872
+ * Syntax: `OPTS` where `OPTS` is the string with the global options.
873
+
874
+ * Example for setting the option in the configuration file:
875
+
876
+ tag.tikz.opts: 'scale=3, line cap=round'
877
+
878
+ Example for setting the option directly in a tag:
879
+
880
+ \{tikz:: {path: images/tikz.png, opts: 'scale=3, line cap=round'}}
881
+ \tikz \draw (0,0) -- (0,2) -- (2,2);
882
+ {tikz}
883
+
884
+
885
+ * ### tag.tikz.resolution
886
+
887
+ Specifies the render and output resolutions that should be used to convert the TikZ image in PDF
888
+ format to the chosen image format. The first number specifies the render resolution and the
889
+ second one the output resolution. If the render resolution is higher than the output resolution,
890
+ the final image quality is better but the image needs to scaled down to the output resolution.
891
+
892
+ * Syntax: `RENDER_RES OUTPUT_RES` where `RENDER_RES` is the integer specifying the render
893
+ resolution and `OUTPUT_RES` is the integer specifying the output resolution.
894
+
895
+ * Example for setting the option in the configuration file:
896
+
897
+ tag.tikz.resolution: 300 72
898
+
899
+ Example for setting the option directly in a tag:
900
+
901
+ \{tikz:: {path: images/tikz.png, resolution: 300 72}}
902
+ \tikz \draw (0,0) -- (0,2) -- (2,2);
903
+ {tikz}
904
+
905
+
906
+ * ### tag.tikz.transparent
907
+
908
+ Specifies whether the generated image should be transparent. This only works when the path
909
+ specified by `tag.tikz.path` option has the extension `.png`! You should probably also set the
910
+ background of the generated image tag to transparent.
911
+
912
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
913
+
914
+ * Example for setting the option in the configuration file:
915
+
916
+ tag.tikz.transparent: true
917
+
918
+ Example for setting the option directly in a tag:
919
+
920
+ \{tikz:: {path: images/tikz.png, transparent: true}}
921
+ \tikz \draw (0,0) -- (0,2) -- (2,2);
922
+ {tikz}
923
+
924
+
925
+ * ### tag.tikz.img\_attr
926
+
927
+ Specifies additional HTML attributes that should be set on the generated `img` tag.
928
+
929
+ * Syntax: `\{KEY:VALUE, ...}` where `KEY` is a valid HTML `img` tag attribute name and `VALUE`
930
+ the to-be-set value.
931
+
932
+ * Example for setting the option in the configuration file:
933
+
934
+ tag.tikz.img_attr: \{alt: Some TikZ picture}
935
+
936
+ Example for setting the option directly in a tag:
937
+
938
+ \{tikz:: {path: images/tikz.png, img_attr: {alt: Some TikZ picture}}}
939
+ \tikz \draw (0,0) -- (0,2) -- (2,2);
940
+ {tikz}
941
+
942
+ ---
943
+
944
+ ## Miscelleanous Configuration Options
945
+
946
+ * ### resources
947
+
948
+ A map from resource names to resource identifiers. Should only be used by extensions and not be
949
+ set in the configuration file.
950
+
951
+ * Syntax: `NAME` TODO
952
+
953
+ # All things regarding logging
954
+ config.logger.mask(nil, :doc => 'Only show logging events which match the regexp mask')
955
+
956
+
957
+
958
+
959
+