webgen 0.4.7 → 0.5.0

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 (782) hide show
  1. data/AUTHORS +5 -0
  2. data/COPYING +8 -338
  3. data/GPL +340 -0
  4. data/Rakefile +188 -445
  5. data/THANKS +7 -22
  6. data/VERSION +1 -1
  7. data/bin/webgen +6 -1
  8. data/data/webgen/resources.yaml +3 -0
  9. data/data/webgen/website_skeleton/README +10 -0
  10. data/data/webgen/website_skeleton/Rakefile +40 -0
  11. data/data/webgen/website_skeleton/config.yaml +17 -0
  12. data/data/webgen/website_styles/1024px/{default.css → src/default.css} +0 -0
  13. data/data/webgen/website_styles/1024px/{default.template → src/default.template} +3 -5
  14. data/data/webgen/website_styles/1024px/{images → src/images}/background.gif +0 -0
  15. data/data/webgen/website_styles/andreas00/{default.css → src/default.css} +0 -0
  16. data/{doc/examples → data/webgen}/website_styles/andreas00/src/default.template +3 -5
  17. data/data/webgen/website_styles/andreas00/{images → src/images}/bg.gif +0 -0
  18. data/data/webgen/website_styles/andreas00/{images → src/images}/front.jpg +0 -0
  19. data/data/webgen/website_styles/andreas00/{images → src/images}/menubg.gif +0 -0
  20. data/data/webgen/website_styles/andreas00/{images → src/images}/menubg2.gif +0 -0
  21. data/data/webgen/website_styles/andreas01/{default.css → src/default.css} +0 -0
  22. data/{doc/examples → data/webgen}/website_styles/andreas01/src/default.template +3 -5
  23. data/data/webgen/website_styles/andreas01/{images → src/images}/bg.gif +0 -0
  24. data/data/webgen/website_styles/andreas01/{images → src/images}/front.jpg +0 -0
  25. data/data/webgen/website_styles/andreas01/{print.css → src/print.css} +0 -0
  26. data/data/webgen/website_styles/andreas03/{default.css → src/default.css} +0 -0
  27. data/data/webgen/website_styles/andreas03/{default.template → src/default.template} +2 -4
  28. data/data/webgen/website_styles/andreas03/{images → src/images}/bodybg.png +0 -0
  29. data/data/webgen/website_styles/andreas03/{images → src/images}/contbg.png +0 -0
  30. data/data/webgen/website_styles/andreas03/{images → src/images}/footerbg.png +0 -0
  31. data/data/webgen/website_styles/andreas03/{images → src/images}/gradient1.png +0 -0
  32. data/data/webgen/website_styles/andreas03/{images → src/images}/gradient2.png +0 -0
  33. data/data/webgen/website_styles/andreas04/{default.css → src/default.css} +0 -0
  34. data/data/webgen/website_styles/andreas04/{default.template → src/default.template} +2 -4
  35. data/data/webgen/website_styles/andreas04/{images → src/images}/blinkarrow.gif +0 -0
  36. data/data/webgen/website_styles/andreas04/{images → src/images}/bodybg.png +0 -0
  37. data/data/webgen/website_styles/andreas04/{images → src/images}/contentbg.png +0 -0
  38. data/data/webgen/website_styles/andreas04/{images → src/images}/entrybg.png +0 -0
  39. data/data/webgen/website_styles/andreas04/{images → src/images}/flash.gif +0 -0
  40. data/data/webgen/website_styles/andreas04/{images → src/images}/flash2.gif +0 -0
  41. data/data/webgen/website_styles/andreas04/{images → src/images}/globe.gif +0 -0
  42. data/data/webgen/website_styles/andreas04/{images → src/images}/globebottom.gif +0 -0
  43. data/data/webgen/website_styles/andreas04/{images → src/images}/linkarrow.gif +0 -0
  44. data/data/webgen/website_styles/andreas04/{images → src/images}/menuhover.png +0 -0
  45. data/data/webgen/website_styles/andreas05/{default.css → src/default.css} +0 -0
  46. data/data/webgen/website_styles/andreas05/{default.template → src/default.template} +2 -4
  47. data/data/webgen/website_styles/andreas05/{images → src/images}/bodybg.gif +0 -0
  48. data/data/webgen/website_styles/andreas05/{images → src/images}/front.png +0 -0
  49. data/data/webgen/website_styles/andreas06/{default.css → src/default.css} +0 -0
  50. data/{doc/examples → data/webgen}/website_styles/andreas06/src/default.template +4 -6
  51. data/data/webgen/website_styles/andreas06/{images → src/images}/bodybg.gif +0 -0
  52. data/data/webgen/website_styles/andreas06/{images → src/images}/boxbg.gif +0 -0
  53. data/data/webgen/website_styles/andreas06/{images → src/images}/greypx.gif +0 -0
  54. data/data/webgen/website_styles/andreas06/{images → src/images}/header.jpg +0 -0
  55. data/data/webgen/website_styles/andreas06/{images → src/images}/innerbg.gif +0 -0
  56. data/data/webgen/website_styles/andreas06/{images → src/images}/leaves.jpg +0 -0
  57. data/data/webgen/website_styles/andreas06/{images → src/images}/tabs.gif +0 -0
  58. data/data/webgen/website_styles/andreas07/{browserfix.css → src/browserfix.css} +0 -0
  59. data/data/webgen/website_styles/andreas07/{default.css → src/default.css} +0 -0
  60. data/{doc/examples → data/webgen}/website_styles/andreas07/src/default.template +2 -4
  61. data/data/webgen/website_styles/andreas07/{images → src/images}/bodybg.gif +0 -0
  62. data/data/webgen/website_styles/andreas07/{images → src/images}/sidebarbg.gif +0 -0
  63. data/data/webgen/website_styles/andreas08/{default.css → src/default.css} +0 -0
  64. data/{doc/examples → data/webgen}/website_styles/andreas08/src/default.template +3 -5
  65. data/data/webgen/website_styles/andreas09/{default.css → src/default.css} +0 -0
  66. data/data/webgen/website_styles/andreas09/{default.template → src/default.template} +4 -6
  67. data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-black.jpg +0 -0
  68. data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-green.jpg +0 -0
  69. data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-orange.jpg +0 -0
  70. data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-purple.jpg +0 -0
  71. data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-red.jpg +0 -0
  72. data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg.jpg +0 -0
  73. data/data/webgen/website_styles/andreas09/{images → src/images}/footerbg.jpg +0 -0
  74. data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-black.jpg +0 -0
  75. data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-green.jpg +0 -0
  76. data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-orange.jpg +0 -0
  77. data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-purple.jpg +0 -0
  78. data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-red.jpg +0 -0
  79. data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover.jpg +0 -0
  80. data/data/webgen/website_styles/{default → simple}/README +0 -0
  81. data/data/webgen/website_styles/{default → simple/src}/default.css +0 -0
  82. data/{doc/examples/website_styles/default → data/webgen/website_styles/simple}/src/default.template +3 -5
  83. data/data/webgen/website_templates/default/README +0 -2
  84. data/data/webgen/website_templates/default/src/index.page +3 -3
  85. data/data/webgen/website_templates/project/README +0 -4
  86. data/data/webgen/website_templates/project/src/about.page +5 -5
  87. data/data/webgen/website_templates/project/src/download.page +3 -3
  88. data/data/webgen/website_templates/project/src/features.page +3 -3
  89. data/data/webgen/website_templates/project/src/index.page +4 -4
  90. data/data/webgen/website_templates/project/src/screenshots.page +5 -5
  91. data/doc/contentprocessor/erb.page +38 -0
  92. data/doc/contentprocessor/tags.page +61 -0
  93. data/doc/extensions.page +11 -0
  94. data/doc/faq.page +177 -0
  95. data/doc/getting_started.page +130 -0
  96. data/doc/index.page +50 -0
  97. data/doc/manual.page +356 -0
  98. data/doc/reference_configuration.page +328 -0
  99. data/doc/reference_metainfo.page +128 -0
  100. data/doc/sourcehandler/metainfo.page +117 -0
  101. data/doc/sourcehandler/page.page +32 -0
  102. data/doc/webgen_page_format.page +126 -0
  103. data/lib/webgen/blackboard.rb +73 -0
  104. data/lib/webgen/cache.rb +77 -0
  105. data/lib/webgen/cli.rb +99 -440
  106. data/lib/webgen/cli/create_command.rb +64 -0
  107. data/lib/webgen/cli/run_command.rb +20 -0
  108. data/lib/webgen/cli/utils.rb +82 -0
  109. data/lib/webgen/configuration.rb +71 -0
  110. data/lib/webgen/contentprocessor.rb +89 -0
  111. data/lib/webgen/contentprocessor/blocks.rb +46 -0
  112. data/lib/webgen/contentprocessor/context.rb +86 -0
  113. data/lib/webgen/contentprocessor/maruku.rb +18 -0
  114. data/lib/webgen/contentprocessor/redcloth.rb +15 -0
  115. data/lib/webgen/contentprocessor/tags.rb +134 -0
  116. data/lib/webgen/default_config.rb +128 -0
  117. data/lib/webgen/languages.rb +508 -40
  118. data/lib/webgen/loggable.rb +23 -0
  119. data/lib/webgen/logger.rb +78 -0
  120. data/lib/webgen/node.rb +275 -237
  121. data/lib/webgen/output.rb +31 -0
  122. data/lib/webgen/output/filesystem.rb +61 -0
  123. data/lib/webgen/page.rb +129 -0
  124. data/lib/webgen/path.rb +172 -0
  125. data/lib/webgen/source.rb +24 -0
  126. data/lib/webgen/source/filesystem.rb +56 -0
  127. data/lib/webgen/source/resource.rb +33 -0
  128. data/lib/webgen/source/stacked.rb +53 -0
  129. data/lib/webgen/sourcehandler.rb +175 -0
  130. data/lib/webgen/sourcehandler/base.rb +188 -0
  131. data/lib/webgen/sourcehandler/copy.rb +41 -0
  132. data/lib/webgen/sourcehandler/directory.rb +31 -0
  133. data/lib/webgen/sourcehandler/fragment.rb +66 -0
  134. data/lib/webgen/sourcehandler/metainfo.rb +107 -0
  135. data/lib/webgen/sourcehandler/page.rb +47 -0
  136. data/lib/webgen/sourcehandler/template.rb +64 -0
  137. data/lib/webgen/sourcehandler/virtual.rb +72 -0
  138. data/lib/webgen/tag.rb +16 -0
  139. data/lib/webgen/tag/base.rb +162 -0
  140. data/lib/webgen/tag/menu.rb +187 -0
  141. data/lib/webgen/tag/metainfo.rb +25 -0
  142. data/lib/webgen/tag/relocatable.rb +53 -0
  143. data/lib/webgen/tree.rb +80 -0
  144. data/lib/webgen/version.rb +6 -0
  145. data/lib/webgen/webgentask.rb +153 -0
  146. data/lib/webgen/website.rb +166 -288
  147. data/lib/webgen/websiteaccess.rb +29 -0
  148. data/lib/webgen/websitemanager.rb +124 -0
  149. data/man/man1/webgen.1 +31 -42
  150. data/misc/default.css +337 -0
  151. data/misc/default.template +73 -0
  152. data/misc/htmldoc.metainfo +22 -0
  153. data/misc/htmldoc.virtual +5 -0
  154. data/misc/images/arrow.gif +0 -0
  155. data/misc/images/error.gif +0 -0
  156. data/misc/images/exclamation.gif +0 -0
  157. data/misc/images/headerbg.jpg +0 -0
  158. data/misc/images/information.gif +0 -0
  159. data/misc/images/quote.gif +0 -0
  160. data/test/helper.rb +28 -0
  161. data/test/test_blackboard.rb +58 -0
  162. data/test/test_cache.rb +57 -0
  163. data/test/test_configuration.rb +35 -0
  164. data/test/test_contentprocessor.rb +31 -0
  165. data/test/test_contentprocessor_blocks.rb +34 -0
  166. data/test/test_contentprocessor_context.rb +38 -0
  167. data/test/test_contentprocessor_maruku.rb +24 -0
  168. data/test/test_contentprocessor_redcloth.rb +12 -0
  169. data/test/test_contentprocessor_tags.rb +97 -0
  170. data/test/test_languages.rb +53 -0
  171. data/test/test_loggable.rb +30 -0
  172. data/test/test_logger.rb +73 -0
  173. data/test/test_node.rb +305 -0
  174. data/test/test_output_filesystem.rb +57 -0
  175. data/test/test_page.rb +180 -0
  176. data/test/test_path.rb +112 -0
  177. data/test/test_source_filesystem.rb +59 -0
  178. data/test/test_source_resource.rb +21 -0
  179. data/test/test_source_stacked.rb +34 -0
  180. data/test/test_sourcehandler_base.rb +78 -0
  181. data/test/test_sourcehandler_copy.rb +45 -0
  182. data/test/test_sourcehandler_directory.rb +25 -0
  183. data/test/test_sourcehandler_fragment.rb +62 -0
  184. data/test/test_sourcehandler_metainfo.rb +79 -0
  185. data/test/test_sourcehandler_page.rb +62 -0
  186. data/test/test_sourcehandler_template.rb +61 -0
  187. data/test/test_sourcehandler_virtual.rb +46 -0
  188. data/test/test_tag_base.rb +82 -0
  189. data/test/test_tag_menu.rb +196 -0
  190. data/test/test_tag_metainfo.rb +17 -0
  191. data/test/test_tag_relocatable.rb +57 -0
  192. data/test/test_tree.rb +69 -0
  193. data/test/test_website.rb +96 -0
  194. data/test/test_websiteaccess.rb +23 -0
  195. data/test/test_websitemanager.rb +68 -0
  196. metadata +276 -800
  197. data/ChangeLog +0 -46
  198. data/README +0 -14
  199. data/TODO +0 -376
  200. data/data/webgen/data/ISO-639-2_values_8bits.txt +0 -492
  201. data/data/webgen/gallery-creator/default.png +0 -0
  202. data/data/webgen/gallery_styles/default/README +0 -6
  203. data/data/webgen/gallery_styles/default/gallery_gallery.template +0 -38
  204. data/data/webgen/gallery_styles/default/gallery_image.template +0 -30
  205. data/data/webgen/gallery_styles/default/gallery_main.template +0 -18
  206. data/data/webgen/gallery_styles/slides/README +0 -18
  207. data/data/webgen/gallery_styles/slides/collage.rb +0 -337
  208. data/data/webgen/gallery_styles/slides/gallery_gallery.template +0 -62
  209. data/data/webgen/gallery_styles/slides/gallery_image.template +0 -53
  210. data/data/webgen/gallery_styles/slides/gallery_main.template +0 -32
  211. data/data/webgen/icon_mapping.yaml +0 -27
  212. data/data/webgen/resources/emoticons/bigeyes/angry.png +0 -0
  213. data/data/webgen/resources/emoticons/bigeyes/cool.png +0 -0
  214. data/data/webgen/resources/emoticons/bigeyes/cry.png +0 -0
  215. data/data/webgen/resources/emoticons/bigeyes/drunk.png +0 -0
  216. data/data/webgen/resources/emoticons/bigeyes/lol.png +0 -0
  217. data/data/webgen/resources/emoticons/bigeyes/oops.png +0 -0
  218. data/data/webgen/resources/emoticons/bigeyes/sad.png +0 -0
  219. data/data/webgen/resources/emoticons/bigeyes/sleep.png +0 -0
  220. data/data/webgen/resources/emoticons/bigeyes/smile.png +0 -0
  221. data/data/webgen/resources/emoticons/bigeyes/tongue.png +0 -0
  222. data/data/webgen/resources/emoticons/bigeyes/wink.png +0 -0
  223. data/data/webgen/resources/emoticons/crystal/angry.png +0 -0
  224. data/data/webgen/resources/emoticons/crystal/cool.png +0 -0
  225. data/data/webgen/resources/emoticons/crystal/cry.png +0 -0
  226. data/data/webgen/resources/emoticons/crystal/drunk.png +0 -0
  227. data/data/webgen/resources/emoticons/crystal/lol.png +0 -0
  228. data/data/webgen/resources/emoticons/crystal/oops.png +0 -0
  229. data/data/webgen/resources/emoticons/crystal/sad.png +0 -0
  230. data/data/webgen/resources/emoticons/crystal/sleep.png +0 -0
  231. data/data/webgen/resources/emoticons/crystal/smile.png +0 -0
  232. data/data/webgen/resources/emoticons/crystal/tongue.png +0 -0
  233. data/data/webgen/resources/emoticons/crystal/wink.png +0 -0
  234. data/data/webgen/resources/emoticons/cyclops/angry.png +0 -0
  235. data/data/webgen/resources/emoticons/cyclops/cool.png +0 -0
  236. data/data/webgen/resources/emoticons/cyclops/cry.png +0 -0
  237. data/data/webgen/resources/emoticons/cyclops/drunk.png +0 -0
  238. data/data/webgen/resources/emoticons/cyclops/lol.png +0 -0
  239. data/data/webgen/resources/emoticons/cyclops/oops.png +0 -0
  240. data/data/webgen/resources/emoticons/cyclops/sad.png +0 -0
  241. data/data/webgen/resources/emoticons/cyclops/sleep.png +0 -0
  242. data/data/webgen/resources/emoticons/cyclops/smile.png +0 -0
  243. data/data/webgen/resources/emoticons/cyclops/tongue.png +0 -0
  244. data/data/webgen/resources/emoticons/cyclops/wink.png +0 -0
  245. data/data/webgen/resources/emoticons/glass/angry.png +0 -0
  246. data/data/webgen/resources/emoticons/glass/cool.png +0 -0
  247. data/data/webgen/resources/emoticons/glass/cry.png +0 -0
  248. data/data/webgen/resources/emoticons/glass/drunk.png +0 -0
  249. data/data/webgen/resources/emoticons/glass/lol.png +0 -0
  250. data/data/webgen/resources/emoticons/glass/oops.png +0 -0
  251. data/data/webgen/resources/emoticons/glass/sad.png +0 -0
  252. data/data/webgen/resources/emoticons/glass/sleep.png +0 -0
  253. data/data/webgen/resources/emoticons/glass/smile.png +0 -0
  254. data/data/webgen/resources/emoticons/glass/tongue.png +0 -0
  255. data/data/webgen/resources/emoticons/glass/wink.png +0 -0
  256. data/data/webgen/resources/emoticons/icqstyle/angry.png +0 -0
  257. data/data/webgen/resources/emoticons/icqstyle/cool.png +0 -0
  258. data/data/webgen/resources/emoticons/icqstyle/cry.png +0 -0
  259. data/data/webgen/resources/emoticons/icqstyle/drunk.png +0 -0
  260. data/data/webgen/resources/emoticons/icqstyle/lol.png +0 -0
  261. data/data/webgen/resources/emoticons/icqstyle/oops.png +0 -0
  262. data/data/webgen/resources/emoticons/icqstyle/sad.png +0 -0
  263. data/data/webgen/resources/emoticons/icqstyle/sleep.png +0 -0
  264. data/data/webgen/resources/emoticons/icqstyle/smile.png +0 -0
  265. data/data/webgen/resources/emoticons/icqstyle/tongue.png +0 -0
  266. data/data/webgen/resources/emoticons/icqstyle/wink.png +0 -0
  267. data/data/webgen/resources/emoticons/matrix/angry.gif +0 -0
  268. data/data/webgen/resources/emoticons/matrix/cool.gif +0 -0
  269. data/data/webgen/resources/emoticons/matrix/cry.gif +0 -0
  270. data/data/webgen/resources/emoticons/matrix/drunk.gif +0 -0
  271. data/data/webgen/resources/emoticons/matrix/lol.gif +0 -0
  272. data/data/webgen/resources/emoticons/matrix/oops.gif +0 -0
  273. data/data/webgen/resources/emoticons/matrix/sad.gif +0 -0
  274. data/data/webgen/resources/emoticons/matrix/sleep.gif +0 -0
  275. data/data/webgen/resources/emoticons/matrix/smile.gif +0 -0
  276. data/data/webgen/resources/emoticons/matrix/tongue.gif +0 -0
  277. data/data/webgen/resources/emoticons/matrix/wink.gif +0 -0
  278. data/data/webgen/resources/emoticons/smellies/angry.gif +0 -0
  279. data/data/webgen/resources/emoticons/smellies/cool.gif +0 -0
  280. data/data/webgen/resources/emoticons/smellies/cry.gif +0 -0
  281. data/data/webgen/resources/emoticons/smellies/drunk.gif +0 -0
  282. data/data/webgen/resources/emoticons/smellies/lol.gif +0 -0
  283. data/data/webgen/resources/emoticons/smellies/oops.gif +0 -0
  284. data/data/webgen/resources/emoticons/smellies/sad.gif +0 -0
  285. data/data/webgen/resources/emoticons/smellies/sleep.gif +0 -0
  286. data/data/webgen/resources/emoticons/smellies/smile.gif +0 -0
  287. data/data/webgen/resources/emoticons/smellies/tongue.gif +0 -0
  288. data/data/webgen/resources/emoticons/smellies/wink.gif +0 -0
  289. data/data/webgen/resources/icons/compressed.png +0 -0
  290. data/data/webgen/resources/icons/document.png +0 -0
  291. data/data/webgen/resources/icons/download.png +0 -0
  292. data/data/webgen/resources/icons/image.png +0 -0
  293. data/data/webgen/resources/icons/linux.png +0 -0
  294. data/data/webgen/resources/icons/mac.png +0 -0
  295. data/data/webgen/resources/icons/pdf.png +0 -0
  296. data/data/webgen/resources/icons/penguin.png +0 -0
  297. data/data/webgen/resources/icons/quicktime.png +0 -0
  298. data/data/webgen/resources/icons/real.png +0 -0
  299. data/data/webgen/resources/icons/rpm.png +0 -0
  300. data/data/webgen/resources/icons/sound.png +0 -0
  301. data/data/webgen/resources/icons/source.png +0 -0
  302. data/data/webgen/resources/icons/spreadsheet.png +0 -0
  303. data/data/webgen/resources/icons/text.png +0 -0
  304. data/data/webgen/resources/icons/vcard.png +0 -0
  305. data/data/webgen/resources/icons/video.png +0 -0
  306. data/data/webgen/resources/icons/win.png +0 -0
  307. data/data/webgen/resources/images/generated_by_webgen.png +0 -0
  308. data/data/webgen/resources/images/valid-css.gif +0 -0
  309. data/data/webgen/resources/images/valid-xhtml11.png +0 -0
  310. data/data/webgen/resources/images/webgen_logo.png +0 -0
  311. data/data/webgen/sipttra_styles/default/README +0 -7
  312. data/data/webgen/sipttra_styles/default/css/sipttra.rcss +0 -71
  313. data/data/webgen/sipttra_styles/default/js/sipttra.js +0 -7
  314. data/data/webgen/sipttra_styles/default/sipttra.template +0 -105
  315. data/data/webgen/website_styles/andreas00/default.template +0 -62
  316. data/data/webgen/website_styles/andreas01/default.template +0 -63
  317. data/data/webgen/website_styles/andreas06/default.template +0 -72
  318. data/data/webgen/website_styles/andreas07/default.template +0 -44
  319. data/data/webgen/website_styles/andreas08/default.template +0 -53
  320. data/data/webgen/website_styles/default/default.template +0 -38
  321. data/data/webgen/website_templates/personal_hp/README +0 -8
  322. data/data/webgen/website_templates/personal_hp/src/about.page +0 -12
  323. data/data/webgen/website_templates/personal_hp/src/index.page +0 -9
  324. data/data/webgen/website_templates/personal_hp/src/links.page +0 -22
  325. data/data/webgen/website_templates/personal_hp/src/projects.page +0 -20
  326. data/doc/config.yaml +0 -8
  327. data/doc/examples/website_styles/1024px/README +0 -9
  328. data/doc/examples/website_styles/1024px/config.yaml +0 -2
  329. data/doc/examples/website_styles/1024px/src/about.page +0 -12
  330. data/doc/examples/website_styles/1024px/src/default.css +0 -188
  331. data/doc/examples/website_styles/1024px/src/default.template +0 -62
  332. data/doc/examples/website_styles/1024px/src/download.page +0 -15
  333. data/doc/examples/website_styles/1024px/src/features.page +0 -8
  334. data/doc/examples/website_styles/1024px/src/images/background.gif +0 -0
  335. data/doc/examples/website_styles/1024px/src/index.page +0 -9
  336. data/doc/examples/website_styles/1024px/src/screenshots.page +0 -18
  337. data/doc/examples/website_styles/andreas00/README +0 -9
  338. data/doc/examples/website_styles/andreas00/config.yaml +0 -2
  339. data/doc/examples/website_styles/andreas00/src/about.page +0 -12
  340. data/doc/examples/website_styles/andreas00/src/default.css +0 -290
  341. data/doc/examples/website_styles/andreas00/src/download.page +0 -15
  342. data/doc/examples/website_styles/andreas00/src/features.page +0 -8
  343. data/doc/examples/website_styles/andreas00/src/images/bg.gif +0 -0
  344. data/doc/examples/website_styles/andreas00/src/images/front.jpg +0 -0
  345. data/doc/examples/website_styles/andreas00/src/images/menubg.gif +0 -0
  346. data/doc/examples/website_styles/andreas00/src/images/menubg2.gif +0 -0
  347. data/doc/examples/website_styles/andreas00/src/index.page +0 -9
  348. data/doc/examples/website_styles/andreas00/src/screenshots.page +0 -18
  349. data/doc/examples/website_styles/andreas01/README +0 -9
  350. data/doc/examples/website_styles/andreas01/config.yaml +0 -2
  351. data/doc/examples/website_styles/andreas01/src/about.page +0 -12
  352. data/doc/examples/website_styles/andreas01/src/default.css +0 -310
  353. data/doc/examples/website_styles/andreas01/src/download.page +0 -15
  354. data/doc/examples/website_styles/andreas01/src/features.page +0 -8
  355. data/doc/examples/website_styles/andreas01/src/images/bg.gif +0 -0
  356. data/doc/examples/website_styles/andreas01/src/images/front.jpg +0 -0
  357. data/doc/examples/website_styles/andreas01/src/index.page +0 -9
  358. data/doc/examples/website_styles/andreas01/src/print.css +0 -35
  359. data/doc/examples/website_styles/andreas01/src/screenshots.page +0 -18
  360. data/doc/examples/website_styles/andreas03/README +0 -9
  361. data/doc/examples/website_styles/andreas03/config.yaml +0 -2
  362. data/doc/examples/website_styles/andreas03/src/about.page +0 -12
  363. data/doc/examples/website_styles/andreas03/src/default.css +0 -223
  364. data/doc/examples/website_styles/andreas03/src/default.template +0 -60
  365. data/doc/examples/website_styles/andreas03/src/download.page +0 -15
  366. data/doc/examples/website_styles/andreas03/src/features.page +0 -8
  367. data/doc/examples/website_styles/andreas03/src/images/bodybg.png +0 -0
  368. data/doc/examples/website_styles/andreas03/src/images/contbg.png +0 -0
  369. data/doc/examples/website_styles/andreas03/src/images/footerbg.png +0 -0
  370. data/doc/examples/website_styles/andreas03/src/images/gradient1.png +0 -0
  371. data/doc/examples/website_styles/andreas03/src/images/gradient2.png +0 -0
  372. data/doc/examples/website_styles/andreas03/src/index.page +0 -9
  373. data/doc/examples/website_styles/andreas03/src/screenshots.page +0 -18
  374. data/doc/examples/website_styles/andreas04/README +0 -9
  375. data/doc/examples/website_styles/andreas04/config.yaml +0 -2
  376. data/doc/examples/website_styles/andreas04/src/about.page +0 -12
  377. data/doc/examples/website_styles/andreas04/src/default.css +0 -290
  378. data/doc/examples/website_styles/andreas04/src/default.template +0 -83
  379. data/doc/examples/website_styles/andreas04/src/download.page +0 -15
  380. data/doc/examples/website_styles/andreas04/src/features.page +0 -8
  381. data/doc/examples/website_styles/andreas04/src/images/blinkarrow.gif +0 -0
  382. data/doc/examples/website_styles/andreas04/src/images/bodybg.png +0 -0
  383. data/doc/examples/website_styles/andreas04/src/images/contentbg.png +0 -0
  384. data/doc/examples/website_styles/andreas04/src/images/entrybg.png +0 -0
  385. data/doc/examples/website_styles/andreas04/src/images/flash.gif +0 -0
  386. data/doc/examples/website_styles/andreas04/src/images/flash2.gif +0 -0
  387. data/doc/examples/website_styles/andreas04/src/images/globe.gif +0 -0
  388. data/doc/examples/website_styles/andreas04/src/images/globebottom.gif +0 -0
  389. data/doc/examples/website_styles/andreas04/src/images/linkarrow.gif +0 -0
  390. data/doc/examples/website_styles/andreas04/src/images/menuhover.png +0 -0
  391. data/doc/examples/website_styles/andreas04/src/index.page +0 -9
  392. data/doc/examples/website_styles/andreas04/src/screenshots.page +0 -18
  393. data/doc/examples/website_styles/andreas05/README +0 -9
  394. data/doc/examples/website_styles/andreas05/config.yaml +0 -2
  395. data/doc/examples/website_styles/andreas05/src/about.page +0 -12
  396. data/doc/examples/website_styles/andreas05/src/default.css +0 -33
  397. data/doc/examples/website_styles/andreas05/src/default.template +0 -42
  398. data/doc/examples/website_styles/andreas05/src/download.page +0 -15
  399. data/doc/examples/website_styles/andreas05/src/features.page +0 -8
  400. data/doc/examples/website_styles/andreas05/src/images/bodybg.gif +0 -0
  401. data/doc/examples/website_styles/andreas05/src/images/front.png +0 -0
  402. data/doc/examples/website_styles/andreas05/src/index.page +0 -9
  403. data/doc/examples/website_styles/andreas05/src/screenshots.page +0 -18
  404. data/doc/examples/website_styles/andreas06/README +0 -9
  405. data/doc/examples/website_styles/andreas06/config.yaml +0 -2
  406. data/doc/examples/website_styles/andreas06/src/about.page +0 -12
  407. data/doc/examples/website_styles/andreas06/src/default.css +0 -354
  408. data/doc/examples/website_styles/andreas06/src/download.page +0 -15
  409. data/doc/examples/website_styles/andreas06/src/features.page +0 -8
  410. data/doc/examples/website_styles/andreas06/src/images/bodybg.gif +0 -0
  411. data/doc/examples/website_styles/andreas06/src/images/boxbg.gif +0 -0
  412. data/doc/examples/website_styles/andreas06/src/images/greypx.gif +0 -0
  413. data/doc/examples/website_styles/andreas06/src/images/header.jpg +0 -0
  414. data/doc/examples/website_styles/andreas06/src/images/innerbg.gif +0 -0
  415. data/doc/examples/website_styles/andreas06/src/images/leaves.jpg +0 -0
  416. data/doc/examples/website_styles/andreas06/src/images/tabs.gif +0 -0
  417. data/doc/examples/website_styles/andreas06/src/index.page +0 -9
  418. data/doc/examples/website_styles/andreas06/src/screenshots.page +0 -18
  419. data/doc/examples/website_styles/andreas07/README +0 -9
  420. data/doc/examples/website_styles/andreas07/config.yaml +0 -2
  421. data/doc/examples/website_styles/andreas07/src/about.page +0 -12
  422. data/doc/examples/website_styles/andreas07/src/browserfix.css +0 -7
  423. data/doc/examples/website_styles/andreas07/src/default.css +0 -92
  424. data/doc/examples/website_styles/andreas07/src/download.page +0 -15
  425. data/doc/examples/website_styles/andreas07/src/features.page +0 -8
  426. data/doc/examples/website_styles/andreas07/src/images/bodybg.gif +0 -0
  427. data/doc/examples/website_styles/andreas07/src/images/sidebarbg.gif +0 -0
  428. data/doc/examples/website_styles/andreas07/src/index.page +0 -9
  429. data/doc/examples/website_styles/andreas07/src/screenshots.page +0 -18
  430. data/doc/examples/website_styles/andreas08/README +0 -9
  431. data/doc/examples/website_styles/andreas08/config.yaml +0 -2
  432. data/doc/examples/website_styles/andreas08/src/about.page +0 -12
  433. data/doc/examples/website_styles/andreas08/src/default.css +0 -224
  434. data/doc/examples/website_styles/andreas08/src/download.page +0 -15
  435. data/doc/examples/website_styles/andreas08/src/features.page +0 -8
  436. data/doc/examples/website_styles/andreas08/src/index.page +0 -9
  437. data/doc/examples/website_styles/andreas08/src/screenshots.page +0 -18
  438. data/doc/examples/website_styles/andreas09/README +0 -9
  439. data/doc/examples/website_styles/andreas09/config.yaml +0 -2
  440. data/doc/examples/website_styles/andreas09/src/about.page +0 -12
  441. data/doc/examples/website_styles/andreas09/src/default.css +0 -308
  442. data/doc/examples/website_styles/andreas09/src/default.template +0 -70
  443. data/doc/examples/website_styles/andreas09/src/download.page +0 -15
  444. data/doc/examples/website_styles/andreas09/src/features.page +0 -8
  445. data/doc/examples/website_styles/andreas09/src/images/bodybg-black.jpg +0 -0
  446. data/doc/examples/website_styles/andreas09/src/images/bodybg-green.jpg +0 -0
  447. data/doc/examples/website_styles/andreas09/src/images/bodybg-orange.jpg +0 -0
  448. data/doc/examples/website_styles/andreas09/src/images/bodybg-purple.jpg +0 -0
  449. data/doc/examples/website_styles/andreas09/src/images/bodybg-red.jpg +0 -0
  450. data/doc/examples/website_styles/andreas09/src/images/bodybg.jpg +0 -0
  451. data/doc/examples/website_styles/andreas09/src/images/footerbg.jpg +0 -0
  452. data/doc/examples/website_styles/andreas09/src/images/menuhover-black.jpg +0 -0
  453. data/doc/examples/website_styles/andreas09/src/images/menuhover-green.jpg +0 -0
  454. data/doc/examples/website_styles/andreas09/src/images/menuhover-orange.jpg +0 -0
  455. data/doc/examples/website_styles/andreas09/src/images/menuhover-purple.jpg +0 -0
  456. data/doc/examples/website_styles/andreas09/src/images/menuhover-red.jpg +0 -0
  457. data/doc/examples/website_styles/andreas09/src/images/menuhover.jpg +0 -0
  458. data/doc/examples/website_styles/andreas09/src/index.page +0 -9
  459. data/doc/examples/website_styles/andreas09/src/screenshots.page +0 -18
  460. data/doc/examples/website_styles/default/README +0 -9
  461. data/doc/examples/website_styles/default/config.yaml +0 -2
  462. data/doc/examples/website_styles/default/src/about.page +0 -12
  463. data/doc/examples/website_styles/default/src/default.css +0 -84
  464. data/doc/examples/website_styles/default/src/download.page +0 -15
  465. data/doc/examples/website_styles/default/src/features.page +0 -8
  466. data/doc/examples/website_styles/default/src/index.page +0 -9
  467. data/doc/examples/website_styles/default/src/screenshots.page +0 -18
  468. data/doc/examples/website_templates/default/README +0 -8
  469. data/doc/examples/website_templates/default/config.yaml +0 -2
  470. data/doc/examples/website_templates/default/src/default.css +0 -84
  471. data/doc/examples/website_templates/default/src/default.template +0 -38
  472. data/doc/examples/website_templates/default/src/index.page +0 -8
  473. data/doc/examples/website_templates/personal_hp/README +0 -8
  474. data/doc/examples/website_templates/personal_hp/config.yaml +0 -2
  475. data/doc/examples/website_templates/personal_hp/src/about.page +0 -12
  476. data/doc/examples/website_templates/personal_hp/src/default.css +0 -84
  477. data/doc/examples/website_templates/personal_hp/src/default.template +0 -38
  478. data/doc/examples/website_templates/personal_hp/src/index.page +0 -9
  479. data/doc/examples/website_templates/personal_hp/src/links.page +0 -22
  480. data/doc/examples/website_templates/personal_hp/src/projects.page +0 -20
  481. data/doc/examples/website_templates/project/README +0 -9
  482. data/doc/examples/website_templates/project/config.yaml +0 -2
  483. data/doc/examples/website_templates/project/src/about.page +0 -12
  484. data/doc/examples/website_templates/project/src/default.css +0 -84
  485. data/doc/examples/website_templates/project/src/default.template +0 -38
  486. data/doc/examples/website_templates/project/src/download.page +0 -15
  487. data/doc/examples/website_templates/project/src/features.page +0 -8
  488. data/doc/examples/website_templates/project/src/index.page +0 -9
  489. data/doc/examples/website_templates/project/src/screenshots.page +0 -18
  490. data/doc/metainfo.yaml +0 -105
  491. data/doc/plugin/emoticon.rb +0 -27
  492. data/doc/plugin/extension.rb +0 -163
  493. data/doc/plugin/gallery/slides/collage.rb +0 -337
  494. data/doc/plugin/listpluginparameters.rb +0 -37
  495. data/doc/plugin/resources.rb +0 -28
  496. data/doc/src/css/sipttra.rcss +0 -71
  497. data/doc/src/default.css +0 -434
  498. data/doc/src/default.template +0 -125
  499. data/doc/src/documentation/basics.page +0 -148
  500. data/doc/src/documentation/extending_webgen.page +0 -104
  501. data/doc/src/documentation/howto.page +0 -221
  502. data/doc/src/documentation/index.page +0 -50
  503. data/doc/src/documentation/plugins/contentconverter/default.page +0 -16
  504. data/doc/src/documentation/plugins/contentconverter/haml.page +0 -21
  505. data/doc/src/documentation/plugins/contentconverter/html.page +0 -10
  506. data/doc/src/documentation/plugins/contentconverter/markdown.page +0 -21
  507. data/doc/src/documentation/plugins/contentconverter/maruku.page +0 -23
  508. data/doc/src/documentation/plugins/contentconverter/rdoc.page +0 -11
  509. data/doc/src/documentation/plugins/contentconverter/sass.page +0 -36
  510. data/doc/src/documentation/plugins/contentconverter/textile.page +0 -21
  511. data/doc/src/documentation/plugins/contentconverter/xmlbuilder.page +0 -61
  512. data/doc/src/documentation/plugins/core/configuration.page +0 -17
  513. data/doc/src/documentation/plugins/core/filehandler.page +0 -220
  514. data/doc/src/documentation/plugins/core/index.page +0 -11
  515. data/doc/src/documentation/plugins/core/resourcemanager.page +0 -40
  516. data/doc/src/documentation/plugins/core/tagprocessor.page +0 -17
  517. data/doc/src/documentation/plugins/file/copyhandler.page +0 -26
  518. data/doc/src/documentation/plugins/file/defaulthandler.page +0 -16
  519. data/doc/src/documentation/plugins/file/directoryhandler.page +0 -37
  520. data/doc/src/documentation/plugins/file/galleryhandler.page +0 -190
  521. data/doc/src/documentation/plugins/file/pagehandler.page +0 -154
  522. data/doc/src/documentation/plugins/file/sipttrahandler.page +0 -18
  523. data/doc/src/documentation/plugins/file/templatehandler.page +0 -51
  524. data/doc/src/documentation/plugins/file/thumbnailwriter.page +0 -42
  525. data/doc/src/documentation/plugins/htmlvalidator/default.page +0 -13
  526. data/doc/src/documentation/plugins/htmlvalidator/xmllint.page +0 -12
  527. data/doc/src/documentation/plugins/index.page +0 -53
  528. data/doc/src/documentation/plugins/menustyle/default.page +0 -20
  529. data/doc/src/documentation/plugins/menustyle/horizontal.page +0 -36
  530. data/doc/src/documentation/plugins/menustyle/horizontaldropdown.page +0 -48
  531. data/doc/src/documentation/plugins/menustyle/section.page +0 -34
  532. data/doc/src/documentation/plugins/menustyle/vertical.page +0 -48
  533. data/doc/src/documentation/plugins/menustyle/verticaldropdown.page +0 -29
  534. data/doc/src/documentation/plugins/misc/index.page +0 -9
  535. data/doc/src/documentation/plugins/misc/smileyreplacer.page +0 -39
  536. data/doc/src/documentation/plugins/misc/syntaxhighlighter.page +0 -26
  537. data/doc/src/documentation/plugins/tag/block.page +0 -29
  538. data/doc/src/documentation/plugins/tag/breadcrumbtrail.page +0 -41
  539. data/doc/src/documentation/plugins/tag/customvar.page +0 -11
  540. data/doc/src/documentation/plugins/tag/date.page +0 -34
  541. data/doc/src/documentation/plugins/tag/default.page +0 -28
  542. data/doc/src/documentation/plugins/tag/download.page +0 -60
  543. data/doc/src/documentation/plugins/tag/executecommand.page +0 -29
  544. data/doc/src/documentation/plugins/tag/htmlmetainfo.page +0 -32
  545. data/doc/src/documentation/plugins/tag/includefile.page +0 -30
  546. data/doc/src/documentation/plugins/tag/langbar.de.page +0 -6
  547. data/doc/src/documentation/plugins/tag/langbar.fr.page +0 -6
  548. data/doc/src/documentation/plugins/tag/langbar.page +0 -41
  549. data/doc/src/documentation/plugins/tag/menu.page +0 -78
  550. data/doc/src/documentation/plugins/tag/meta.page +0 -21
  551. data/doc/src/documentation/plugins/tag/news.page +0 -48
  552. data/doc/src/documentation/plugins/tag/relocatable.page +0 -46
  553. data/doc/src/documentation/plugins/tag/resource.page +0 -35
  554. data/doc/src/documentation/plugins/tag/sitemap.page +0 -35
  555. data/doc/src/documentation/plugins/tag/wikilink.page +0 -33
  556. data/doc/src/documentation/references/index.page +0 -34
  557. data/doc/src/documentation/references/meta_info_reference.page +0 -136
  558. data/doc/src/documentation/references/parameter_reference.page +0 -11
  559. data/doc/src/documentation/references/resource_reference.page +0 -18
  560. data/doc/src/documentation/references/sipttra_format.page +0 -241
  561. data/doc/src/documentation/references/webpage_format.page +0 -253
  562. data/doc/src/documentation/tutorial.page +0 -167
  563. data/doc/src/download.page +0 -74
  564. data/doc/src/examples/example_sites/index.page +0 -45
  565. data/doc/src/examples/example_sites/personal.zip +0 -0
  566. data/doc/src/examples/example_sites/photo_gallery.zip +0 -0
  567. data/doc/src/examples/gallery_styles/default/default.gallery +0 -78
  568. data/doc/src/examples/gallery_styles/default/gallery_gallery.template +0 -38
  569. data/doc/src/examples/gallery_styles/default/gallery_image.template +0 -30
  570. data/doc/src/examples/gallery_styles/default/gallery_main.template +0 -18
  571. data/doc/src/examples/gallery_styles/index.page +0 -22
  572. data/doc/src/examples/gallery_styles/slides/gallery_gallery.template +0 -62
  573. data/doc/src/examples/gallery_styles/slides/gallery_image.template +0 -53
  574. data/doc/src/examples/gallery_styles/slides/gallery_main.template +0 -32
  575. data/doc/src/examples/gallery_styles/slides/slides.gallery +0 -79
  576. data/doc/src/examples/images/image01.jpg +0 -0
  577. data/doc/src/examples/images/image02.jpg +0 -0
  578. data/doc/src/examples/images/image03.jpg +0 -0
  579. data/doc/src/examples/images/image04.jpg +0 -0
  580. data/doc/src/examples/images/image05.jpg +0 -0
  581. data/doc/src/examples/images/image06.jpg +0 -0
  582. data/doc/src/examples/images/image07.jpg +0 -0
  583. data/doc/src/examples/images/image08.jpg +0 -0
  584. data/doc/src/examples/images/image09.jpg +0 -0
  585. data/doc/src/examples/images/image10.jpg +0 -0
  586. data/doc/src/examples/images/image11.jpg +0 -0
  587. data/doc/src/examples/images/image12.jpg +0 -0
  588. data/doc/src/examples/images/image13.jpg +0 -0
  589. data/doc/src/examples/images/image14.jpg +0 -0
  590. data/doc/src/examples/images/image15.jpg +0 -0
  591. data/doc/src/examples/images/image16.jpg +0 -0
  592. data/doc/src/examples/images/image17.jpg +0 -0
  593. data/doc/src/examples/images/image18.jpg +0 -0
  594. data/doc/src/examples/index.page +0 -19
  595. data/doc/src/examples/sipttra_styles/default.page +0 -5
  596. data/doc/src/examples/sipttra_styles/default/css/sipttra.rcss +0 -71
  597. data/doc/src/examples/sipttra_styles/default/default.template +0 -16
  598. data/doc/src/examples/sipttra_styles/default/index.todo +0 -60
  599. data/doc/src/examples/sipttra_styles/default/js/sipttra.js +0 -7
  600. data/doc/src/examples/sipttra_styles/default/sipttra.template +0 -105
  601. data/doc/src/examples/sipttra_styles/index.page +0 -17
  602. data/doc/src/examples/website_styles/1024px.page +0 -5
  603. data/doc/src/examples/website_styles/andreas00.page +0 -5
  604. data/doc/src/examples/website_styles/andreas01.page +0 -5
  605. data/doc/src/examples/website_styles/andreas03.page +0 -5
  606. data/doc/src/examples/website_styles/andreas04.page +0 -5
  607. data/doc/src/examples/website_styles/andreas05.page +0 -5
  608. data/doc/src/examples/website_styles/andreas06.page +0 -5
  609. data/doc/src/examples/website_styles/andreas07.page +0 -5
  610. data/doc/src/examples/website_styles/andreas08.page +0 -5
  611. data/doc/src/examples/website_styles/andreas09.page +0 -5
  612. data/doc/src/examples/website_styles/default.page +0 -5
  613. data/doc/src/examples/website_styles/index.page +0 -76
  614. data/doc/src/examples/website_templates/default.page +0 -5
  615. data/doc/src/examples/website_templates/index.page +0 -24
  616. data/doc/src/examples/website_templates/personal_hp.page +0 -5
  617. data/doc/src/examples/website_templates/project.page +0 -5
  618. data/doc/src/features.page +0 -41
  619. data/doc/src/images/bodybg.jpg +0 -0
  620. data/doc/src/images/footerbg.jpg +0 -0
  621. data/doc/src/images/menuhover.jpg +0 -0
  622. data/doc/src/images/node_diagram.svg +0 -7132
  623. data/doc/src/images/thumb_example.jpg +0 -0
  624. data/doc/src/images/thumb_example_cropped.jpg +0 -0
  625. data/doc/src/images/thumb_example_normal.jpg +0 -0
  626. data/doc/src/index.page +0 -32
  627. data/doc/src/js/sipttra.js +0 -7
  628. data/doc/src/news.page +0 -256
  629. data/doc/src/plugin.template +0 -10
  630. data/doc/src/project.todo +0 -144
  631. data/doc/src/sipttra.template +0 -105
  632. data/lib/webgen/composite.rb +0 -101
  633. data/lib/webgen/config.rb +0 -52
  634. data/lib/webgen/content.rb +0 -172
  635. data/lib/webgen/extcommand.rb +0 -23
  636. data/lib/webgen/gui/common.rb +0 -38
  637. data/lib/webgen/gui/main.rb +0 -219
  638. data/lib/webgen/gui/new_website_dlg.rb +0 -125
  639. data/lib/webgen/listener.rb +0 -105
  640. data/lib/webgen/plugin.rb +0 -578
  641. data/lib/webgen/plugins/contentconverters/default.rb +0 -40
  642. data/lib/webgen/plugins/contentconverters/haml.rb +0 -71
  643. data/lib/webgen/plugins/contentconverters/html.rb +0 -43
  644. data/lib/webgen/plugins/contentconverters/markdown.rb +0 -54
  645. data/lib/webgen/plugins/contentconverters/maruku.rb +0 -33
  646. data/lib/webgen/plugins/contentconverters/rdoc.rb +0 -54
  647. data/lib/webgen/plugins/contentconverters/textile.rb +0 -54
  648. data/lib/webgen/plugins/contentconverters/xmlbuilder.rb +0 -58
  649. data/lib/webgen/plugins/coreplugins/configuration.rb +0 -45
  650. data/lib/webgen/plugins/coreplugins/resourcemanager.rb +0 -307
  651. data/lib/webgen/plugins/filehandlers/copy.rb +0 -82
  652. data/lib/webgen/plugins/filehandlers/directory.rb +0 -126
  653. data/lib/webgen/plugins/filehandlers/filehandler.rb +0 -486
  654. data/lib/webgen/plugins/filehandlers/gallery.rb +0 -486
  655. data/lib/webgen/plugins/filehandlers/page.rb +0 -255
  656. data/lib/webgen/plugins/filehandlers/sipttra.rb +0 -73
  657. data/lib/webgen/plugins/filehandlers/template.rb +0 -115
  658. data/lib/webgen/plugins/htmlvalidators/default.rb +0 -39
  659. data/lib/webgen/plugins/htmlvalidators/xmllint.rb +0 -54
  660. data/lib/webgen/plugins/menustyles/default.rb +0 -80
  661. data/lib/webgen/plugins/menustyles/horizontal.rb +0 -85
  662. data/lib/webgen/plugins/menustyles/horizontal_dropdown.rb +0 -99
  663. data/lib/webgen/plugins/menustyles/section.rb +0 -68
  664. data/lib/webgen/plugins/menustyles/vertical.rb +0 -87
  665. data/lib/webgen/plugins/menustyles/vertical_dropdown.rb +0 -99
  666. data/lib/webgen/plugins/miscplugins/rendered_files.rb +0 -75
  667. data/lib/webgen/plugins/miscplugins/smileyreplacer.rb +0 -87
  668. data/lib/webgen/plugins/miscplugins/syntax_highlighter.rb +0 -72
  669. data/lib/webgen/plugins/miscplugins/treewalker.rb +0 -91
  670. data/lib/webgen/plugins/tags/block.rb +0 -65
  671. data/lib/webgen/plugins/tags/breadcrumbtrail.rb +0 -75
  672. data/lib/webgen/plugins/tags/customvar.rb +0 -54
  673. data/lib/webgen/plugins/tags/date.rb +0 -46
  674. data/lib/webgen/plugins/tags/download.rb +0 -155
  675. data/lib/webgen/plugins/tags/executecommand.rb +0 -69
  676. data/lib/webgen/plugins/tags/htmlmetainfo.rb +0 -27
  677. data/lib/webgen/plugins/tags/includefile.rb +0 -69
  678. data/lib/webgen/plugins/tags/langbar.rb +0 -55
  679. data/lib/webgen/plugins/tags/menu.rb +0 -111
  680. data/lib/webgen/plugins/tags/meta.rb +0 -53
  681. data/lib/webgen/plugins/tags/news.rb +0 -151
  682. data/lib/webgen/plugins/tags/relocatable.rb +0 -94
  683. data/lib/webgen/plugins/tags/sitemap.rb +0 -82
  684. data/lib/webgen/plugins/tags/tag_processor.rb +0 -279
  685. data/lib/webgen/plugins/tags/wikilink.rb +0 -62
  686. data/lib/webgen/rake/webgentask.rb +0 -161
  687. data/lib/webgen/sipttra_format.rb +0 -343
  688. data/lib/webgen/test.rb +0 -202
  689. data/test/fixtures/sample_site/src/chained.template +0 -3
  690. data/test/fixtures/sample_site/src/default.template +0 -3
  691. data/test/fixtures/sample_site/src/dir1/dir11/file111.de.page +0 -3
  692. data/test/fixtures/sample_site/src/dir1/dir11/file111.page +0 -3
  693. data/test/fixtures/sample_site/src/dir1/dir11/index.page +0 -3
  694. data/test/fixtures/sample_site/src/dir1/file11.page +0 -3
  695. data/test/fixtures/sample_site/src/dir2/file21.page +0 -3
  696. data/test/fixtures/sample_site/src/embedded.rhtml +0 -1
  697. data/test/fixtures/sample_site/src/file1.page +0 -8
  698. data/test/fixtures/sample_site/src/file2.de.page +0 -6
  699. data/test/fixtures/sample_site/src/index.de.page +0 -5
  700. data/test/fixtures/sample_site/src/index.en.page +0 -1
  701. data/test/fixtures/sample_site/src/invalid.template +0 -3
  702. data/test/fixtures/sample_site/src/test.jpg +0 -1
  703. data/test/fixtures/sample_site/src/test.template +0 -3
  704. data/test/fixtures/sample_site/src/test.todo +0 -7
  705. data/test/fixtures/tc_content/blocks.yaml +0 -40
  706. data/test/fixtures/tc_content/correct.yaml +0 -65
  707. data/test/fixtures/tc_content/incorrect.yaml +0 -42
  708. data/test/fixtures/tc_filehandler_filehandler/backing/metainfo.yaml +0 -9
  709. data/test/fixtures/tc_filehandler_filehandler/backing_empty/metainfo.yaml +0 -6
  710. data/test/fixtures/tc_filehandler_filehandler/sample_plugin.rb +0 -49
  711. data/test/fixtures/tc_filehandler_filehandler/unmodified +0 -0
  712. data/test/fixtures/tc_filehandler_gallery/test.gallery +0 -2
  713. data/test/fixtures/tc_filehandler_gallery/test1.gallery +0 -2
  714. data/test/fixtures/tc_filehandler_gallery/test1.jpg +0 -0
  715. data/test/fixtures/tc_filehandler_gallery/test2.jpg +0 -0
  716. data/test/fixtures/tc_filehandler_gallery/test3.jpg +0 -0
  717. data/test/fixtures/tc_filehandler_gallery/test4.jpg +0 -0
  718. data/test/fixtures/tc_filehandler_page/testdata.yaml +0 -10
  719. data/test/fixtures/tc_menustyles_default/menustyle.rb +0 -7
  720. data/test/fixtures/tc_node/nodes.yaml +0 -64
  721. data/test/fixtures/tc_plugin/handlerplugin.rb +0 -15
  722. data/test/fixtures/tc_plugin/plugin1.rb +0 -35
  723. data/test/fixtures/tc_plugin/plugin2.rb +0 -8
  724. data/test/fixtures/tc_sipttra_format/test.sipttra +0 -46
  725. data/test/fixtures/tc_tags_includefile/testfile +0 -1
  726. data/test/fixtures/tc_tags_tag_processor/test_file1 +0 -1
  727. data/test/fixtures/tc_tags_tag_processor/testtag.rb +0 -17
  728. data/test/fixtures/tc_website/correct.yaml +0 -6
  729. data/test/fixtures/tc_website/incorrect_structure.yaml +0 -2
  730. data/test/fixtures/tc_website/incorrect_yaml.yaml +0 -5
  731. data/test/fixtures/tc_website/meta_info_test.yaml +0 -10
  732. data/test/fixtures/tc_website/testdir/README +0 -1
  733. data/test/fixtures/tc_website/testdir/falsedir/README +0 -1
  734. data/test/runtests.rb +0 -2
  735. data/test/unittests/tc_composite.rb +0 -82
  736. data/test/unittests/tc_config.rb +0 -18
  737. data/test/unittests/tc_content.rb +0 -96
  738. data/test/unittests/tc_contentconverters_default.rb +0 -13
  739. data/test/unittests/tc_contentconverters_html.rb +0 -16
  740. data/test/unittests/tc_contentconverters_markdown.rb +0 -22
  741. data/test/unittests/tc_contentconverters_rdoc.rb +0 -16
  742. data/test/unittests/tc_contentconverters_textile.rb +0 -22
  743. data/test/unittests/tc_contentconverters_xmlbuilder.rb +0 -22
  744. data/test/unittests/tc_filehandler_copy.rb +0 -65
  745. data/test/unittests/tc_filehandler_directory.rb +0 -134
  746. data/test/unittests/tc_filehandler_filehandler.rb +0 -294
  747. data/test/unittests/tc_filehandler_gallery.rb +0 -165
  748. data/test/unittests/tc_filehandler_page.rb +0 -183
  749. data/test/unittests/tc_filehandler_sipttra.rb +0 -26
  750. data/test/unittests/tc_filehandler_template.rb +0 -64
  751. data/test/unittests/tc_htmlvalidators_default.rb +0 -12
  752. data/test/unittests/tc_htmlvalidators_xmllint.rb +0 -19
  753. data/test/unittests/tc_languages.rb +0 -57
  754. data/test/unittests/tc_listener.rb +0 -72
  755. data/test/unittests/tc_menustyles_default.rb +0 -51
  756. data/test/unittests/tc_menustyles_horizontal.rb +0 -64
  757. data/test/unittests/tc_menustyles_horizontal_dropdown.rb +0 -18
  758. data/test/unittests/tc_menustyles_section.rb +0 -59
  759. data/test/unittests/tc_menustyles_vertical.rb +0 -79
  760. data/test/unittests/tc_menustyles_vertical_dropdown.rb +0 -18
  761. data/test/unittests/tc_node.rb +0 -205
  762. data/test/unittests/tc_plugin.rb +0 -221
  763. data/test/unittests/tc_resourcemanager.rb +0 -42
  764. data/test/unittests/tc_sipttra_format.rb +0 -58
  765. data/test/unittests/tc_smileyreplacer.rb +0 -25
  766. data/test/unittests/tc_syntax_highlighter.rb +0 -30
  767. data/test/unittests/tc_tags_block.rb +0 -27
  768. data/test/unittests/tc_tags_breadcrumbtrail.rb +0 -56
  769. data/test/unittests/tc_tags_customvar.rb +0 -24
  770. data/test/unittests/tc_tags_date.rb +0 -16
  771. data/test/unittests/tc_tags_download.rb +0 -32
  772. data/test/unittests/tc_tags_executecommand.rb +0 -37
  773. data/test/unittests/tc_tags_includefile.rb +0 -46
  774. data/test/unittests/tc_tags_langbar.rb +0 -42
  775. data/test/unittests/tc_tags_menu.rb +0 -50
  776. data/test/unittests/tc_tags_meta.rb +0 -19
  777. data/test/unittests/tc_tags_relocatable.rb +0 -66
  778. data/test/unittests/tc_tags_sitemap.rb +0 -33
  779. data/test/unittests/tc_tags_tag_processor.rb +0 -107
  780. data/test/unittests/tc_tags_wikilink.rb +0 -22
  781. data/test/unittests/tc_treewalker.rb +0 -51
  782. data/test/unittests/tc_website.rb +0 -188
@@ -1,50 +0,0 @@
1
- ---
2
- directoryName: Documentation
3
- title: Preface
4
- ---
5
- h2. Preface
6
-
7
-
8
- p={font-size: 150%; color:red}. *This documentation is for webgen {version: }! However, most parts
9
- are valid for all webgen 0.4.x releases!*
10
-
11
-
12
- The source files for this website are in the @doc/src@ directory of the webgen distribution. Have a
13
- look at them to see a real world example on how to use webgen!
14
-
15
-
16
- h2. Spelling of the name "webgen"
17
-
18
-
19
- I often see that the name of the program is misspelled: WebGen, Webgen, WEBGEN, ... It is just
20
- *webgen*, all lower case!
21
-
22
-
23
- h2. Philosophy of webgen
24
-
25
-
26
- There are some things about webgen which I think are important to mention. It's about how webgen
27
- works and what you can expect when you start webgen.
28
-
29
- * <b>webgen runs till the end and does not stop on errors!</b>
30
-
31
- I did not like it when webgen stopped because there was an error in the configuration file or an
32
- error in a page file. So if something exceptional happens it is logged so that the user can see
33
- what happened and a useful default alternative is used instead. For example, if no default
34
- template was found in the source directory, a dummy template is used instead.
35
-
36
- Therefore it is also not necessary to install the dependencies (although you would be wise to do
37
- it, so that you can use all the features of webgen). If a dependency is not found (e.g. RedCloth
38
- for Textile support), the specific feature is turned off and a warning gets issued.
39
-
40
- * <b>Useful default values for everything!</b>
41
-
42
- You _do not need_ to configure webgen if you are happy with the default values. webgen provides
43
- default values for every configuration option.
44
-
45
- * <b>Every important thing gets logged!</b>
46
-
47
- The logging mechanism is not only used to log error and warning messages, but also to log
48
- informational and debug messages. For the normal user, the error and warning messages are
49
- important. Developers who extend webgen by writing a new plugin can use the informational and
50
- debug messages to see what is going on and to help them develop the plugin.
@@ -1,16 +0,0 @@
1
- ---
2
- title: Default
3
- directoryName: ContentConverter
4
- inMenu: true
5
- omitIndexFileInBreadcrumbTrail: false
6
- template: /plugin.template
7
- plugin: ContentConverter/Default
8
- ---
9
- h2(#description). Description
10
-
11
-
12
- This is the base plugin (does not provide any functionality) for all "content to HTML" converters.
13
- These converters are used, for example, for page files to allow the page creators to use a format he
14
- likes.
15
-
16
- Have a look at the individual converters for more information!
@@ -1,21 +0,0 @@
1
- ---
2
- title: Haml
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/Haml
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- Converts content written using Haml markup
11
- ("Homepage":http://haml.hamptoncatlin.com/) to HTML.
12
-
13
-
14
- h2(#caveat). Caveat
15
-
16
-
17
- This plugin is only available if you have installed the
18
- "haml":http://haml.hamptoncatlin.com/ library. The preferred way to do this is via
19
- Rubygems:
20
-
21
- gem install haml
@@ -1,10 +0,0 @@
1
- ---
2
- title: HTML
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/HTML
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- Handles content written in plain HTML, i.e. the content is just copied and no changes are made.
@@ -1,21 +0,0 @@
1
- ---
2
- title: Markdown
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/Markdown
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- Converts content written using Markdown markup
11
- ("Reference":http://daringfireball.net/projects/markdown/) to HTML.
12
-
13
-
14
- h2(#caveat). Caveat
15
-
16
-
17
- This plugin is only available if you have installed the
18
- "bluecloth":http://www.deveiate.org/projects/BlueCloth library. The preferred way to do this is via
19
- Rubygems:
20
-
21
- gem install bluecloth
@@ -1,23 +0,0 @@
1
- ---
2
- title: Maruku
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/Maruku
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- Converts content written using Markdown markup
11
- ("Reference":http://daringfireball.net/projects/markdown/) to HTML. However, it also implements all
12
- features described on the "PHP Markdown Extra":http://www.michelf.com/projects/php-markdown/extra/
13
- page. For more information have a look at the "Maruku homepage":http://maruku.rubyforge.org !
14
-
15
-
16
- h2(#caveat). Caveat
17
-
18
-
19
- This plugin is only available if you have installed the "maruku":http://maruku.rubyforge.org
20
- library. The preferred way to do this is via Rubygems:
21
-
22
- gem install maruku
23
-
@@ -1,11 +0,0 @@
1
- ---
2
- title: RDoc
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/RDoc
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- Converts content written in RDoc (default documentation system for Ruby source files,
11
- "reference":http://rdoc.sourceforge.net/doc/) to HTML.
@@ -1,36 +0,0 @@
1
- ---
2
- title: Sass
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/Sass
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- Converts content written using Sass markup ("Homepage":http://haml.hamptoncatlin.com/) to CSS. This
11
- content converter is only useful for writing CSS page files. You have to make sure to change the
12
- output name style sothat the extension @css@ is used and to stop the template chain - see the
13
- example below!
14
-
15
- You can use the following page file as a template for your sass files:
16
-
17
- <pre>
18
- \---
19
- outputNameStyle: [:name, [., :lang], .css]
20
- template: ~
21
- validator: ~
22
- \--- content, sass
23
- p
24
- :background-color grey
25
- :padding 5px
26
- </pre>
27
-
28
-
29
- h2(#caveat). Caveat
30
-
31
-
32
- This plugin is only available if you have installed the
33
- "haml":http://haml.hamptoncatlin.com/ library. The preferred way to do this is via
34
- Rubygems:
35
-
36
- gem install haml
@@ -1,21 +0,0 @@
1
- ---
2
- title: Textile
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/Textile
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- Converts content written using Textile markup ("Reference":http://hobix.com/textile/) to HTML.
11
-
12
-
13
- h2(#caveat). Caveat
14
-
15
-
16
- This plugin is only available if you have installed the
17
- "redcloth":http://whytheluckystiff.net/ruby/redcloth/ library. The preferred way to do this is via
18
- Rubygems:
19
-
20
- gem install redcloth
21
-
@@ -1,61 +0,0 @@
1
- ---
2
- title: XmlBuilder
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: ContentConverter/XmlBuilder
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- This plugin can be used to programatically create XHTML/XML documents
11
- ("Reference":http://builder.rubyforge.org). The top builder object is provided through the @xml@
12
- object.
13
-
14
-
15
- h2(#examples). Examples
16
-
17
-
18
- Following is a short example on how to use this plugin in a page file which generates a custom XML
19
- document (the block has to be valid Ruby!):
20
-
21
- <pre>
22
- \---
23
- outputNameStyle: [:name, ['.', :lang], '.xml']
24
- title: Person Object
25
- \--- content, xmlbuilder
26
- xml.persons do |p|
27
- xml.person do |b|
28
- b.firstname('Thomas')
29
- b.lastname('Leitner')
30
- end
31
- xml.person do |b|
32
- b.firstname('Other first')
33
- b.lastname('Other last')
34
- end
35
- end
36
- </pre>
37
-
38
- The above will produce the following output:
39
-
40
- <pre>
41
- <persons>
42
- <person>
43
- <firstname>Thomas</firstname>
44
- <lastname>Leitner</lastname>
45
- </person>
46
- <person>
47
- <firstname>Other first</firstname>
48
- <lastname>Other last</lastname>
49
- </person>
50
- </persons>
51
- </pre>
52
-
53
-
54
- h2(#caveat). Caveat
55
-
56
-
57
- This plugin is only available if you have installed the
58
- "builder":http://builder.rubyforge.org library. The preferred way to do this is via
59
- Rubygems:
60
-
61
- gem install builder
@@ -1,17 +0,0 @@
1
- ---
2
- title: Configuration
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: Core/Configuration
6
- ---
7
- h2(#description). Description
8
-
9
-
10
- The configuration plugin provides a place for all the parameters which do not belong to a specific
11
- plugin, like the default language setting.
12
-
13
- It also provides support for "custom variables" through the {param: Core/Configuration:customVars}
14
- parameter. This facility can be used to store and access global variables that have been defined in
15
- the <a href="{relocatable: /documentation/basics.page#config}">configuration file</a> through, for
16
- example, the {plugin: Tag/CustomVar} plugin.
17
-
@@ -1,220 +0,0 @@
1
- ---
2
- title: FileHandler
3
- inMenu: true
4
- template: /plugin.template
5
- plugin: Core/FileHandler
6
- ---
7
- h2(#description). Description
8
-
9
- The FileHandler plugin is one of the two main workhorses, the other being the {plugin:
10
- Core/TagProcessor}. When running webgen the FileHandler is responsible for traversing the source
11
- directory and creating the internal representation of all handled files as well as writing the
12
- output files by using the individual file handler plugins. These file handler plugins reside in the
13
- {plugin: File} namespace. Also, the FileHandler is responsible for managing the "meta information
14
- backing file":#metainfo-file.
15
-
16
- There are many different file handler plugins available, ranging from very simple ones, like copying a
17
- file verbatim from the source to the output directory, to complicated ones, like creating HTML files
18
- from page files or creating whole image galleries from a simple gallery defintion file!
19
-
20
- The following sections give an overview of how the "file handling":#filehandling is done by webgen,
21
- how "path patterns":#pathpattern work and how to specify and use "meta information":#metainfo.
22
-
23
-
24
- h2(#filehandling). Handling of files in the source directory
25
-
26
-
27
- Following is the list of rules how files in the source directory are handled by webgen:
28
-
29
- # All file/directory names in the source directory are fetched (actually, only those file/directory
30
- names without a leading dot unless {param: Core/FileHandler:useHiddenFiles} is set to @true@)
31
- # Those files which match an {param: Core/FileHandler:ignorePaths} pattern are excluded
32
- # The path patterns for each file handler plugin are matched against the remaining files and all
33
- matching files are then handled by the file handler plugin
34
-
35
- You should not use one of the following characters in file or directory names:
36
-
37
- ; / ? : @ & = + $ ,
38
-
39
- If you do use one of them webgen may not work correctly!
40
-
41
- As you might have deduced from the processing list above, it is possible that one file/directory is
42
- handled by multiple file handler plugins. This can be used, for example, to render an XML file as
43
- HTML and copy it verbatim.
44
-
45
- Internally a tree structure is created reflecting the source directory hierarchy and each file that
46
- will be created by webgen is represented by a node in the tree, as displayed in the following in
47
- image.
48
-
49
- p=. <img src="{relocatable: /images/node_diagram.png}" alt="Internal tree structure" />
50
-
51
- The source directory layout is shown on the left side and the internal tree structure/output layout
52
- on the right. As you can see, some files are copied verbatim (e.g. the images), others are copied
53
- not all (e.g. @default.template@) and still others have multiple output files (e.g.
54
- @project/documentation.page@).
55
-
56
-
57
- h2(#pathpattern). Path Patterns
58
-
59
-
60
- Each file handler plugin specifies path patterns which are used to locate the files that the plugin
61
- can handle. Normally these patterns are used to match file extensions, however, they are much more
62
- powerful. For detailed information have a look at
63
- "Dir.glob":http://ruby-doc.org/core/classes/Dir.html#M002375 .
64
-
65
- The path patterns that are handled by a particular file handler plugin are stated on its
66
- documentation page and cannot be changed for most plugins, eg. the {plugin: File/PageHandler} will
67
- always handle @.page@ files. However, the information about how these path patterns work are useful
68
- for the usage of webgen because of two reasons:
69
-
70
- * so that the user knows which files will be processed by a specific file handler plugin
71
- * so that the user can specify path patterns for some special file handler plugins that support
72
- additional path patterns, like the {plugin: File/CopyHandler}.
73
-
74
- Here are some example path patterns:
75
-
76
- <table class="examples">
77
- <tr><th>Path Pattern</th><th>Result</th></tr>
78
- <tr>
79
- <td><notextile><code>*/*.html</code></notextile></td>
80
- <td>All files with the extension @html@ in the subdirectories of the source directory</td>
81
- </tr>
82
- <tr>
83
- <td><notextile><code>**/*.html</code></notextile></td>
84
- <td>All files with the extension @html@ in all directories</td>
85
- </tr>
86
- <tr>
87
- <td><notextile><code>**/{foo,bar}*</code></notextile></td>
88
- <td>All files in all directories which start with @foo@ or @bar@</td>
89
- </tr>
90
- <tr>
91
- <td><notextile><code>**/???</code></notextile></td>
92
- <td>All files in all directories whose file name is exactly three characters long</td>
93
- </tr>
94
- </table>
95
-
96
-
97
-
98
- h2(#metainfo). File Meta Information
99
-
100
-
101
- Each file can have meta information, i.e. information about the file itself, associated with it, for
102
- example the title of the file, if it should appear in a menu and so on. Some file types allow this
103
- meta information to be specified directly in the file, e.g. page files. However, meta information
104
- can also be specified in the "meta information backing file":#metainfo-file.
105
-
106
-
107
- h3(#metainfo-param). The @defaultMetaInfo@ parameter
108
-
109
-
110
- This parameter can be used to override the default meta information set for a file handler plugin.
111
- The keys are the names of file handler plugins and the values are the meta information. You can
112
- either set the parameter directly or use the special functionality provided by the
113
- <a href="{relocatable: /documentation/basics.page#config}">configuration file</a> to
114
- set it for a file handler plugin.
115
-
116
-
117
- h3(#metainfo-file). The meta information backing file
118
-
119
-
120
- The meta information backing file contains meta information about files/directories in the source
121
- directory. It has two sections both of which have to be in YAML format and both have to have the
122
- same structure: a source backing section and an output backing section which is optional.
123
-
124
- The source backing section is used to apply meta information to a file before a node for this file
125
- is created. A file handler plugin can therefore use this meta information during the creation of the
126
- node. Make sure that you use a valid source path, i.e. a path that resolves to a file in the source
127
- directory!
128
-
129
- The output backing section is used to apply meta information after _all_ nodes have been created and
130
- to create so called "virtual nodes". The paths specified in the output backing section have to be
131
- valid output path, not source paths! If a specified path resolves to an already created node, the
132
- meta information is applied to this node. Otherwise, a virtual node is created with the specified
133
- meta information and empty content - a virtual node _never_ creates a real output file! This
134
- facility can be used, for example, to include links to external web pages in menus or to create the
135
- a whole menu with custom sections and multiple reference in different sections to the same node!
136
-
137
- Following is a sample meta information backing file with explanations afterwards:
138
-
139
- <pre>
140
- index.page:
141
- inMenu: true
142
- orderInfo: 2
143
-
144
- images:
145
- indexFile: ~
146
- \---
147
- index.page:
148
- inMenu: false
149
-
150
- wiki.html:
151
- title: Link to wiki
152
- url: http://myhost.com/path/to/my/wiki
153
- inMenu: true
154
- orderInfo: 5
155
-
156
- api.html:
157
- title: API Reference
158
- url: http://myhost.com/api
159
-
160
- virtdir/:
161
- indexFile: index.html
162
-
163
- virtdir/index.html:
164
- title: A virtual index file
165
- inMenu: true
166
- url: /index.page
167
-
168
- virtdir/other.html:
169
- inMenu: true
170
- url: /otherdir/linked.de.page
171
- </pre>
172
-
173
- The above sample meta information backing file consists of both sections: the mandatory source
174
- section and the optional output section. As you can see each section is described using a hash of
175
- hashes, i.e. the keys are paths and the values are the meta information hashes.
176
-
177
- The source section specifies additional meta information for the @index.page@ file and for the
178
- @images@ directory: the @index.page@ gets the @inMenu@ and @orderInfo@ meta information set and it
179
- is specified that the @images@ directory has no @indexFile@.
180
-
181
- The output section is more interesting than the source section:
182
-
183
- * The first entry references an existing file, therefore the meta information for that file
184
- (@index.page@) is set appropriately.
185
- * The second entry specifies that under the @root@ directory a virtual node with the path
186
- @wiki.html@ should be created (the node will be virtual as the path references no existing file).
187
- It should have the specified title and should be in the menu with the specified
188
- order. Furthermore, a special @*url*@ key is used. This key can only be used for virtual file
189
- nodes (not directory nodes) in the output section and it specifies the link target for the node.
190
- So, whenever a reference to @wiki.html@ is requested the resolved @url@ is returned. This @url@
191
- can be a link to an outside page or it can refer to another node, as described below. The @url@ is
192
- assumed to be relative to the directory the virutal node is in.
193
- * The third entry also specifies a virtual node linking to an external page, but one which will not
194
- appear in a menu. Such nodes are normally inserted into the output section so that the {plugin:
195
- Tag/Relocatable} can be used.
196
- * The last three entries add virtual entries to the menu to show how one page can appear in more
197
- than one directory: the @virtdir/index.html@ links to the top level @index.page@ and
198
- @virtdir/other.html@ links to a page in another subdirectory, namely @/otherdir/linked.de.page@.
199
-
200
-
201
- h3(#metainfo-processing). Processing order
202
-
203
-
204
- There is clearly defined order in which meta information is applied to a node for a file:
205
-
206
- # The default meta information for a node is specified via a directive in the plugin file handler
207
- that creates the node (this means that it is possible that no default meta information is
208
- specified). If such a default meta information is set for a plugin file handler it is shown on its
209
- plugin documentation page.
210
- # Overridden by values that are set for the plugin file handler for the node in the {param:
211
- Core/FileHandler:defaultMetaInfo} parameter.
212
- # Overridden by the meta information specified for the file in the source backing section of the
213
- meta information backing file.
214
- # Now the node is created by the file handler plugin with this meta information. During the node
215
- creation, it is possible that the meta information is overridden by meta information extracted
216
- from the file by the file handler plugin (e.g. the {plugin: File/PageHandler} parses the file
217
- name to extract meta information like the title of the node and uses the meta information
218
- specified in the file itself).
219
- # After all nodes are created, meta information specified in the output backing section of the meta
220
- file backing file is applied.