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
@@ -10,7 +10,7 @@
10
10
  <link rel="stylesheet" href="{relocatable: default.css}" type="text/css" media="screen" />
11
11
  <link rel="stylesheet" href="{resource: {name: webgen-css, insert: :path}}" type="text/css" media="screen" />
12
12
  <link rel="stylesheet" href="{relocatable: css/sipttra.css}" type="text/css" media="screen" />
13
- <script type="text/javascript" src="{relocatable: js/sipttra.js}" />
13
+ <script type="text/javascript" src="{relocatable: js/sipttra.js}"></script>
14
14
  </head>
15
15
 
16
16
  <body>
@@ -48,6 +48,10 @@
48
48
 
49
49
  <div id="rightside">
50
50
  <h1>Latest news</h1>
51
+ <p><strong>2007-05-19: </strong>
52
+ webgen 0.4.3 released! Bugs fixed and some feature added!
53
+ <a href="{relocatable: news.en.page#news-2007-05-19}">More...</a>
54
+ </p>
51
55
  <p><strong>2007-02-28: </strong>
52
56
  webgen 0.4.2 released! Bugs fixed and some feature added!
53
57
  <a href="{relocatable: news.en.page#news-2007-02-28}">More...</a>
@@ -56,10 +60,6 @@
56
60
  webgen 0.4.1 released! Bug fix for running webgen on Windows and other small updates!
57
61
  <a href="{relocatable: news.en.page#news-2007-01-12}">More...</a>
58
62
  </p>
59
- <p><strong>2007-01-05: </strong>
60
- webgen 0.4.0 released! Major update to the core and plugins and many new features added!
61
- <a href="{relocatable: news.en.page#news-2007-01-05}">More...</a>
62
- </p>
63
63
 
64
64
  <h1>Links</h1>
65
65
  <ul class="linklist">
@@ -114,5 +114,12 @@
114
114
  <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c6.statcounter.com/counter.php?sc_project=648325&amp;java=0&amp;security=7d00de1e&amp;invisible=1" alt="free geoip" /></a></div></noscript>
115
115
  <!-- End of StatCounter Code -->
116
116
 
117
+ <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
118
+ </script>
119
+ <script type="text/javascript">
120
+ _uacct = "UA-641844-1";
121
+ urchinTracker();
122
+ </script>
123
+
117
124
  </body>
118
125
  </html>
@@ -0,0 +1,23 @@
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
+
@@ -29,4 +29,8 @@ h2(#examples). Examples
29
29
  <td>Using default values and some CSS styles</td>
30
30
  <td>{menu: {menuStyle: horizontal, options: {divClass: menu-example-horiz}}}</td>
31
31
  </tr>
32
+ <tr>
33
+ <td>\{menu: {menuStyle: horizontal, options: {startLevel: 2, maxLevels: 2}}}</td>
34
+ <td>{menu: {menuStyle: horizontal, options: {startLevel: 2, maxLevels: 2}}}</td>
35
+ </tr>
32
36
  </table>
@@ -0,0 +1,32 @@
1
+ ---
2
+ title: HtmlMetaInfo
3
+ inMenu: true
4
+ template: /plugin.template
5
+ plugin: Tag/HtmlMetaInfo
6
+ ---
7
+ h2(#description). Description
8
+
9
+
10
+ This tag should only be used in the HTML @<head>@ section of your @default.template@. It inserts the
11
+ @description@, @author@ and @keywords@ meta tags, filled with the information from the node's
12
+ metainfo.
13
+
14
+ h2(#examples). Examples
15
+
16
+ For the following page file:
17
+
18
+ <pre>
19
+ \---
20
+ title: Title for the page
21
+ description: Description for this page.
22
+ keywords: example, plugin, input
23
+ \---
24
+ Content
25
+ </pre>
26
+
27
+ the tag will output:
28
+
29
+ <pre>
30
+ <meta name='description' content='Description for this page.'/>
31
+ <meta name='keywords' content='example, plugin, input'/>
32
+ </pre>
@@ -0,0 +1,48 @@
1
+ ---
2
+ title: News
3
+ inMenu: true
4
+ template: /plugin.template
5
+ plugin: Tag/News
6
+ ---
7
+ h2(#description). Description
8
+
9
+ This plugin creates a 'news' tag which can be used to display the contents of a news file.
10
+
11
+ The news file by default is 'news.yaml' and placed in the root of the webgen website directory.
12
+ This can be changed with the 'filename' parameter.
13
+
14
+ The yaml file has the basic format of
15
+
16
+ date: content
17
+ date: content
18
+
19
+ Where the date has the format indicated by the 'dateFormat' parmater which by default is YYYY-MM-DD.
20
+ The content is formated according to the 'contentFormat' parameter and is textile by default. I
21
+ recommend using the '|' version of block text for the content. For example:
22
+
23
+ <pre>
24
+ 2007-03-20: |
25
+ h2. this is an entry
26
+
27
+ This is some content
28
+ </pre>
29
+
30
+ When utilized in a template the 'news' tag can optionally take to additional parameters 'maxEntries'
31
+ and 'maxParagraphs'.
32
+
33
+ * maxEntries: the N most recent entries by date in the news.yaml file to display.
34
+
35
+ * maxParagraphs: the content of an entry is truncated to N paragraphs, where a paragraphs ending is
36
+ defined by "\n\n"
37
+
38
+ So the following usage of the news tag would disply the first
39
+ paragraph of the most recent item in the news.yaml file.
40
+
41
+ \{news: {options: {maxEntries: 1, maxParagraphs: 1}}}
42
+
43
+ While this usage would display all the contents of the news.yaml file sorted in reverse
44
+ chronological order and displayed fully.
45
+
46
+ \{news: }
47
+
48
+
@@ -17,8 +17,8 @@ h2(#deps). Dependencies
17
17
 
18
18
  * "cmdparse":http://cmdparse.rubyforge.org version 2.0.0 or higher
19
19
 
20
- * [optional] "RedCloth":http://redcloth.rubyforge.org version 2.0.10 or higher if you want Textile
21
- support
20
+ * "RedCloth":http://redcloth.rubyforge.org version 2.0.10 or higher for Textile support (needed for examples
21
+ and included website templates)
22
22
 
23
23
  * [optional] "BlueCloth":http://www.deveiate.org version 1.0.0 or higher if you want Markdown
24
24
  support
@@ -29,7 +29,7 @@ h2(#deps). Dependencies
29
29
  * [optional] "builder":http://builder.rubyforge.org/ version 2.0.0 or higher if you want programatic
30
30
  HTML/XML file generation
31
31
 
32
- * [optional] "exifr":http://exifr.rubyforge.org/ version 0.9.4 or higher if you want to be able to
32
+ * [optional] "exifr":http://exifr.rubyforge.org/ version 0.10 or higher if you want to be able to
33
33
  have EXIF information available for image galleries
34
34
 
35
35
  * [optional] "coderay":http://coderay.rubychan.de/ version 0.7.4.215 or higher if you want syntax
@@ -30,6 +30,8 @@ Here is a list of the available example sites:
30
30
  By running webgen in this directory, the homepage gets built and
31
31
  you can view the output in the output directory with a browser.
32
32
 
33
+ Note: this example requires redcloth to be installed for Textile support!
34
+
33
35
  * photo gallery example: {download: photo_gallery.zip}
34
36
 
35
37
  From the README:
@@ -39,3 +41,5 @@ Here is a list of the available example sites:
39
41
  template.
40
42
 
41
43
  To create the output just run webgen in this directory!
44
+
45
+ Note: this example requires redcloth to be installed for Textile support!
@@ -0,0 +1,78 @@
1
+ title: index
2
+ images: ../../images/*
3
+ imagesPerPage: 8
4
+ mainPageMetaInfo:
5
+ inMenu: true
6
+
7
+ ---
8
+ ../../images/image01.jpg:
9
+ title: Chinese Garden
10
+ description: This picture show the Chinese Garden located in the outskirts of Vienna (Austria).
11
+
12
+ ../../images/image02.jpg:
13
+ title: Goldenes Dach
14
+ description: This is the landmark of Innsbruck (Tyrol, Austria), called the 'Goldene Dach' (golden roof).
15
+
16
+ ../../images/image03.jpg:
17
+ title: Mountains in Innsbruck
18
+ description: A view from the <a href='http://www.nordpark.com'>NordPark</a> in Innsbruck.
19
+
20
+ ../../images/image04.jpg:
21
+ title: Kristallwelten 1
22
+ description: The entry to the 'Kristallwelten' of <a href='http://www.swarovski.com'>Swarovski</a> in Innsbruck.
23
+
24
+ ../../images/image05.jpg:
25
+ title: Kristallwelten 2
26
+ description: On the roof of the building.
27
+
28
+ ../../images/image06.jpg:
29
+ title: Kristallwelten 3
30
+ description: Some crystals.
31
+
32
+ ../../images/image07.jpg:
33
+ title: Minimundus 1
34
+ description: A french castle
35
+
36
+ ../../images/image08.jpg:
37
+ title: Minimundus 2
38
+ description: A small copy of the <a href=''>Sagrada Familia</a> of Barcelona.
39
+
40
+ ../../images/image09.jpg:
41
+ title: Minimundus 3
42
+ description: The Stephansdom in Vienna.
43
+
44
+ ../../images/image10.jpg:
45
+ title: Minimundus 4
46
+ description: Overview of Minimundus, a place with smaller versions of famous buildings.
47
+
48
+ ../../images/image11.jpg:
49
+ title: Velden
50
+ description: Photo from Velden, Wörtersee, Carinthia, Austria
51
+
52
+ ../../images/image12.jpg:
53
+ title: Stockholm 1
54
+ description: A 300-year-old ship, the Wasa, located in the Wasamuseet in Stockholm.
55
+
56
+ ../../images/image13.jpg:
57
+ title: Stockholm 2
58
+ description: A fort near Stockholm.
59
+
60
+ ../../images/image14.jpg:
61
+ title: Stockholm 3
62
+ description: Overview of Gamla Stan (old town centre of Stockholm)
63
+
64
+ ../../images/image15.jpg:
65
+ title: Stockholm 4
66
+ description: View from a bridge in the direction of Gamla Stan
67
+
68
+ ../../images/image16.jpg:
69
+ title: Zakynthos 1
70
+ description: An isle that looks like a turtle
71
+
72
+ ../../images/image17.jpg:
73
+ title: Zakynthos 2
74
+ description: The oldest olive tree of Zakynthos.
75
+
76
+ ../../images/image18.jpg:
77
+ title: Zakynthos 3
78
+ description: The Navagio ship wreck, very famous Greek tourist destination.
@@ -0,0 +1,38 @@
1
+ --- content, html
2
+ <div class="webgen-gallery webgen-gallery-gallery">
3
+ <% ginfo = node.node_info[:ginfo] %>
4
+ <table width="100%">
5
+ <tr>
6
+ <td style="width: 33%" align="left">
7
+ <% if ginfo.prev_gallery %>
8
+ <a href="{relocatable: <%= ginfo.prev_gallery.pagename %>}">&lt;&lt;&nbsp;<%= ginfo.prev_gallery.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %></a>
9
+ <% end %>
10
+ </td>
11
+ <td style="width: 34%" align="center">
12
+ <% if ginfo.mainpage %>
13
+ <a href="{relocatable: <%= ginfo.mainpage.pagename %>}">^^&nbsp;<%= ginfo.mainpage.title %>&nbsp;^^</a>
14
+ <% end %>
15
+ </td>
16
+ <td style="width: 33%" align="right">
17
+ <% if ginfo.next_gallery %>
18
+ <a href="{relocatable: <%= ginfo.next_gallery.pagename %>}"><%= ginfo.next_gallery.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %>&nbsp;&gt;&gt;</a>
19
+ <% end %>
20
+ </td>
21
+ </tr>
22
+ </table>
23
+
24
+ <table width="100%" border="1">
25
+ <% 0.step( ginfo.cur_gallery.images.length - 1, 5 ) do |row_index| %>
26
+ <tr>
27
+ <% row_index.upto( [row_index + 4, ginfo.cur_gallery.images.length - 1].min ) do |col_index|%>
28
+ <td align="center">
29
+ <a href="{relocatable: <%= ginfo.cur_gallery.images[col_index].pagename %>}">
30
+ <%= ginfo.cur_gallery.images[col_index].thumbnail('class'=>'webgen-gallery-thumbnail') %><br />
31
+ <%= ginfo.cur_gallery.images[col_index].title %>
32
+ </a>
33
+ </td>
34
+ <% end %>
35
+ </tr>
36
+ <% end %>
37
+ </table>
38
+ </div>
@@ -0,0 +1,30 @@
1
+ --- content, html
2
+ <div class="webgen-gallery webgen-gallery-image">
3
+ <% ginfo = node.node_info[:ginfo] %>
4
+ <table width="100%">
5
+ <tr>
6
+ <td style="width: 33%" align="left">
7
+ <% if ginfo.prev_image %>
8
+ <a href="{relocatable: <%= ginfo.prev_image.pagename %>}">&lt;&lt;&nbsp;<%= ginfo.prev_image.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %></a>
9
+ <% end %>
10
+ </td>
11
+ <td style="width: 34%" align="center">
12
+ <a href="{relocatable: <%= ginfo.cur_gallery.pagename %>}">
13
+ <%= ginfo.cur_gallery.thumbnail('class'=>'webgen-gallery-thumbnail') %><br />^<%= ginfo.cur_gallery.title %>^
14
+ </a>
15
+ </td>
16
+ <td style="width: 33%" align="right">
17
+ <% if ginfo.next_image %>
18
+ <a href="{relocatable: <%= ginfo.next_image.pagename %>}"><%= ginfo.next_image.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %>&nbsp;&gt;&gt;</a>
19
+ <% end %>
20
+ </td>
21
+ </tr>
22
+ </table>
23
+
24
+ <p style="text-align: center">
25
+ <img src="{relocatable: <%= ginfo.cur_image.filename %>}" alt="<%= ginfo.cur_image.title %>" /> <br />
26
+ </p>
27
+
28
+ <p><%= ginfo.cur_image['description'] %></p>
29
+
30
+ </div>
@@ -0,0 +1,18 @@
1
+ --- content, html
2
+ <div class="webgen-gallery webgen-gallery-main">
3
+ <% ginfo = node.node_info[:ginfo] %>
4
+ <table width="100%">
5
+ <% 0.step( ginfo.galleries.length - 1, 5 ) do |row_index| %>
6
+ <tr>
7
+ <% row_index.upto( [row_index + 4, ginfo.galleries.length - 1].min ) do |col_index| %>
8
+ <td align="center">
9
+ <a href="{relocatable: <%= ginfo.galleries[col_index].pagename %>}">
10
+ <%= ginfo.galleries[col_index].thumbnail('class'=>'webgen-gallery-thumbnail') %><br />
11
+ <%= ginfo.galleries[col_index].title %>
12
+ </a>
13
+ </td>
14
+ <% end %>
15
+ </tr>
16
+ <% end %>
17
+ </table>
18
+ </div>
@@ -0,0 +1,22 @@
1
+ ---
2
+ title: Index
3
+ directoryName: Gallery Styles
4
+ ---
5
+ h2. List of gallery styles
6
+
7
+ The gallery style example pages open in an iframe when you use the menu items. Use the links
8
+ provided below to open the gallery style example pages directly (fullscreen).
9
+
10
+ Following is the list of all available gallery styles:
11
+
12
+
13
+ * <a href='default/index.html'>default</a>
14
+
15
+ * *Author*: Thomas Leitner
16
+ * *Description*: Provides a simple and useful gallery style with thumbnail previews that link to the next and previous picture or gallery page.
17
+ * <a href='slides/index.html'>slides</a>
18
+
19
+ * *Author*: Thomas Leitner (created gallery style) Corban Brook (original collage creation routines)
20
+ * *Description*: A style which uses RMagick to generate a slide background for the thumbnails and a collage for the main page, prettier than the default style ;-) This style was done after reading an article by Corban Brook on rendering collages with Ruby and RMagick.
21
+ * *Plugin files*: collage.rb
22
+ * *Usage*: This style uses a layouter plugin for creating the collage and slide backgrounds. Therefore you have to explicitly specify in the gallery file that you want to use the layouter slides. The plugin also only generates images if they do not exist. So, if there is already a collage image, a new one will not be created.
@@ -0,0 +1,62 @@
1
+ --- content, html
2
+ <%
3
+ ginfo = node.node_info[:ginfo]
4
+ if ginfo[:collage_node].nil?
5
+ log(:error) { "Use of templates from gallery style 'slides' only possible if option layouter is set to 'slides' in gallery file!" }
6
+ else
7
+ %>
8
+
9
+
10
+ <div class="webgen-gallery webgen-gallery-gallery" style="background-color: <%= ginfo[:collage_node].collage_color %>">
11
+ <table width="100%" style="padding: 5px; margin-bottom: 10px;">
12
+ <tr>
13
+ <td style="width: 33%; padding: 2px;" align="left">
14
+ <% if ginfo.prev_gallery %>
15
+ <a href="{relocatable: <%= ginfo.prev_gallery.pagename %>}">
16
+ &lt;&lt; previous gallery
17
+ <span class="thumb thumb-<%= ginfo['title'].tr(' ', '_') %>">
18
+ <%= ginfo.prev_gallery.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %>
19
+ </span>
20
+ </a>
21
+ <% end %>
22
+ </td>
23
+ <td style="width: 34%;" valign="top" align="center">
24
+ <% if ginfo.mainpage %>
25
+ <a href="{relocatable: <%= ginfo.mainpage.pagename %>}"><img src="<%= ginfo[:collage_thumb_node].path %>" alt="back to main" /></a>
26
+ <% end %>
27
+ </td>
28
+ <td style="width: 33%; padding: 2px;" align="right">
29
+ <% if ginfo.next_gallery %>
30
+ <a href="{relocatable: <%= ginfo.next_gallery.pagename %>}">
31
+ next gallery &gt;&gt;
32
+ <span class="thumb thumb-<%= ginfo['title'].tr(' ', '_') %>">
33
+ <%= ginfo.next_gallery.thumbnail('style'=>'vertical-align: middle', 'class'=>'webgen-gallery-thumbnail') %>
34
+ </span>
35
+ </a>
36
+ <% end %>
37
+ </td>
38
+ </tr>
39
+ </table>
40
+
41
+ <table width="100%">
42
+ <% 0.step( ginfo.cur_gallery.images.length - 1, 5 ) do |row_index| %>
43
+ <tr>
44
+ <% row_index.upto( [row_index + 4, ginfo.cur_gallery.images.length - 1].min ) do |col_index|%>
45
+ <td align="center">
46
+ <a href="{relocatable: <%= ginfo.cur_gallery.images[col_index].pagename %>}">
47
+ <span class="thumb thumb-<%= ginfo['title'].tr(' ', '_') %>">
48
+ <%= ginfo.cur_gallery.images[col_index].thumbnail('class'=>'webgen-gallery-thumbnail') %>
49
+ </span>
50
+ <br />
51
+ <%= ginfo.cur_gallery.images[col_index].title %>
52
+ </a>
53
+ </td>
54
+ <% end %>
55
+ </tr>
56
+ <% end %>
57
+ </table>
58
+
59
+ </div>
60
+
61
+
62
+ <% end %>