webgen 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. data/ChangeLog +76 -0
  2. data/Rakefile +23 -18
  3. data/TODO +5 -0
  4. data/VERSION +1 -1
  5. data/doc/metainfo.yaml +4 -1
  6. data/doc/src/default.template +5 -1
  7. data/doc/src/documentation/basics.page +148 -0
  8. data/doc/src/documentation/extending_webgen.page +4 -1
  9. data/doc/src/documentation/index.page +6 -3
  10. data/doc/src/documentation/plugins/core/filehandler.page +1 -1
  11. data/doc/src/documentation/plugins/file/directoryhandler.page +1 -1
  12. data/doc/src/documentation/references/index.page +20 -1
  13. data/doc/src/documentation/references/meta_info_reference.page +2 -1
  14. data/doc/src/documentation/{gettingstarted.page → tutorial.page} +6 -103
  15. data/doc/src/news.page +11 -0
  16. data/lib/webgen/config.rb +4 -4
  17. data/lib/webgen/node.rb +4 -2
  18. data/lib/webgen/plugins/filehandlers/template.rb +3 -1
  19. data/lib/webgen/plugins/miscplugins/rendered_files.rb +75 -0
  20. data/lib/webgen/rake/webgentask.rb +161 -0
  21. data/test/fixtures/sample_site/src/index.de.page +1 -0
  22. data/test/unittests/tc_filehandler_template.rb +3 -0
  23. data/test/unittests/tc_node.rb +3 -0
  24. metadata +6 -266
  25. data/doc/examples/website_styles/1024px/README +0 -9
  26. data/doc/examples/website_styles/1024px/config.yaml +0 -2
  27. data/doc/examples/website_styles/1024px/src/about.page +0 -12
  28. data/doc/examples/website_styles/1024px/src/default.css +0 -188
  29. data/doc/examples/website_styles/1024px/src/default.template +0 -62
  30. data/doc/examples/website_styles/1024px/src/download.page +0 -15
  31. data/doc/examples/website_styles/1024px/src/features.page +0 -8
  32. data/doc/examples/website_styles/1024px/src/images/background.gif +0 -0
  33. data/doc/examples/website_styles/1024px/src/index.page +0 -9
  34. data/doc/examples/website_styles/1024px/src/screenshots.page +0 -18
  35. data/doc/examples/website_styles/andreas00/README +0 -9
  36. data/doc/examples/website_styles/andreas00/config.yaml +0 -2
  37. data/doc/examples/website_styles/andreas00/src/about.page +0 -12
  38. data/doc/examples/website_styles/andreas00/src/default.css +0 -290
  39. data/doc/examples/website_styles/andreas00/src/default.template +0 -62
  40. data/doc/examples/website_styles/andreas00/src/download.page +0 -15
  41. data/doc/examples/website_styles/andreas00/src/features.page +0 -8
  42. data/doc/examples/website_styles/andreas00/src/images/bg.gif +0 -0
  43. data/doc/examples/website_styles/andreas00/src/images/front.jpg +0 -0
  44. data/doc/examples/website_styles/andreas00/src/images/menubg.gif +0 -0
  45. data/doc/examples/website_styles/andreas00/src/images/menubg2.gif +0 -0
  46. data/doc/examples/website_styles/andreas00/src/index.page +0 -9
  47. data/doc/examples/website_styles/andreas00/src/screenshots.page +0 -18
  48. data/doc/examples/website_styles/andreas01/README +0 -9
  49. data/doc/examples/website_styles/andreas01/config.yaml +0 -2
  50. data/doc/examples/website_styles/andreas01/src/about.page +0 -12
  51. data/doc/examples/website_styles/andreas01/src/default.css +0 -310
  52. data/doc/examples/website_styles/andreas01/src/default.template +0 -63
  53. data/doc/examples/website_styles/andreas01/src/download.page +0 -15
  54. data/doc/examples/website_styles/andreas01/src/features.page +0 -8
  55. data/doc/examples/website_styles/andreas01/src/images/bg.gif +0 -0
  56. data/doc/examples/website_styles/andreas01/src/images/front.jpg +0 -0
  57. data/doc/examples/website_styles/andreas01/src/index.page +0 -9
  58. data/doc/examples/website_styles/andreas01/src/print.css +0 -35
  59. data/doc/examples/website_styles/andreas01/src/screenshots.page +0 -18
  60. data/doc/examples/website_styles/andreas03/README +0 -9
  61. data/doc/examples/website_styles/andreas03/config.yaml +0 -2
  62. data/doc/examples/website_styles/andreas03/src/about.page +0 -12
  63. data/doc/examples/website_styles/andreas03/src/default.css +0 -223
  64. data/doc/examples/website_styles/andreas03/src/default.template +0 -60
  65. data/doc/examples/website_styles/andreas03/src/download.page +0 -15
  66. data/doc/examples/website_styles/andreas03/src/features.page +0 -8
  67. data/doc/examples/website_styles/andreas03/src/images/bodybg.png +0 -0
  68. data/doc/examples/website_styles/andreas03/src/images/contbg.png +0 -0
  69. data/doc/examples/website_styles/andreas03/src/images/footerbg.png +0 -0
  70. data/doc/examples/website_styles/andreas03/src/images/gradient1.png +0 -0
  71. data/doc/examples/website_styles/andreas03/src/images/gradient2.png +0 -0
  72. data/doc/examples/website_styles/andreas03/src/index.page +0 -9
  73. data/doc/examples/website_styles/andreas03/src/screenshots.page +0 -18
  74. data/doc/examples/website_styles/andreas04/README +0 -9
  75. data/doc/examples/website_styles/andreas04/config.yaml +0 -2
  76. data/doc/examples/website_styles/andreas04/src/about.page +0 -12
  77. data/doc/examples/website_styles/andreas04/src/default.css +0 -290
  78. data/doc/examples/website_styles/andreas04/src/default.template +0 -83
  79. data/doc/examples/website_styles/andreas04/src/download.page +0 -15
  80. data/doc/examples/website_styles/andreas04/src/features.page +0 -8
  81. data/doc/examples/website_styles/andreas04/src/images/blinkarrow.gif +0 -0
  82. data/doc/examples/website_styles/andreas04/src/images/bodybg.png +0 -0
  83. data/doc/examples/website_styles/andreas04/src/images/contentbg.png +0 -0
  84. data/doc/examples/website_styles/andreas04/src/images/entrybg.png +0 -0
  85. data/doc/examples/website_styles/andreas04/src/images/flash.gif +0 -0
  86. data/doc/examples/website_styles/andreas04/src/images/flash2.gif +0 -0
  87. data/doc/examples/website_styles/andreas04/src/images/globe.gif +0 -0
  88. data/doc/examples/website_styles/andreas04/src/images/globebottom.gif +0 -0
  89. data/doc/examples/website_styles/andreas04/src/images/linkarrow.gif +0 -0
  90. data/doc/examples/website_styles/andreas04/src/images/menuhover.png +0 -0
  91. data/doc/examples/website_styles/andreas04/src/index.page +0 -9
  92. data/doc/examples/website_styles/andreas04/src/screenshots.page +0 -18
  93. data/doc/examples/website_styles/andreas05/README +0 -9
  94. data/doc/examples/website_styles/andreas05/config.yaml +0 -2
  95. data/doc/examples/website_styles/andreas05/src/about.page +0 -12
  96. data/doc/examples/website_styles/andreas05/src/default.css +0 -33
  97. data/doc/examples/website_styles/andreas05/src/default.template +0 -42
  98. data/doc/examples/website_styles/andreas05/src/download.page +0 -15
  99. data/doc/examples/website_styles/andreas05/src/features.page +0 -8
  100. data/doc/examples/website_styles/andreas05/src/images/bodybg.gif +0 -0
  101. data/doc/examples/website_styles/andreas05/src/images/front.png +0 -0
  102. data/doc/examples/website_styles/andreas05/src/index.page +0 -9
  103. data/doc/examples/website_styles/andreas05/src/screenshots.page +0 -18
  104. data/doc/examples/website_styles/andreas06/README +0 -9
  105. data/doc/examples/website_styles/andreas06/config.yaml +0 -2
  106. data/doc/examples/website_styles/andreas06/src/about.page +0 -12
  107. data/doc/examples/website_styles/andreas06/src/default.css +0 -353
  108. data/doc/examples/website_styles/andreas06/src/default.template +0 -72
  109. data/doc/examples/website_styles/andreas06/src/download.page +0 -15
  110. data/doc/examples/website_styles/andreas06/src/features.page +0 -8
  111. data/doc/examples/website_styles/andreas06/src/images/bodybg.gif +0 -0
  112. data/doc/examples/website_styles/andreas06/src/images/boxbg.gif +0 -0
  113. data/doc/examples/website_styles/andreas06/src/images/greypx.gif +0 -0
  114. data/doc/examples/website_styles/andreas06/src/images/header.jpg +0 -0
  115. data/doc/examples/website_styles/andreas06/src/images/innerbg.gif +0 -0
  116. data/doc/examples/website_styles/andreas06/src/images/leaves.jpg +0 -0
  117. data/doc/examples/website_styles/andreas06/src/images/tabs.gif +0 -0
  118. data/doc/examples/website_styles/andreas06/src/index.page +0 -9
  119. data/doc/examples/website_styles/andreas06/src/screenshots.page +0 -18
  120. data/doc/examples/website_styles/andreas07/README +0 -9
  121. data/doc/examples/website_styles/andreas07/config.yaml +0 -2
  122. data/doc/examples/website_styles/andreas07/src/about.page +0 -12
  123. data/doc/examples/website_styles/andreas07/src/browserfix.css +0 -7
  124. data/doc/examples/website_styles/andreas07/src/default.css +0 -92
  125. data/doc/examples/website_styles/andreas07/src/default.template +0 -44
  126. data/doc/examples/website_styles/andreas07/src/download.page +0 -15
  127. data/doc/examples/website_styles/andreas07/src/features.page +0 -8
  128. data/doc/examples/website_styles/andreas07/src/images/bodybg.gif +0 -0
  129. data/doc/examples/website_styles/andreas07/src/images/sidebarbg.gif +0 -0
  130. data/doc/examples/website_styles/andreas07/src/index.page +0 -9
  131. data/doc/examples/website_styles/andreas07/src/screenshots.page +0 -18
  132. data/doc/examples/website_styles/andreas08/README +0 -9
  133. data/doc/examples/website_styles/andreas08/config.yaml +0 -2
  134. data/doc/examples/website_styles/andreas08/src/about.page +0 -12
  135. data/doc/examples/website_styles/andreas08/src/default.css +0 -224
  136. data/doc/examples/website_styles/andreas08/src/default.template +0 -53
  137. data/doc/examples/website_styles/andreas08/src/download.page +0 -15
  138. data/doc/examples/website_styles/andreas08/src/features.page +0 -8
  139. data/doc/examples/website_styles/andreas08/src/index.page +0 -9
  140. data/doc/examples/website_styles/andreas08/src/screenshots.page +0 -18
  141. data/doc/examples/website_styles/andreas09/README +0 -9
  142. data/doc/examples/website_styles/andreas09/config.yaml +0 -2
  143. data/doc/examples/website_styles/andreas09/src/about.page +0 -12
  144. data/doc/examples/website_styles/andreas09/src/default.css +0 -308
  145. data/doc/examples/website_styles/andreas09/src/default.template +0 -70
  146. data/doc/examples/website_styles/andreas09/src/download.page +0 -15
  147. data/doc/examples/website_styles/andreas09/src/features.page +0 -8
  148. data/doc/examples/website_styles/andreas09/src/images/bodybg-black.jpg +0 -0
  149. data/doc/examples/website_styles/andreas09/src/images/bodybg-green.jpg +0 -0
  150. data/doc/examples/website_styles/andreas09/src/images/bodybg-orange.jpg +0 -0
  151. data/doc/examples/website_styles/andreas09/src/images/bodybg-purple.jpg +0 -0
  152. data/doc/examples/website_styles/andreas09/src/images/bodybg-red.jpg +0 -0
  153. data/doc/examples/website_styles/andreas09/src/images/bodybg.jpg +0 -0
  154. data/doc/examples/website_styles/andreas09/src/images/footerbg.jpg +0 -0
  155. data/doc/examples/website_styles/andreas09/src/images/menuhover-black.jpg +0 -0
  156. data/doc/examples/website_styles/andreas09/src/images/menuhover-green.jpg +0 -0
  157. data/doc/examples/website_styles/andreas09/src/images/menuhover-orange.jpg +0 -0
  158. data/doc/examples/website_styles/andreas09/src/images/menuhover-purple.jpg +0 -0
  159. data/doc/examples/website_styles/andreas09/src/images/menuhover-red.jpg +0 -0
  160. data/doc/examples/website_styles/andreas09/src/images/menuhover.jpg +0 -0
  161. data/doc/examples/website_styles/andreas09/src/index.page +0 -9
  162. data/doc/examples/website_styles/andreas09/src/screenshots.page +0 -18
  163. data/doc/examples/website_styles/default/README +0 -9
  164. data/doc/examples/website_styles/default/config.yaml +0 -2
  165. data/doc/examples/website_styles/default/src/about.page +0 -12
  166. data/doc/examples/website_styles/default/src/default.css +0 -84
  167. data/doc/examples/website_styles/default/src/default.template +0 -38
  168. data/doc/examples/website_styles/default/src/download.page +0 -15
  169. data/doc/examples/website_styles/default/src/features.page +0 -8
  170. data/doc/examples/website_styles/default/src/index.page +0 -9
  171. data/doc/examples/website_styles/default/src/screenshots.page +0 -18
  172. data/doc/examples/website_styles/plain/README +0 -9
  173. data/doc/examples/website_styles/plain/config.yaml +0 -2
  174. data/doc/examples/website_styles/plain/src/about.page +0 -12
  175. data/doc/examples/website_styles/plain/src/default.css +0 -244
  176. data/doc/examples/website_styles/plain/src/default.template +0 -63
  177. data/doc/examples/website_styles/plain/src/download.page +0 -15
  178. data/doc/examples/website_styles/plain/src/features.page +0 -8
  179. data/doc/examples/website_styles/plain/src/images/a_hover.jpg +0 -0
  180. data/doc/examples/website_styles/plain/src/images/desc.jpg +0 -0
  181. data/doc/examples/website_styles/plain/src/images/li.gif +0 -0
  182. data/doc/examples/website_styles/plain/src/images/mainbar.jpg +0 -0
  183. data/doc/examples/website_styles/plain/src/images/menu.jpg +0 -0
  184. data/doc/examples/website_styles/plain/src/images/submenua.gif +0 -0
  185. data/doc/examples/website_styles/plain/src/images/submenua_hover.jpg +0 -0
  186. data/doc/examples/website_styles/plain/src/index.page +0 -9
  187. data/doc/examples/website_styles/plain/src/screenshots.page +0 -18
  188. data/doc/examples/website_templates/default/README +0 -8
  189. data/doc/examples/website_templates/default/config.yaml +0 -2
  190. data/doc/examples/website_templates/default/src/default.css +0 -84
  191. data/doc/examples/website_templates/default/src/default.template +0 -38
  192. data/doc/examples/website_templates/default/src/index.page +0 -8
  193. data/doc/examples/website_templates/personal_hp/README +0 -8
  194. data/doc/examples/website_templates/personal_hp/config.yaml +0 -2
  195. data/doc/examples/website_templates/personal_hp/src/about.page +0 -12
  196. data/doc/examples/website_templates/personal_hp/src/default.css +0 -84
  197. data/doc/examples/website_templates/personal_hp/src/default.template +0 -38
  198. data/doc/examples/website_templates/personal_hp/src/index.page +0 -9
  199. data/doc/examples/website_templates/personal_hp/src/links.page +0 -22
  200. data/doc/examples/website_templates/personal_hp/src/projects.page +0 -20
  201. data/doc/examples/website_templates/project/README +0 -9
  202. data/doc/examples/website_templates/project/config.yaml +0 -2
  203. data/doc/examples/website_templates/project/src/about.page +0 -12
  204. data/doc/examples/website_templates/project/src/default.css +0 -84
  205. data/doc/examples/website_templates/project/src/default.template +0 -38
  206. data/doc/examples/website_templates/project/src/download.page +0 -15
  207. data/doc/examples/website_templates/project/src/features.page +0 -8
  208. data/doc/examples/website_templates/project/src/index.page +0 -9
  209. data/doc/examples/website_templates/project/src/screenshots.page +0 -18
  210. data/doc/plugin/gallery/slides/collage.rb +0 -334
  211. data/doc/src/examples/gallery_styles/default/default.gallery +0 -78
  212. data/doc/src/examples/gallery_styles/default/gallery_gallery.template +0 -38
  213. data/doc/src/examples/gallery_styles/default/gallery_image.template +0 -30
  214. data/doc/src/examples/gallery_styles/default/gallery_main.template +0 -18
  215. data/doc/src/examples/gallery_styles/index.page +0 -22
  216. data/doc/src/examples/gallery_styles/slides/gallery_gallery.template +0 -62
  217. data/doc/src/examples/gallery_styles/slides/gallery_image.template +0 -53
  218. data/doc/src/examples/gallery_styles/slides/gallery_main.template +0 -32
  219. data/doc/src/examples/gallery_styles/slides/slides.gallery +0 -79
  220. data/doc/src/examples/website_styles/1024px.page +0 -5
  221. data/doc/src/examples/website_styles/andreas00.page +0 -5
  222. data/doc/src/examples/website_styles/andreas01.page +0 -5
  223. data/doc/src/examples/website_styles/andreas03.page +0 -5
  224. data/doc/src/examples/website_styles/andreas04.page +0 -5
  225. data/doc/src/examples/website_styles/andreas05.page +0 -5
  226. data/doc/src/examples/website_styles/andreas06.page +0 -5
  227. data/doc/src/examples/website_styles/andreas07.page +0 -5
  228. data/doc/src/examples/website_styles/andreas08.page +0 -5
  229. data/doc/src/examples/website_styles/andreas09.page +0 -5
  230. data/doc/src/examples/website_styles/default.page +0 -5
  231. data/doc/src/examples/website_styles/index.page +0 -71
  232. data/doc/src/examples/website_styles/plain.page +0 -5
  233. data/doc/src/examples/website_templates/default.page +0 -5
  234. data/doc/src/examples/website_templates/index.page +0 -24
  235. data/doc/src/examples/website_templates/personal_hp.page +0 -5
  236. data/doc/src/examples/website_templates/project.page +0 -5
data/ChangeLog CHANGED
@@ -1,4 +1,80 @@
1
1
  ------------------------------------------------------------------------
2
+ r590 | thomas | 2007-01-12 11:03:52 +0100 (Fri, 12 Jan 2007) | 1 line
3
+ Changed paths:
4
+ M /trunk/webgen/Rakefile
5
+
6
+ * fixed Rake task
7
+ ------------------------------------------------------------------------
8
+ r589 | thomas | 2007-01-12 11:02:54 +0100 (Fri, 12 Jan 2007) | 2 lines
9
+ Changed paths:
10
+ M /trunk/webgen/TODO
11
+ M /trunk/webgen/doc/src/default.template
12
+ M /trunk/webgen/doc/src/documentation/references/meta_info_reference.page
13
+ M /trunk/webgen/doc/src/news.page
14
+
15
+ * updated meta information reference for template
16
+ * updated date for release
17
+ ------------------------------------------------------------------------
18
+ r588 | thomas | 2007-01-12 10:55:32 +0100 (Fri, 12 Jan 2007) | 1 line
19
+ Changed paths:
20
+ M /trunk/webgen/lib/webgen/plugins/filehandlers/template.rb
21
+ M /trunk/webgen/test/fixtures/sample_site/src/index.de.page
22
+ M /trunk/webgen/test/unittests/tc_filehandler_template.rb
23
+
24
+ * updated File/TemplateHandler sothat when meta information template is set to nil no template is used
25
+ ------------------------------------------------------------------------
26
+ r587 | thomas | 2007-01-11 08:01:10 +0100 (Thu, 11 Jan 2007) | 2 lines
27
+ Changed paths:
28
+ M /trunk/webgen/TODO
29
+ M /trunk/webgen/doc/metainfo.yaml
30
+ M /trunk/webgen/doc/src/default.template
31
+ A /trunk/webgen/doc/src/documentation/basics.page
32
+ M /trunk/webgen/doc/src/documentation/extending_webgen.page
33
+ D /trunk/webgen/doc/src/documentation/gettingstarted.page
34
+ M /trunk/webgen/doc/src/documentation/index.page
35
+ M /trunk/webgen/doc/src/documentation/plugins/core/filehandler.page
36
+ M /trunk/webgen/doc/src/documentation/plugins/file/directoryhandler.page
37
+ M /trunk/webgen/doc/src/documentation/references/index.page
38
+ A /trunk/webgen/doc/src/documentation/tutorial.page (from /trunk/webgen/doc/src/documentation/gettingstarted.page:586)
39
+ M /trunk/webgen/doc/src/news.page
40
+
41
+ * splitted getting started page into two pages
42
+ * updated parts of the documentation thanks to John Gabriele how pointed out some flaws
43
+ ------------------------------------------------------------------------
44
+ r586 | thomas | 2007-01-10 17:46:05 +0100 (Wed, 10 Jan 2007) | 5 lines
45
+ Changed paths:
46
+ M /trunk/webgen/Rakefile
47
+ M /trunk/webgen/TODO
48
+ M /trunk/webgen/lib/webgen/config.rb
49
+ A /trunk/webgen/lib/webgen/plugins/miscplugins/rendered_files.rb
50
+ A /trunk/webgen/lib/webgen/rake
51
+ A /trunk/webgen/lib/webgen/rake/webgentask.rb
52
+ D /trunk/webgen/lib/webgen/raketasks.rb
53
+
54
+ * added Misc/RenderFiles plugin by Jeremy Hinegardner
55
+ * added rake task for webgen by Jeremy Hinegardner (with some small modifications)
56
+ * removed my own rake task as the version of Jeremy is more complete
57
+ * updated rake file to use new webgen task
58
+ * fixed Webgen.data_dir to use expanded paths
59
+ ------------------------------------------------------------------------
60
+ r585 | thomas | 2007-01-10 16:48:08 +0100 (Wed, 10 Jan 2007) | 1 line
61
+ Changed paths:
62
+ M /trunk/webgen/lib/webgen/node.rb
63
+ M /trunk/webgen/test/unittests/tc_node.rb
64
+
65
+ * bug fix: Windows full path starting with LETTER:/ matched absolute url regexp - this was bad for the root node
66
+ ------------------------------------------------------------------------
67
+ r584 | thomas | 2007-01-09 07:30:36 +0100 (Tue, 09 Jan 2007) | 3 lines
68
+ Changed paths:
69
+ M /trunk/webgen/Rakefile
70
+ M /trunk/webgen/TODO
71
+ M /trunk/webgen/lib/webgen/config.rb
72
+ A /trunk/webgen/lib/webgen/raketasks.rb
73
+
74
+ * bumped version number
75
+ * added a rake task for running webgen
76
+ * fixed Rakefile to use new webgen rake task
77
+ ------------------------------------------------------------------------
2
78
  r582 | thomas | 2007-01-05 11:12:50 +0100 (Fri, 05 Jan 2007) | 1 line
3
79
  Changed paths:
4
80
  M /trunk/webgen/doc/src/default.template
data/Rakefile CHANGED
@@ -30,10 +30,11 @@ require 'rake/packagetask'
30
30
  require 'rake/rdoctask'
31
31
  require 'rake/testtask'
32
32
 
33
- # General actions ##############################################################
33
+ # General things ##############################################################
34
34
 
35
- $:.push 'lib'
35
+ $:.push File.expand_path( File.join( File.dirname(__FILE__), 'lib' ) )
36
36
  require 'webgen/config'
37
+ require 'webgen/rake/webgentask'
37
38
 
38
39
  PKG_NAME = "webgen"
39
40
  PKG_VERSION = Webgen::VERSION.join( '.' )
@@ -43,8 +44,8 @@ PKG_DESCRIPTION = Webgen::DESCRIPTION
43
44
 
44
45
  SRC_RB = FileList['lib/**/*.rb']
45
46
 
46
- # The default task is run if rake is given no explicit arguments.
47
47
 
48
+ # The default task is run if rake is given no explicit arguments.
48
49
  desc "Default Task"
49
50
  task :default => :test
50
51
 
@@ -63,13 +64,31 @@ task :install => [:prepare] do
63
64
  ruby "setup.rb install"
64
65
  end
65
66
 
67
+
66
68
  CLEAN.exclude( 'doc/src/documentation/plugins/core' )
69
+ CLEAN.exclude( 'doc/output/documentation/plugins/core' )
67
70
  task :clean do
68
71
  ruby "setup.rb clean"
69
72
  end
70
73
 
74
+
71
75
  desc "Creates the whole documentation"
72
- task :doc => [:rdoc, :webgen_doc]
76
+ task :doc => [:rdoc, :webgen]
77
+
78
+ Webgen::Rake::WebgenTask.new do |webgen|
79
+ webgen.directory = File.join( File.dirname( __FILE__ ), 'doc' )
80
+ webgen.clobber_outdir = true
81
+ end
82
+ task :webgen => [:create_examples]
83
+
84
+ rd = Rake::RDocTask.new do |rdoc|
85
+ rdoc.rdoc_dir = 'doc/output/rdoc'
86
+ rdoc.title = PKG_NAME
87
+ rdoc.options << '--line-numbers' << '--inline-source' << '-m README'
88
+ rdoc.rdoc_files.include( 'README' )
89
+ rdoc.rdoc_files.include( 'lib/**/*.rb' )
90
+ end
91
+
73
92
 
74
93
  CLOBBER << "doc/examples"
75
94
  CLOBBER << "doc/src/examples/website_templates"
@@ -216,20 +235,6 @@ Following is the list of all available gallery styles:
216
235
 
217
236
  end
218
237
 
219
- CLOBBER << "doc/output"
220
- desc "Generates the webgen documentation"
221
- task :webgen_doc => [:create_examples] do
222
- puts "\nGenerating online documentation..."
223
- ruby %{-Ilib bin/webgen -d doc -V 2 }
224
- end
225
-
226
- rd = Rake::RDocTask.new do |rdoc|
227
- rdoc.rdoc_dir = 'doc/output/rdoc'
228
- rdoc.title = PKG_NAME
229
- rdoc.options << '--line-numbers' << '--inline-source' << '-m README'
230
- rdoc.rdoc_files.include( 'README' )
231
- rdoc.rdoc_files.include( 'lib/**/*.rb' )
232
- end
233
238
 
234
239
  task :test do
235
240
  ruby "-Ilib -Itest test/runtests.rb"
data/TODO CHANGED
@@ -1,5 +1,7 @@
1
1
  ---- CURRENT ----
2
2
 
3
+ * modify WebSite to allow better use (factor out loading of plugins into own method, do not call init in #render method, ...)
4
+ * fix TreeWalker (call it!)
3
5
  * show error message when configuration file is invalid (Webgen::WebSite)
4
6
  * fix website styles menus to have a style for current menu item with <span> instead of <a>
5
7
  * add a common class to the menu element (either a or span, depending on Fil/DefaultFileHandler:linkToCurrentPage) for easier referencing in CSS styles (update menu CSS style afterwards for horiz-dd, vert-dd, ...)
@@ -369,3 +371,6 @@ W do not allow two or more page files in the same language, print warn
369
371
  * document that source directory is now always called src - no parameter anymore
370
372
  * document somewhere which objects are available when processing templates/pages files with ERB
371
373
  * document evaluation order of page files (first content converted from Textile/Markdown/... to HTML, then ERB, then tags)
374
+ * create a rake task for running webgen (like the rdoc task)
375
+ * documentation: split getting started into basics and tutorial pages
376
+ * make it possible to set meta information template to nil
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -21,7 +21,10 @@ images:
21
21
  indexFile: ~
22
22
 
23
23
 
24
- documentation/gettingstarted.page:
24
+ documentation/basics.page:
25
+ orderInfo: 1
26
+
27
+ documentation/tutorial.page:
25
28
  orderInfo: 3
26
29
 
27
30
  documentation/extending_webgen.page:
@@ -40,13 +40,17 @@
40
40
  <% end %>
41
41
  <h1>Tips</h1>
42
42
  <ul class="list">
43
- <li>The <a href="{relocatable: /documentation/gettingstarted.en.page}">Getting Started</a> page contains everything one needs to get going with webgen!</li>
43
+ <li>The <a href="{relocatable: /documentation/basics.en.page}">basics page</a>contains everything one needs to get going with webgen!</li>
44
44
  <li>Descriptions for plugins can be found in the <a href="{relocatable:documentation/plugins}">plugins section</a></li>
45
45
  </ul>
46
46
  </div>
47
47
 
48
48
  <div id="rightside">
49
49
  <h1>Latest news</h1>
50
+ <p><strong>2007-01-12: </strong>
51
+ webgen 0.4.1 released! Bug fix for running webgen on Windows and other small updates!
52
+ <a href="{relocatable: news.en.page#news-2007-01-12}">More...</a>
53
+ </p>
50
54
  <p><strong>2007-01-05: </strong>
51
55
  webgen 0.4.0 released! Major update to the core and plugins and many new features added!
52
56
  <a href="{relocatable: news.en.page#news-2007-01-05}">More...</a>
@@ -0,0 +1,148 @@
1
+ ---
2
+ title: Basics
3
+ inMenu: true
4
+ ---
5
+ h2(#directories). The Needed Directories
6
+
7
+
8
+ webgen needs a special directory structure so that it can work correctly. Basically, you have a
9
+ website directory under which the following directories have to be:
10
+
11
+ * @src@: The source directory in which all the source files for the website are. The name of this
12
+ directory cannot be changed!
13
+ * @output@: This directory is created, if it does not exist, when webgen is run. All the output
14
+ files are put into this directory. The name of this directory and its location can be customized
15
+ using the parameter {param: Core/Configuration:outDir}.
16
+ * @plugin@: The extension directory. You can put self-written plugins into this directory so that
17
+ they can be used by webgen. All <notextile><tt>*.rb</tt></notextile> files in this directory and
18
+ its subdirectories are loaded as plugins. The name of this directory can't be customized, too!
19
+
20
+ The directory in which these directories are in is called the *website directory*.
21
+
22
+
23
+ h2(#cmdline). The @webgen@ Command
24
+
25
+
26
+ The executable for webgen is called... webgen ;-) It uses a command style syntax (like Subversion's
27
+ @svn@ or Rubygem's @gem@ commands) through the "cmdparse":http://cmdparse.rubyforge.org library. To
28
+ get an overview of the possible commands run
29
+
30
+ <pre>
31
+ $ webgen help
32
+ </pre>
33
+
34
+ This will output something like this:
35
+
36
+ <pre>
37
+ Usage: webgen [options] COMMAND [options] [COMMAND [options] ...] [args]
38
+
39
+ Available commands:
40
+ check Checks things like validity of the config file or the availability of optional libraries
41
+ config Checks the validity of the configuration and outputs the used options (=default command)
42
+ libs Checks the availability of optional libraries used by plugins
43
+ create Creates the basic directories and files for webgen.
44
+ help Provide help for individual commands
45
+ run Runs webgen, ie. generates the HTML files (=default command)
46
+ show Shows various information
47
+ config Shows information like the parameters for all or the matched plugins
48
+ plugins Shows the available plugins
49
+ use Changes the used website or gallery styles
50
+ gallery_style Changes the used gallery style
51
+ website_style Changes the used website style
52
+ version Show the version of the program
53
+
54
+ Global options:
55
+ -d, --directory DIR The website directory, if none specified, current directory is used.
56
+ -V, --verbosity LEVEL The verbosity level (0-3)
57
+ -h, --help Show help
58
+ -v, --version Show the version of the program
59
+ </pre>
60
+
61
+
62
+ As you can see, webgen supports many commands, from checking the validity of the configuration and
63
+ the available libraries to displaying the configuration values. However, the main command is the
64
+ @run@ command which does the actual website generation. This command uses the current working
65
+ directory as website directory if none was specified via the @-d@ option.
66
+
67
+ You can invoke a command by specifying it after the executable name. If we also think of the
68
+ executable @webgen@ as a command, then the options for a command are specified directly after the
69
+ command name and before the next command or any arguments. For example, all the following command
70
+ lines are valid:
71
+
72
+ <pre>
73
+ $ webgen
74
+ $ webgen run
75
+ $ webgen -d doc run
76
+ $ webgen -V 0 create -t project
77
+ $ webgen show config
78
+ $ webgen help create
79
+ $ webgen help show config
80
+ </pre>
81
+
82
+ The commands on the first and second line do the same because of the @run@ command being the default
83
+ command. The third command specifies a global option, as does the fourth. However, the fourth also
84
+ specifies a command specific option @-t@. The fifth command shows how nested commands are used; in
85
+ this case the @config@ command under the @show@ command is executed. The last two commands show how
86
+ the included @help@ command works: the sixth command shows the help for the @create@ command and the
87
+ last one shows it for the nested @show config@ command.
88
+
89
+ For more information on how the commands work have a look at the
90
+ "cmdparse":http://cmdparse.rubyforge.org documentation!
91
+
92
+
93
+ h2(#config). Configuration
94
+
95
+
96
+ webgen provides a default configuration out of the box. If you can live with that, you do not need
97
+ to write any configuration files. Because most people cannot, you can use your own configuration
98
+ file. The configuration file has to be written in YAML and is called @config.yaml@. webgen assumes
99
+ it to be in the website directory.
100
+
101
+ Each plugin can specify parameters which can be configured through the configuration file. You can
102
+ display a list of all available parameters by running
103
+
104
+ <pre>
105
+ $ webgen show config
106
+ </pre>
107
+
108
+ (This information is also provided on this website, have a look at the
109
+ <a href="{relocatable: plugins}">plugins section</a>!)
110
+
111
+ The list shows sorted by the plugin name the current values and the default values for each
112
+ parameter. Each parameter can be overridden in the configuration file by specifing the plugin name
113
+ as top level key and each parameter and value as a key/value pair. Therefore a configuration file
114
+ looks like this (this is the one for the webgen homepage):
115
+
116
+ <pre class="webgen-file">{includeFile: ../../config.yaml}</pre>
117
+
118
+ There is a special key for file handler plugins: @defaultMetaInfo@. It's value should be a hash with
119
+ the default meta information for nodes created by the plugin. The value is used to update the
120
+ correct part of the {param: Core/FileHandler:defaultMetaInfo} parameter *if and only if* no value
121
+ for the {param: Core/FileHandler:defaultMetaInfo} parameter has been set in the configuration file!
122
+
123
+
124
+ h2(#filetypes). File Types
125
+
126
+
127
+ webgen can handle different file types in the source directory through its plugin concept. The
128
+ {plugin: File} plugins are used for this task.
129
+
130
+ The most important files are the page and template files as they are used to define the content and
131
+ the layout of your website. Have a look at the
132
+ <a href="{relocatable:references/webpage_format.page}">WebPage Format</a> documentation to see how
133
+ these files look like and how they are structured. After that have a look at the documentation for
134
+ the plugins {plugin: File/PageHandler} and {plugin: File/TemplateHandler} as they are responsible
135
+ for handling the page and template files!
136
+
137
+ You can naturally use any other type of file in the webgen source directory. However, be aware that
138
+ some files may not be processed by webgen when no file handler plugin for them exist. For example,
139
+ there is currently no file handler plugin for @.svg@ files, so those files would be ignored. If you
140
+ just want to have files copied from the source to the output directory (like images or CSS files),
141
+ the {plugin: File/CopyHandler} plugin is what you need!
142
+
143
+
144
+ h2(#goingon). From here on...
145
+
146
+
147
+ Now that you know the basics, you can go on to the
148
+ <a href="{relocatable: tutorial.page}">tutorial</a> to create your first website with webgen!
@@ -6,6 +6,9 @@ h2. Extending webgen
6
6
 
7
7
  h3. General
8
8
 
9
+ p={font-size: 150%; color: red}. *This part of the homepage is out of date and will be updated soon!*
10
+
11
+
9
12
  There is a logging mechanism available for informational and debugging purposes. Four different log
10
13
  levels are available:
11
14
 
@@ -21,7 +24,7 @@ a string.
21
24
  h3. Normal plugins (new tags, file handlers, etc)
22
25
 
23
26
  As webgen is plugin-based, it can be extended very easily. A simple example is shown in the
24
- <a href="{relocatable: gettingstarted.page#website-plugin}">Getting Started</a> guide.
27
+ <a href="{relocatable: tutorial.page#website-plugin}">tutorial</a>.
25
28
 
26
29
  If you want more sophisticated examples of plugins, have a look at webgen itself and the plugins
27
30
  that get shipped with it. They can be found in the directory @lib/webgen/plugins/@!
@@ -1,10 +1,13 @@
1
1
  ---
2
2
  directoryName: Documentation
3
+ title: Preface
3
4
  ---
4
- h2. Information
5
+ h2. Preface
5
6
 
6
7
 
7
- p={font-size: 150%; color: red}. *!!! This documentation is for webgen {version: } !!!*
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
+
8
11
 
9
12
  The source files for this website are in the @doc/src@ directory of the webgen distribution. Have a
10
13
  look at them to see a real world example on how to use webgen!
@@ -17,7 +20,7 @@ I often see that the name of the program is misspelled: WebGen, Webgen, WEBGEN,
17
20
  *webgen*, all lower case!
18
21
 
19
22
 
20
- h2. Philosophy
23
+ h2. Philosophy of webgen
21
24
 
22
25
 
23
26
  There are some things about webgen which I think are important to mention. It's about how webgen
@@ -104,7 +104,7 @@ h3(#metainfo-param). The @defaultMetaInfo@ parameter
104
104
  This parameter can be used to override the default meta information set for a file handler plugin.
105
105
  The keys are the names of file handler plugins and the values are the meta information. You can
106
106
  either set the parameter directly or use the special functionality provided by the
107
- <a href="{relocatable: /documentation/gettingstarted.page#config}">configuration file</a> to
107
+ <a href="{relocatable: /documentation/basics.page#config}">configuration file</a> to
108
108
  set it for a file handler plugin.
109
109
 
110
110
 
@@ -14,7 +14,7 @@ directory path is resolved (e.g. by the {plugin: Tag/Relocatable}) the index fil
14
14
  The name of the index file is specified with the @indexFile@ meta information on a directory node.
15
15
  This meta information is set by default and can be overridden globally by using the special
16
16
  @defaultMetaInfo@ param for the @DirectoryHandler@ in the
17
- <a href="{relocatable: /documentation/gettingstarted.page#config}">configuration file</a> or by
17
+ <a href="{relocatable: /documentation/basics.page#config}">configuration file</a> or by
18
18
  setting it on individual directories using the
19
19
  <a href="{relocatable: ../core/filehandler.page#metainfo-file}">meta information backing file</a>.
20
20
 
@@ -4,4 +4,23 @@ directoryName: References
4
4
  ---
5
5
  h2. About
6
6
 
7
- Some references for your convenience!
7
+
8
+ This part of the documentation contains some references for your convenience:
9
+
10
+ * <b><a href="{relocatable: webpage_format.page}">WebPage Format Reference</a></b>
11
+
12
+ Describes the structure and format of the WebPage Format, the format used, for
13
+ example, for page and template files.
14
+
15
+ * <b><a href="{relocatable: meta_info_reference.page}">Meta Information Reference</a></b>
16
+
17
+ Provides an overview over all special meta information keys that can be used in conjunction with
18
+ webgen.
19
+
20
+ * <b><a href="{relocatable: parameter_reference.page}">Parameter Reference</a></b>
21
+
22
+ Lists the parameters for all plugins for easy search and retrieval.
23
+
24
+ * <b><a href="{relocatable: /api.html}">API Reference</a></b>
25
+
26
+ Provides detailed API documentation through RDOC generated documents.
@@ -65,7 +65,8 @@ plugin, be it a file handler plugin, a tag plugin...
65
65
  <td>String</td>
66
66
  <td>my.template</td>
67
67
  <td>Page/Template file</td>
68
- <td>Sets the template for the page/template file overriding the default value.</td>
68
+ <td>Sets the template for the page/template file overriding the default value. If set to @nil@, no
69
+ template is used for the page/template file!</td>
69
70
  </tr>
70
71
  <tr>
71
72
  <th>title</th>