webgen 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. data/ChangeLog +132 -6742
  2. data/Rakefile +3 -1
  3. data/THANKS +27 -0
  4. data/VERSION +1 -1
  5. data/doc/examples/website_styles/1024px/README +9 -0
  6. data/doc/examples/website_styles/1024px/config.yaml +2 -0
  7. data/doc/examples/website_styles/1024px/src/about.page +12 -0
  8. data/doc/examples/website_styles/1024px/src/default.css +188 -0
  9. data/doc/examples/website_styles/1024px/src/default.template +62 -0
  10. data/doc/examples/website_styles/1024px/src/download.page +15 -0
  11. data/doc/examples/website_styles/1024px/src/features.page +8 -0
  12. data/doc/examples/website_styles/1024px/src/images/background.gif +0 -0
  13. data/doc/examples/website_styles/1024px/src/index.page +9 -0
  14. data/doc/examples/website_styles/1024px/src/screenshots.page +18 -0
  15. data/doc/examples/website_styles/andreas00/README +9 -0
  16. data/doc/examples/website_styles/andreas00/config.yaml +2 -0
  17. data/doc/examples/website_styles/andreas00/src/about.page +12 -0
  18. data/doc/examples/website_styles/andreas00/src/default.css +290 -0
  19. data/doc/examples/website_styles/andreas00/src/default.template +62 -0
  20. data/doc/examples/website_styles/andreas00/src/download.page +15 -0
  21. data/doc/examples/website_styles/andreas00/src/features.page +8 -0
  22. data/doc/examples/website_styles/andreas00/src/images/bg.gif +0 -0
  23. data/doc/examples/website_styles/andreas00/src/images/front.jpg +0 -0
  24. data/doc/examples/website_styles/andreas00/src/images/menubg.gif +0 -0
  25. data/doc/examples/website_styles/andreas00/src/images/menubg2.gif +0 -0
  26. data/doc/examples/website_styles/andreas00/src/index.page +9 -0
  27. data/doc/examples/website_styles/andreas00/src/screenshots.page +18 -0
  28. data/doc/examples/website_styles/andreas01/README +9 -0
  29. data/doc/examples/website_styles/andreas01/config.yaml +2 -0
  30. data/doc/examples/website_styles/andreas01/src/about.page +12 -0
  31. data/doc/examples/website_styles/andreas01/src/default.css +310 -0
  32. data/doc/examples/website_styles/andreas01/src/default.template +63 -0
  33. data/doc/examples/website_styles/andreas01/src/download.page +15 -0
  34. data/doc/examples/website_styles/andreas01/src/features.page +8 -0
  35. data/doc/examples/website_styles/andreas01/src/images/bg.gif +0 -0
  36. data/doc/examples/website_styles/andreas01/src/images/front.jpg +0 -0
  37. data/doc/examples/website_styles/andreas01/src/index.page +9 -0
  38. data/doc/examples/website_styles/andreas01/src/print.css +35 -0
  39. data/doc/examples/website_styles/andreas01/src/screenshots.page +18 -0
  40. data/doc/examples/website_styles/andreas03/README +9 -0
  41. data/doc/examples/website_styles/andreas03/config.yaml +2 -0
  42. data/doc/examples/website_styles/andreas03/src/about.page +12 -0
  43. data/doc/examples/website_styles/andreas03/src/default.css +223 -0
  44. data/doc/examples/website_styles/andreas03/src/default.template +60 -0
  45. data/doc/examples/website_styles/andreas03/src/download.page +15 -0
  46. data/doc/examples/website_styles/andreas03/src/features.page +8 -0
  47. data/doc/examples/website_styles/andreas03/src/images/bodybg.png +0 -0
  48. data/doc/examples/website_styles/andreas03/src/images/contbg.png +0 -0
  49. data/doc/examples/website_styles/andreas03/src/images/footerbg.png +0 -0
  50. data/doc/examples/website_styles/andreas03/src/images/gradient1.png +0 -0
  51. data/doc/examples/website_styles/andreas03/src/images/gradient2.png +0 -0
  52. data/doc/examples/website_styles/andreas03/src/index.page +9 -0
  53. data/doc/examples/website_styles/andreas03/src/screenshots.page +18 -0
  54. data/doc/examples/website_styles/andreas04/README +9 -0
  55. data/doc/examples/website_styles/andreas04/config.yaml +2 -0
  56. data/doc/examples/website_styles/andreas04/src/about.page +12 -0
  57. data/doc/examples/website_styles/andreas04/src/default.css +290 -0
  58. data/doc/examples/website_styles/andreas04/src/default.template +83 -0
  59. data/doc/examples/website_styles/andreas04/src/download.page +15 -0
  60. data/doc/examples/website_styles/andreas04/src/features.page +8 -0
  61. data/doc/examples/website_styles/andreas04/src/images/blinkarrow.gif +0 -0
  62. data/doc/examples/website_styles/andreas04/src/images/bodybg.png +0 -0
  63. data/doc/examples/website_styles/andreas04/src/images/contentbg.png +0 -0
  64. data/doc/examples/website_styles/andreas04/src/images/entrybg.png +0 -0
  65. data/doc/examples/website_styles/andreas04/src/images/flash.gif +0 -0
  66. data/doc/examples/website_styles/andreas04/src/images/flash2.gif +0 -0
  67. data/doc/examples/website_styles/andreas04/src/images/globe.gif +0 -0
  68. data/doc/examples/website_styles/andreas04/src/images/globebottom.gif +0 -0
  69. data/doc/examples/website_styles/andreas04/src/images/linkarrow.gif +0 -0
  70. data/doc/examples/website_styles/andreas04/src/images/menuhover.png +0 -0
  71. data/doc/examples/website_styles/andreas04/src/index.page +9 -0
  72. data/doc/examples/website_styles/andreas04/src/screenshots.page +18 -0
  73. data/doc/examples/website_styles/andreas05/README +9 -0
  74. data/doc/examples/website_styles/andreas05/config.yaml +2 -0
  75. data/doc/examples/website_styles/andreas05/src/about.page +12 -0
  76. data/doc/examples/website_styles/andreas05/src/default.css +33 -0
  77. data/doc/examples/website_styles/andreas05/src/default.template +42 -0
  78. data/doc/examples/website_styles/andreas05/src/download.page +15 -0
  79. data/doc/examples/website_styles/andreas05/src/features.page +8 -0
  80. data/doc/examples/website_styles/andreas05/src/images/bodybg.gif +0 -0
  81. data/doc/examples/website_styles/andreas05/src/images/front.png +0 -0
  82. data/doc/examples/website_styles/andreas05/src/index.page +9 -0
  83. data/doc/examples/website_styles/andreas05/src/screenshots.page +18 -0
  84. data/doc/examples/website_styles/andreas06/README +9 -0
  85. data/doc/examples/website_styles/andreas06/config.yaml +2 -0
  86. data/doc/examples/website_styles/andreas06/src/about.page +12 -0
  87. data/doc/examples/website_styles/andreas06/src/default.css +354 -0
  88. data/doc/examples/website_styles/andreas06/src/default.template +72 -0
  89. data/doc/examples/website_styles/andreas06/src/download.page +15 -0
  90. data/doc/examples/website_styles/andreas06/src/features.page +8 -0
  91. data/doc/examples/website_styles/andreas06/src/images/bodybg.gif +0 -0
  92. data/doc/examples/website_styles/andreas06/src/images/boxbg.gif +0 -0
  93. data/doc/examples/website_styles/andreas06/src/images/greypx.gif +0 -0
  94. data/doc/examples/website_styles/andreas06/src/images/header.jpg +0 -0
  95. data/doc/examples/website_styles/andreas06/src/images/innerbg.gif +0 -0
  96. data/doc/examples/website_styles/andreas06/src/images/leaves.jpg +0 -0
  97. data/doc/examples/website_styles/andreas06/src/images/tabs.gif +0 -0
  98. data/doc/examples/website_styles/andreas06/src/index.page +9 -0
  99. data/doc/examples/website_styles/andreas06/src/screenshots.page +18 -0
  100. data/doc/examples/website_styles/andreas07/README +9 -0
  101. data/doc/examples/website_styles/andreas07/config.yaml +2 -0
  102. data/doc/examples/website_styles/andreas07/src/about.page +12 -0
  103. data/doc/examples/website_styles/andreas07/src/browserfix.css +7 -0
  104. data/doc/examples/website_styles/andreas07/src/default.css +92 -0
  105. data/doc/examples/website_styles/andreas07/src/default.template +44 -0
  106. data/doc/examples/website_styles/andreas07/src/download.page +15 -0
  107. data/doc/examples/website_styles/andreas07/src/features.page +8 -0
  108. data/doc/examples/website_styles/andreas07/src/images/bodybg.gif +0 -0
  109. data/doc/examples/website_styles/andreas07/src/images/sidebarbg.gif +0 -0
  110. data/doc/examples/website_styles/andreas07/src/index.page +9 -0
  111. data/doc/examples/website_styles/andreas07/src/screenshots.page +18 -0
  112. data/doc/examples/website_styles/andreas08/README +9 -0
  113. data/doc/examples/website_styles/andreas08/config.yaml +2 -0
  114. data/doc/examples/website_styles/andreas08/src/about.page +12 -0
  115. data/doc/examples/website_styles/andreas08/src/default.css +224 -0
  116. data/doc/examples/website_styles/andreas08/src/default.template +53 -0
  117. data/doc/examples/website_styles/andreas08/src/download.page +15 -0
  118. data/doc/examples/website_styles/andreas08/src/features.page +8 -0
  119. data/doc/examples/website_styles/andreas08/src/index.page +9 -0
  120. data/doc/examples/website_styles/andreas08/src/screenshots.page +18 -0
  121. data/doc/examples/website_styles/andreas09/README +9 -0
  122. data/doc/examples/website_styles/andreas09/config.yaml +2 -0
  123. data/doc/examples/website_styles/andreas09/src/about.page +12 -0
  124. data/doc/examples/website_styles/andreas09/src/default.css +308 -0
  125. data/doc/examples/website_styles/andreas09/src/default.template +70 -0
  126. data/doc/examples/website_styles/andreas09/src/download.page +15 -0
  127. data/doc/examples/website_styles/andreas09/src/features.page +8 -0
  128. data/doc/examples/website_styles/andreas09/src/images/bodybg-black.jpg +0 -0
  129. data/doc/examples/website_styles/andreas09/src/images/bodybg-green.jpg +0 -0
  130. data/doc/examples/website_styles/andreas09/src/images/bodybg-orange.jpg +0 -0
  131. data/doc/examples/website_styles/andreas09/src/images/bodybg-purple.jpg +0 -0
  132. data/doc/examples/website_styles/andreas09/src/images/bodybg-red.jpg +0 -0
  133. data/doc/examples/website_styles/andreas09/src/images/bodybg.jpg +0 -0
  134. data/doc/examples/website_styles/andreas09/src/images/footerbg.jpg +0 -0
  135. data/doc/examples/website_styles/andreas09/src/images/menuhover-black.jpg +0 -0
  136. data/doc/examples/website_styles/andreas09/src/images/menuhover-green.jpg +0 -0
  137. data/doc/examples/website_styles/andreas09/src/images/menuhover-orange.jpg +0 -0
  138. data/doc/examples/website_styles/andreas09/src/images/menuhover-purple.jpg +0 -0
  139. data/doc/examples/website_styles/andreas09/src/images/menuhover-red.jpg +0 -0
  140. data/doc/examples/website_styles/andreas09/src/images/menuhover.jpg +0 -0
  141. data/doc/examples/website_styles/andreas09/src/index.page +9 -0
  142. data/doc/examples/website_styles/andreas09/src/screenshots.page +18 -0
  143. data/doc/examples/website_styles/default/README +9 -0
  144. data/doc/examples/website_styles/default/config.yaml +2 -0
  145. data/doc/examples/website_styles/default/src/about.page +12 -0
  146. data/doc/examples/website_styles/default/src/default.css +84 -0
  147. data/doc/examples/website_styles/default/src/default.template +38 -0
  148. data/doc/examples/website_styles/default/src/download.page +15 -0
  149. data/doc/examples/website_styles/default/src/features.page +8 -0
  150. data/doc/examples/website_styles/default/src/index.page +9 -0
  151. data/doc/examples/website_styles/default/src/screenshots.page +18 -0
  152. data/doc/examples/website_templates/default/README +8 -0
  153. data/doc/examples/website_templates/default/config.yaml +2 -0
  154. data/doc/examples/website_templates/default/src/default.css +84 -0
  155. data/doc/examples/website_templates/default/src/default.template +38 -0
  156. data/doc/examples/website_templates/default/src/index.page +8 -0
  157. data/doc/examples/website_templates/personal_hp/README +8 -0
  158. data/doc/examples/website_templates/personal_hp/config.yaml +2 -0
  159. data/doc/examples/website_templates/personal_hp/src/about.page +12 -0
  160. data/doc/examples/website_templates/personal_hp/src/default.css +84 -0
  161. data/doc/examples/website_templates/personal_hp/src/default.template +38 -0
  162. data/doc/examples/website_templates/personal_hp/src/index.page +9 -0
  163. data/doc/examples/website_templates/personal_hp/src/links.page +22 -0
  164. data/doc/examples/website_templates/personal_hp/src/projects.page +20 -0
  165. data/doc/examples/website_templates/project/README +9 -0
  166. data/doc/examples/website_templates/project/config.yaml +2 -0
  167. data/doc/examples/website_templates/project/src/about.page +12 -0
  168. data/doc/examples/website_templates/project/src/default.css +84 -0
  169. data/doc/examples/website_templates/project/src/default.template +38 -0
  170. data/doc/examples/website_templates/project/src/download.page +15 -0
  171. data/doc/examples/website_templates/project/src/features.page +8 -0
  172. data/doc/examples/website_templates/project/src/index.page +9 -0
  173. data/doc/examples/website_templates/project/src/screenshots.page +18 -0
  174. data/doc/plugin/gallery/slides/collage.rb +337 -0
  175. data/doc/src/default.template +12 -5
  176. data/doc/src/documentation/plugins/contentconverter/maruku.page +23 -0
  177. data/doc/src/documentation/plugins/menustyle/horizontal.page +4 -0
  178. data/doc/src/documentation/plugins/tag/htmlmetainfo.page +32 -0
  179. data/doc/src/documentation/plugins/tag/news.page +48 -0
  180. data/doc/src/download.page +3 -3
  181. data/doc/src/examples/example_sites/index.page +4 -0
  182. data/doc/src/examples/example_sites/personal.zip +0 -0
  183. data/doc/src/examples/example_sites/photo_gallery.zip +0 -0
  184. data/doc/src/examples/gallery_styles/default/default.gallery +78 -0
  185. data/doc/src/examples/gallery_styles/default/gallery_gallery.template +38 -0
  186. data/doc/src/examples/gallery_styles/default/gallery_image.template +30 -0
  187. data/doc/src/examples/gallery_styles/default/gallery_main.template +18 -0
  188. data/doc/src/examples/gallery_styles/index.page +22 -0
  189. data/doc/src/examples/gallery_styles/slides/gallery_gallery.template +62 -0
  190. data/doc/src/examples/gallery_styles/slides/gallery_image.template +53 -0
  191. data/doc/src/examples/gallery_styles/slides/gallery_main.template +32 -0
  192. data/doc/src/examples/gallery_styles/slides/slides.gallery +79 -0
  193. data/doc/src/examples/sipttra_styles/default.page +5 -0
  194. data/doc/src/examples/sipttra_styles/default/css/sipttra.rcss +71 -0
  195. data/doc/src/examples/sipttra_styles/default/default.template +16 -0
  196. data/doc/src/examples/sipttra_styles/default/index.todo +60 -0
  197. data/doc/src/examples/sipttra_styles/default/js/sipttra.js +7 -0
  198. data/doc/src/examples/sipttra_styles/default/sipttra.template +105 -0
  199. data/doc/src/examples/sipttra_styles/index.page +17 -0
  200. data/doc/src/examples/website_styles/1024px.page +5 -0
  201. data/doc/src/examples/website_styles/andreas00.page +5 -0
  202. data/doc/src/examples/website_styles/andreas01.page +5 -0
  203. data/doc/src/examples/website_styles/andreas03.page +5 -0
  204. data/doc/src/examples/website_styles/andreas04.page +5 -0
  205. data/doc/src/examples/website_styles/andreas05.page +5 -0
  206. data/doc/src/examples/website_styles/andreas06.page +5 -0
  207. data/doc/src/examples/website_styles/andreas07.page +5 -0
  208. data/doc/src/examples/website_styles/andreas08.page +5 -0
  209. data/doc/src/examples/website_styles/andreas09.page +5 -0
  210. data/doc/src/examples/website_styles/default.page +5 -0
  211. data/doc/src/examples/website_styles/index.page +76 -0
  212. data/doc/src/examples/website_templates/default.page +5 -0
  213. data/doc/src/examples/website_templates/index.page +24 -0
  214. data/doc/src/examples/website_templates/personal_hp.page +5 -0
  215. data/doc/src/examples/website_templates/project.page +5 -0
  216. data/doc/src/news.page +24 -0
  217. data/doc/src/project.todo +34 -0
  218. data/lib/webgen/config.rb +3 -3
  219. data/lib/webgen/content.rb +1 -1
  220. data/lib/webgen/plugins/contentconverters/maruku.rb +33 -0
  221. data/lib/webgen/plugins/filehandlers/gallery.rb +1 -1
  222. data/lib/webgen/plugins/filehandlers/template.rb +2 -3
  223. data/lib/webgen/plugins/menustyles/horizontal.rb +14 -3
  224. data/lib/webgen/plugins/tags/htmlmetainfo.rb +27 -0
  225. data/lib/webgen/plugins/tags/news.rb +149 -0
  226. data/lib/webgen/website.rb +1 -0
  227. data/test/unittests/tc_config.rb +1 -1
  228. data/test/unittests/tc_content.rb +8 -0
  229. data/test/unittests/tc_menustyles_horizontal.rb +49 -3
  230. metadata +704 -445
  231. data/data/webgen/website_styles/plain/README +0 -17
  232. data/data/webgen/website_styles/plain/default.css +0 -244
  233. data/data/webgen/website_styles/plain/default.template +0 -63
  234. data/data/webgen/website_styles/plain/images/a_hover.jpg +0 -0
  235. data/data/webgen/website_styles/plain/images/desc.jpg +0 -0
  236. data/data/webgen/website_styles/plain/images/li.gif +0 -0
  237. data/data/webgen/website_styles/plain/images/mainbar.jpg +0 -0
  238. data/data/webgen/website_styles/plain/images/menu.jpg +0 -0
  239. data/data/webgen/website_styles/plain/images/submenua.gif +0 -0
  240. data/data/webgen/website_styles/plain/images/submenua_hover.jpg +0 -0
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: 1024px
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='1024px/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas00
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas00/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas01
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas01/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas03
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas03/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas04
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas04/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas05
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas05/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas06
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas06/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas07
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas07/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas08
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas08/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: andreas09
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='andreas09/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: default
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='default/index.html' width='100%' height='600px' />
@@ -0,0 +1,76 @@
1
+ ---
2
+ title: Index
3
+ directoryName: Website Styles
4
+ ---
5
+ h2. List of website styles
6
+
7
+ The website styles open in an iframe when you use the menu items. Use the links provided below to
8
+ open the website styles directly (fullscreen).
9
+
10
+ Following is the list of all available website styles:
11
+
12
+
13
+ * <a href='1024px/index.html'>1024px</a>
14
+
15
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
16
+ * *Copyright*: http://andreasviklund.com/about/copyright/
17
+ * *Description*: Open source web design template by Andreas Viklund. Features a simple blue and grey two column interface, with a left or a right sidebar. Have a look at the homepage to see the original template and what can be done with it.
18
+ * *Homepage*: http://andreasviklund.com/templates
19
+ * <a href='andreas00/index.html'>andreas00</a>
20
+
21
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
22
+ * *Copyright*: http://andreasviklund.com/about/copyright/
23
+ * *Description*: Open source web design template by Andreas Viklund. Features a one-, two- or three-column interface in white and grey with many predefined styles for menus, tables, forms, ... Have a look at the homepage to see the original template and what can be done with it.
24
+ * *Homepage*: http://andreasviklund.com/templates
25
+ * <a href='andreas01/index.html'>andreas01</a>
26
+
27
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
28
+ * *Copyright*: http://andreasviklund.com/about/copyright/
29
+ * *Description*: Open source web design template by Andreas Viklund. Features a simple two- or three-column interface with many predefined styles. Similar to style andreas00. Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
30
+ * *Homepage*: http://andreasviklund.com/templates
31
+ * <a href='andreas03/index.html'>andreas03</a>
32
+
33
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
34
+ * *Copyright*: http://andreasviklund.com/about/copyright/
35
+ * *Description*: Open source web design template by Andreas Viklund. An accessible 2-column template in blue, grey and white which loads fast and works in all common browsers. Would be a good one for a blog! Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
36
+ * *Homepage*: http://andreasviklund.com/templates
37
+ * <a href='andreas04/index.html'>andreas04</a>
38
+
39
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
40
+ * *Copyright*: http://andreasviklund.com/about/copyright/
41
+ * *Description*: Open source web design template by Andreas Viklund. A simple two-column fluid width template in orange and grey using animated GIFs. Can be used for normal websites but it is probably best used for a blog! Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
42
+ * *Homepage*: http://andreasviklund.com/templates
43
+ * <a href='andreas05/index.html'>andreas05</a>
44
+
45
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
46
+ * *Copyright*: http://andreasviklund.com/about/copyright/
47
+ * *Description*: Open source web design template by Andreas Viklund. Simplicity is the main feature of this design. No advanced features and no effects are used which makes it great for small sites. Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
48
+ * *Homepage*: http://andreasviklund.com/templates
49
+ * <a href='andreas06/index.html'>andreas06</a>
50
+
51
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
52
+ * *Copyright*: http://andreasviklund.com/about/copyright/
53
+ * *Description*: Open source web design template by Andreas Viklund. A fall/autumn design in orange and blue with menu tabs and many in-built styles to use. Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
54
+ * *Homepage*: http://andreasviklund.com/templates
55
+ * <a href='andreas07/index.html'>andreas07</a>
56
+
57
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
58
+ * *Copyright*: http://andreasviklund.com/about/copyright/
59
+ * *Description*: Open source web design template by Andreas Viklund. A very simple design with minimalistic use of .classes or IDs in the CSS file. Uses a fixed position site menu, good for small or personal sites. Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
60
+ * *Homepage*: http://andreasviklund.com/templates
61
+ * <a href='andreas08/index.html'>andreas08</a>
62
+
63
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
64
+ * *Copyright*: http://andreasviklund.com/about/copyright/
65
+ * *Description*: Open source web design template by Andreas Viklund. Very simple and basic template without images in light blue and white. Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
66
+ * *Homepage*: http://andreasviklund.com/templates
67
+ * <a href='andreas09/index.html'>andreas09</a>
68
+
69
+ * *Author*: Andreas Viklund (adapted for webgen by Thomas Leitner)
70
+ * *Copyright*: http://andreasviklund.com/about/copyright/
71
+ * *Description*: Open source web design template by Andreas Viklund. Features a two or three column layout in various colors (blue, green, orange, purple, red and black) with many styles. Have a look at the available styles in the CSS file and visit the homepage to see the original template and what can be done with it.
72
+ * *Homepage*: http://andreasviklund.com/templates
73
+ * <a href='default/index.html'>default</a>
74
+
75
+ * *Author*: Thomas Leitner
76
+ * *Description*: Provides a minimalistic default style. The style defines a horizontal header, a horizontal bar with the breadcrumb trail and the language menu, then a menu on the left and a footer.
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: default
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='default/index.html' width='100%' height='600px' />
@@ -0,0 +1,24 @@
1
+ ---
2
+ title: Index
3
+ directoryName: Website Templates
4
+ ---
5
+ h2. List of website templates
6
+
7
+ The website templates open in an iframe when you use the menu items. Use the links provided below to
8
+ open the website templates directly (fullscreen).
9
+
10
+ Following is the list of all available website templates:
11
+
12
+
13
+ * <a href='default/index.html'>default</a>
14
+
15
+ * *Author*: Thomas Leitner
16
+ * *Description*: This is the default website template. It only contains the basic files and is a good starting place for any website.
17
+ * <a href='personal_hp/index.html'>personal_hp</a>
18
+
19
+ * *Author*: Thomas Leitner
20
+ * *Description*: This template can be used for personal homepages. It provides the most common pages found on personal homepages.
21
+ * <a href='project/index.html'>project</a>
22
+
23
+ * *Author*: Thomas Leitner
24
+ * *Description*: This template provides the basic files for a website for a software project. You just need to fill in the correct data in the provided files and there you go!
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: personal_hp
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='personal_hp/index.html' width='100%' height='600px' />
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: project
3
+ inMenu: true
4
+ --- content, html
5
+ <object type='text/html' data='project/index.html' width='100%' height='600px' />
@@ -5,6 +5,30 @@ inMenu: true
5
5
  h2. News
6
6
 
7
7
 
8
+ h3(#news-2007-05-19). 19.05.2007 - webgen 0.4.3
9
+
10
+ I got mails about webgen not working with Ruby 1.8.6 on Windows anymore. It seems that a bug in the
11
+ 1.8.6 release prevents webgen from correctly finding directories. However, this bug has already been
12
+ fixed which means that webgen should work again with the next One-Click-Installer for Windows. Until
13
+ then I recommend using webgen with the latest 1.8.5 version on Windows (I found that it is no
14
+ problem to have two versions of Ruby installed on Windows using the One-Click-Installer).
15
+
16
+ And now on to the new features and other changes:
17
+
18
+ * Updated exifr support to version 0.10 - versions lower than 0.10 are not supported anymore!
19
+ * redcloth is now a dependency sothat all the examples and website templates really work out-of-the-box!
20
+ * Removed website style @plain@ due to incompatible license.
21
+ * Added submitted plugin {plugin: Tag/HtmlMetaInfo} from Andrea Censi - thanks!
22
+ * Added submitted plugin {plugin: Tag/News} from Jeremy Hinegardner - thanks!
23
+ * Added submitted plugin {plugin: ContentConverter/Maruku} from Andrea Censi - thanks!
24
+
25
+ Closed bugs:
26
+
27
+ * Page and template files can now be written using either Windows, Mac or Unix EOL encodings!
28
+ * Fixed order of webgen data directory discovery - local data directories are preferred now!
29
+ * File/TemplateHandler will not use the default metainfo from File/PageHandler anymore!
30
+
31
+
8
32
  h3(#news-2007-02-28). 28.02.2007 - webgen 0.4.2
9
33
 
10
34
 
@@ -9,6 +9,12 @@ The following category defines all milestones for webgen:
9
9
 
10
10
  ###### Milestones ######
11
11
 
12
+ * Apr07 (2007-04-30) Bug fixes and small enhancements
13
+ - include submitted plugins
14
+ - fix issues that have arisen since the last release
15
+
16
+ This release gets a little bit delayed since I do not have enough time in April, will be released
17
+ in May!
12
18
 
13
19
  * Feb07 (2007-02-28) Bug fixes and small enhancements
14
20
  - include patches/requests created since 0.4.1 release
@@ -32,6 +38,9 @@ Categories for implementation issues:
32
38
 
33
39
  * T003 [F] add additional tests for sipttra implementation
34
40
 
41
+ * T023 [F] Add the possibility to add a prefix to webgen tags
42
+ If the prefix is wg then a tag should look like \\{wg:menu:} or \\{wg:relocatable: default.css}
43
+
35
44
 
36
45
  ## Implementation (closed) ##
37
46
 
@@ -45,6 +54,13 @@ Categories for implementation issues:
45
54
 
46
55
  * T001 [Feb07] add support for sipttra files
47
56
 
57
+ * T017 [Apr07] add the parameters from MenuStyle/Vertical to MenuStyle/Horizontal
58
+ added @startLevel@ and @maxLevels@ parameters to MenuStyle/Horizontal - the other parameters
59
+ from MenuStyle/Vertical aren't useful for MenuStyle/Horizontal
60
+
61
+ * T018 [Apr07] add the submitted plugins from Andrea Censi and Jeremy Hinegardner
62
+ Also see FR#9707, Added Tag/HtmlMetaInfo from Andrea Censi, Tag/News from Jeremy Hinegardner,
63
+ ContentConverter/Maruku from Andrea Censi
48
64
 
49
65
  ###### Bugs (open) ######
50
66
 
@@ -68,6 +84,24 @@ Categories for implementation issues:
68
84
  Make TreeWalker work as in 0.3.8 again, name it 'Misc/TreeWalker' and call it after building and
69
85
  before writing tree
70
86
 
87
+ * T016 [Apr07] fix order of data directory discovery
88
+ webgen searches now for a local directory first, then for a global one
89
+
90
+ * T020 [Apr07] File/TemplateHandler should not use the default metainfo from File/PageHandler
91
+
92
+ * T022 [Apr07] Remove plain website style due to incompatible license
93
+
94
+ * T021 [Apr07] Problem with templates/example sites not working out of the box due to missing Textile support
95
+ Either
96
+
97
+ * Update templates to not use Textile sothat they work out of the box or
98
+ * include redcloth as dependency
99
+
100
+ Since not using Textile makes the templates/examples not very 'nice' to view, redcloth is now a dependency
101
+ of webgen.
102
+
103
+ * T019 [Apr07] normalize EOL encoding to \n so that page files with any EOL encoding work properly
104
+ \r and \r\n are now converted to \n sothat the $ operator for regular expressions works correctly
71
105
 
72
106
  Category for documentation issues:
73
107
 
@@ -24,7 +24,7 @@ require 'rbconfig'
24
24
 
25
25
  module Webgen
26
26
 
27
- VERSION = [0, 4, 2]
27
+ VERSION = [0, 4, 3]
28
28
  AUTHOR = 'Thomas Leitner <t_leitner@gmx.at>'
29
29
  SUMMARY = "webgen is a templated based static Web site generator."
30
30
  DESCRIPTION = "webgen is a Web site generator implemented in Ruby. " \
@@ -40,9 +40,9 @@ module Webgen
40
40
  # Returns the data directory for webgen.
41
41
  def self.data_dir
42
42
  unless defined?( @@data_dir )
43
- @@data_dir = File.expand_path( File.join( Config::CONFIG["datadir"], "webgen" ) )
43
+ @@data_dir = File.expand_path( File.join( File.dirname( __FILE__ ), '..', '..', 'data', 'webgen') )
44
44
 
45
- @@data_dir = File.expand_path( File.join( File.dirname( __FILE__ ), '..', '..', 'data', 'webgen') ) if !File.exists?( @@data_dir )
45
+ @@data_dir = File.expand_path( File.join( Config::CONFIG["datadir"], "webgen" ) ) if !File.exists?( @@data_dir )
46
46
 
47
47
  raise "Could not find webgen data directory! This is a bug, report it please!" unless File.directory?( @@data_dir )
48
48
  end
@@ -139,7 +139,7 @@ class WebPageData
139
139
 
140
140
  def parse( data )
141
141
  @blocks = {}
142
- blocks = data.scan( /(?:(?:^--- *(?:(\w+) *(?:, *(\w+) *)?)?$)|\A)(.*?)(?:(?=^---.*?$)|\Z)/m )
142
+ blocks = data.gsub(/\r\n?/, "\n").scan( /(?:(?:^--- *(?:(\w+) *(?:, *(\w+) *)?)?$)|\A)(.*?)(?:(?=^---.*?$)|\Z)/m )
143
143
  if data =~ /\A---\s*$/
144
144
  begin
145
145
  meta = YAML::load( blocks.shift[2] )
@@ -0,0 +1,33 @@
1
+ load_optional_part( 'content-converter-maruku',
2
+ :needed_gems => ['maruku'],
3
+ :error_msg => "Markdown not available as content format as Maruku could not be loaded",
4
+ :info => "Markdown + (extra) can be used as content format" ) do
5
+
6
+ require 'maruku'
7
+ load_plugin 'webgen/plugins/contentconverters/default'
8
+
9
+ module ContentConverters
10
+
11
+ # Converts text formatted in Markdown format using Maruku to HTML.
12
+ class MarukuConverter < DefaultContentConverter
13
+
14
+ infos( :name => 'ContentConverter/Maruku',
15
+ :author => "Andrea Censi",
16
+ :summary => "Handles content formatted in Markdown format using Maruku "+
17
+ "http://maruku.rubyforge.org/"
18
+ )
19
+
20
+ register_handler 'maruku'
21
+
22
+ def call( content )
23
+ Maruku.new( content ).to_html
24
+ rescue Exception => e
25
+ log(:error) { "Error converting Markdown text to HTML: #{e.message}" }
26
+ content
27
+ end
28
+
29
+ end
30
+
31
+ end
32
+
33
+ end
@@ -376,7 +376,7 @@ module FileHandlers
376
376
  if @plugin_manager.optional_part( 'gallery-exif' )[:loaded]
377
377
  jpeg = EXIFR::JPEG.new( image ) rescue nil
378
378
  if !jpeg.nil? && jpeg.exif?
379
- exif = jpeg.exif.dup
379
+ exif = jpeg.exif.to_hash
380
380
  exif[:width] = jpeg.width
381
381
  exif[:height] = jpeg.height
382
382
  exif[:comment] = jpeg.comment
@@ -36,13 +36,12 @@ module FileHandlers
36
36
 
37
37
  register_extension 'template'
38
38
 
39
- default_meta_info( 'blocks' => [['content', 'html']] )
39
+ default_meta_info( 'useERB' => true, 'blocks' => [['content', 'html']] )
40
40
 
41
41
  def create_node( src_name, parent, meta_info )
42
42
  begin
43
- page_meta_info = @plugin_manager['Core/FileHandler'].meta_info_for( @plugin_manager['File/PageHandler'] )
44
43
  data = WebPageData.new( File.read( src_name ), @plugin_manager['ContentConverter/Default'].registered_handlers,
45
- page_meta_info.merge( meta_info ) )
44
+ meta_info )
46
45
  rescue WebPageDataInvalid => e
47
46
  log(:error) { "Invalid template file <#{src_name}>: #{e.message}" }
48
47
  return nil
@@ -31,6 +31,11 @@ module MenuStyles
31
31
  :summary => "Builds a horizontal menu"
32
32
  )
33
33
 
34
+ param 'startLevel', 1, 'The level at which the menu starts. For example, if set to 2 the top most ' +
35
+ 'menu items are not shown.'
36
+ param 'maxLevels', 3, 'Specifies the maximum number of levels that should be shown. ' +
37
+ 'For example, if maxLevels = 1, then only one level is shown.'
38
+
34
39
  register_handler 'horizontal'
35
40
 
36
41
  def internal_build_menu( src_node, menu_tree )
@@ -51,7 +56,9 @@ module MenuStyles
51
56
  #######
52
57
 
53
58
  def submenu( src_node, menu_node, level )
54
- if menu_node.nil? || menu_node.level > src_node.level \
59
+ if menu_node.nil? \
60
+ || level > param( 'maxLevels' ) + param( 'startLevel' ) - 1 \
61
+ || src_node.level < param( 'startLevel' ) \
55
62
  || !src_node.in_subtree_of?( menu_node.node_info[:node] )
56
63
  return ''
57
64
  end
@@ -61,12 +68,16 @@ module MenuStyles
61
68
  menu_node.each do |child|
62
69
  submenu << (child.has_children? ? submenu( src_node, child, level + 1 ) : '')
63
70
  style, link = menu_item_details( src_node, child.node_info[:node] )
64
- out << "<li #{style}>#{link}</li>"
71
+ out << "<li#{style.to_s.empty? ? '' : ' ' + style}>#{link}</li>"
65
72
  end
66
73
  out << "</ul>"
67
74
  out << submenu
68
75
 
69
- return out
76
+ if level < param( 'startLevel' )
77
+ '' + submenu
78
+ else
79
+ out
80
+ end
70
81
  end
71
82
 
72
83
  end
@@ -0,0 +1,27 @@
1
+ load_plugin 'webgen/plugins/tags/tag_processor'
2
+
3
+ module Tags
4
+
5
+ class HtmlMetaInfo < DefaultTag
6
+
7
+ infos( :name => 'Tag/HtmlMetaInfo',
8
+ :author => 'Andrea Censi',
9
+ :summary => 'Writes the content of the "description","author","keywords" as HTML META tags.')
10
+
11
+ register_tag 'htmlmetainfo'
12
+
13
+ def process_tag( tag, chain )
14
+ cur_node = chain.last
15
+ s = ""
16
+ ['description', 'author', 'keywords'].each do |key|
17
+ if value = cur_node.meta_info[key]
18
+ value = CGI::escapeHTML(value)
19
+ s += "<meta name='#{key}' content='#{value}'/>\n"
20
+ end
21
+ end
22
+ s
23
+ end
24
+
25
+ end
26
+
27
+ end