webgen 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. data/ChangeLog +1523 -97
  2. data/Rakefile +11 -24
  3. data/TODO +22 -9
  4. data/VERSION +1 -1
  5. data/bin/webgen +2 -2
  6. data/bin/webgen-gallery-editor +654 -0
  7. data/bin/webgen-gui +10 -0
  8. data/data/webgen/data/ISO-639-2_values_8bits.txt +492 -0
  9. data/data/webgen/gallery-creator/default.png +0 -0
  10. data/data/webgen/icon_mapping.yaml +27 -0
  11. data/data/webgen/resources/emoticons/bigeyes/angry.png +0 -0
  12. data/data/webgen/resources/emoticons/bigeyes/cool.png +0 -0
  13. data/data/webgen/resources/emoticons/bigeyes/cry.png +0 -0
  14. data/data/webgen/resources/emoticons/bigeyes/drunk.png +0 -0
  15. data/data/webgen/resources/emoticons/bigeyes/lol.png +0 -0
  16. data/data/webgen/resources/emoticons/bigeyes/oops.png +0 -0
  17. data/data/webgen/resources/emoticons/bigeyes/sad.png +0 -0
  18. data/data/webgen/resources/emoticons/bigeyes/sleep.png +0 -0
  19. data/data/webgen/resources/emoticons/bigeyes/smile.png +0 -0
  20. data/data/webgen/resources/emoticons/bigeyes/tongue.png +0 -0
  21. data/data/webgen/resources/emoticons/bigeyes/wink.png +0 -0
  22. data/data/webgen/resources/emoticons/crystal/angry.png +0 -0
  23. data/data/webgen/resources/emoticons/crystal/cool.png +0 -0
  24. data/data/webgen/resources/emoticons/crystal/cry.png +0 -0
  25. data/data/webgen/resources/emoticons/crystal/drunk.png +0 -0
  26. data/data/webgen/resources/emoticons/crystal/lol.png +0 -0
  27. data/data/webgen/resources/emoticons/crystal/oops.png +0 -0
  28. data/data/webgen/resources/emoticons/crystal/sad.png +0 -0
  29. data/data/webgen/resources/emoticons/crystal/sleep.png +0 -0
  30. data/data/webgen/resources/emoticons/crystal/smile.png +0 -0
  31. data/data/webgen/resources/emoticons/crystal/tongue.png +0 -0
  32. data/data/webgen/resources/emoticons/crystal/wink.png +0 -0
  33. data/data/webgen/resources/emoticons/cyclops/angry.png +0 -0
  34. data/data/webgen/resources/emoticons/cyclops/cool.png +0 -0
  35. data/data/webgen/resources/emoticons/cyclops/cry.png +0 -0
  36. data/data/webgen/resources/emoticons/cyclops/drunk.png +0 -0
  37. data/data/webgen/resources/emoticons/cyclops/lol.png +0 -0
  38. data/data/webgen/resources/emoticons/cyclops/oops.png +0 -0
  39. data/data/webgen/resources/emoticons/cyclops/sad.png +0 -0
  40. data/data/webgen/resources/emoticons/cyclops/sleep.png +0 -0
  41. data/data/webgen/resources/emoticons/cyclops/smile.png +0 -0
  42. data/data/webgen/resources/emoticons/cyclops/tongue.png +0 -0
  43. data/data/webgen/resources/emoticons/cyclops/wink.png +0 -0
  44. data/data/webgen/resources/emoticons/glass/angry.png +0 -0
  45. data/data/webgen/resources/emoticons/glass/cool.png +0 -0
  46. data/data/webgen/resources/emoticons/glass/cry.png +0 -0
  47. data/data/webgen/resources/emoticons/glass/drunk.png +0 -0
  48. data/data/webgen/resources/emoticons/glass/lol.png +0 -0
  49. data/data/webgen/resources/emoticons/glass/oops.png +0 -0
  50. data/data/webgen/resources/emoticons/glass/sad.png +0 -0
  51. data/data/webgen/resources/emoticons/glass/sleep.png +0 -0
  52. data/data/webgen/resources/emoticons/glass/smile.png +0 -0
  53. data/data/webgen/resources/emoticons/glass/tongue.png +0 -0
  54. data/data/webgen/resources/emoticons/glass/wink.png +0 -0
  55. data/data/webgen/resources/emoticons/icqstyle/angry.png +0 -0
  56. data/data/webgen/resources/emoticons/icqstyle/cool.png +0 -0
  57. data/data/webgen/resources/emoticons/icqstyle/cry.png +0 -0
  58. data/data/webgen/resources/emoticons/icqstyle/drunk.png +0 -0
  59. data/data/webgen/resources/emoticons/icqstyle/lol.png +0 -0
  60. data/data/webgen/resources/emoticons/icqstyle/oops.png +0 -0
  61. data/data/webgen/resources/emoticons/icqstyle/sad.png +0 -0
  62. data/data/webgen/resources/emoticons/icqstyle/sleep.png +0 -0
  63. data/data/webgen/resources/emoticons/icqstyle/smile.png +0 -0
  64. data/data/webgen/resources/emoticons/icqstyle/tongue.png +0 -0
  65. data/data/webgen/resources/emoticons/icqstyle/wink.png +0 -0
  66. data/data/webgen/resources/emoticons/matrix/angry.gif +0 -0
  67. data/data/webgen/resources/emoticons/matrix/cool.gif +0 -0
  68. data/data/webgen/resources/emoticons/matrix/cry.gif +0 -0
  69. data/data/webgen/resources/emoticons/matrix/drunk.gif +0 -0
  70. data/data/webgen/resources/emoticons/matrix/lol.gif +0 -0
  71. data/data/webgen/resources/emoticons/matrix/oops.gif +0 -0
  72. data/data/webgen/resources/emoticons/matrix/sad.gif +0 -0
  73. data/data/webgen/resources/emoticons/matrix/sleep.gif +0 -0
  74. data/data/webgen/resources/emoticons/matrix/smile.gif +0 -0
  75. data/data/webgen/resources/emoticons/matrix/tongue.gif +0 -0
  76. data/data/webgen/resources/emoticons/matrix/wink.gif +0 -0
  77. data/data/webgen/resources/emoticons/smellies/angry.gif +0 -0
  78. data/data/webgen/resources/emoticons/smellies/cool.gif +0 -0
  79. data/data/webgen/resources/emoticons/smellies/cry.gif +0 -0
  80. data/data/webgen/resources/emoticons/smellies/drunk.gif +0 -0
  81. data/data/webgen/resources/emoticons/smellies/lol.gif +0 -0
  82. data/data/webgen/resources/emoticons/smellies/oops.gif +0 -0
  83. data/data/webgen/resources/emoticons/smellies/sad.gif +0 -0
  84. data/data/webgen/resources/emoticons/smellies/sleep.gif +0 -0
  85. data/data/webgen/resources/emoticons/smellies/smile.gif +0 -0
  86. data/data/webgen/resources/emoticons/smellies/tongue.gif +0 -0
  87. data/data/webgen/resources/emoticons/smellies/wink.gif +0 -0
  88. data/data/webgen/resources/icons/compressed.png +0 -0
  89. data/data/webgen/resources/icons/document.png +0 -0
  90. data/data/webgen/resources/icons/download.png +0 -0
  91. data/data/webgen/resources/icons/image.png +0 -0
  92. data/data/webgen/resources/icons/linux.png +0 -0
  93. data/data/webgen/resources/icons/mac.png +0 -0
  94. data/data/webgen/resources/icons/pdf.png +0 -0
  95. data/data/webgen/resources/icons/penguin.png +0 -0
  96. data/data/webgen/resources/icons/quicktime.png +0 -0
  97. data/data/webgen/resources/icons/real.png +0 -0
  98. data/data/webgen/resources/icons/rpm.png +0 -0
  99. data/data/webgen/resources/icons/sound.png +0 -0
  100. data/data/webgen/resources/icons/source.png +0 -0
  101. data/data/webgen/resources/icons/spreadsheet.png +0 -0
  102. data/data/webgen/resources/icons/text.png +0 -0
  103. data/data/webgen/resources/icons/vcard.png +0 -0
  104. data/data/webgen/resources/icons/video.png +0 -0
  105. data/data/webgen/resources/icons/win.png +0 -0
  106. data/data/webgen/{images → resources/images}/generated_by_webgen.png +0 -0
  107. data/data/webgen/{images → resources/images}/valid-css.gif +0 -0
  108. data/data/webgen/{images → resources/images}/valid-xhtml11.png +0 -0
  109. data/data/webgen/{images → resources/images}/webgen_logo.png +0 -0
  110. data/data/webgen/{example/src → website_styles/default}/default.css +0 -0
  111. data/data/webgen/{example/src → website_styles/default}/default.template +2 -2
  112. data/data/webgen/website_templates/default/README +6 -0
  113. data/data/webgen/{example → website_templates/default}/config.yaml +0 -0
  114. data/data/webgen/{example → website_templates/default}/src/index.page +0 -0
  115. data/data/webgen/website_templates/personal_hp/README +6 -0
  116. data/data/webgen/website_templates/personal_hp/src/about.page +12 -0
  117. data/data/webgen/website_templates/personal_hp/src/index.page +9 -0
  118. data/data/webgen/website_templates/personal_hp/src/links.page +22 -0
  119. data/data/webgen/website_templates/personal_hp/src/projects.page +20 -0
  120. data/data/webgen/website_templates/project/README +7 -0
  121. data/data/webgen/website_templates/project/src/about.page +12 -0
  122. data/data/webgen/website_templates/project/src/download.page +15 -0
  123. data/data/webgen/website_templates/project/src/features.page +8 -0
  124. data/data/webgen/website_templates/project/src/index.page +9 -0
  125. data/data/webgen/website_templates/project/src/screenshots.page +18 -0
  126. data/doc/config.yaml +3 -0
  127. data/doc/plugin/clidesc.rb +18 -7
  128. data/doc/plugin/emoticon.rb +29 -0
  129. data/doc/plugin/extension.rb +15 -16
  130. data/doc/plugin/listpluginparameters.rb +39 -0
  131. data/doc/plugin/resources.rb +4 -4
  132. data/doc/plugin/source.rb +21 -0
  133. data/doc/src/default.css +7 -4
  134. data/doc/src/default.template +4 -2
  135. data/doc/src/documentation/cli.page +1 -1
  136. data/doc/src/documentation/extending_webgen.page +102 -0
  137. data/doc/src/documentation/gettingstarted.page +3 -6
  138. data/doc/src/documentation/index.page +1 -1
  139. data/doc/src/documentation/plugins/{contenthandler → contenthandlers}/html.page +0 -0
  140. data/doc/src/documentation/plugins/{contenthandler → contenthandlers}/index.page +0 -0
  141. data/doc/src/documentation/plugins/{contenthandler → contenthandlers}/markdown.page +0 -0
  142. data/doc/src/documentation/plugins/{contenthandler → contenthandlers}/rdoc.page +0 -0
  143. data/doc/src/documentation/plugins/{contenthandler → contenthandlers}/textile.page +0 -0
  144. data/doc/src/documentation/plugins/{system → coreplugins}/configuration.page +0 -0
  145. data/doc/src/documentation/plugins/coreplugins/index.page +7 -0
  146. data/doc/src/documentation/plugins/{system → coreplugins}/logging.page +0 -0
  147. data/doc/src/documentation/plugins/{resourcemanager.page → coreplugins/resourcemanager.page} +5 -1
  148. data/doc/src/documentation/plugins/{filehandler → filehandlers}/backing.page +1 -1
  149. data/doc/src/documentation/plugins/{filehandler → filehandlers}/copy.page +1 -1
  150. data/doc/src/documentation/plugins/{filehandler/directory.page → filehandlers/directoryhandler.page} +11 -2
  151. data/doc/src/documentation/plugins/{filehandler/galleryhandler.page → filehandlers/gallery.page} +20 -13
  152. data/doc/src/documentation/plugins/{filehandler → filehandlers}/index.page +0 -0
  153. data/doc/src/documentation/plugins/{filehandler/pagehandler.page → filehandlers/page.page} +6 -4
  154. data/doc/src/documentation/plugins/{filehandler → filehandlers}/template.page +0 -0
  155. data/doc/src/documentation/plugins/{gallerylayouter → gallerylayouters}/index.page +7 -3
  156. data/doc/src/documentation/plugins/{htmlvalidator → htmlvalidators}/index.page +0 -0
  157. data/doc/src/documentation/plugins/{htmlvalidator → htmlvalidators}/xmllint.page +0 -0
  158. data/doc/src/documentation/plugins/index.page +4 -0
  159. data/doc/src/documentation/plugins/menustyles/{horizontal-dropdown.page → horizontaldropdown.page} +0 -0
  160. data/doc/src/documentation/plugins/menustyles/{vertical-dropdown.page → verticaldropdown.page} +1 -1
  161. data/doc/src/documentation/plugins/miscplugins/index.page +7 -0
  162. data/doc/src/documentation/plugins/miscplugins/smileyreplacer.page +38 -0
  163. data/doc/src/documentation/plugins/tags/breadcrumbtrail.page +20 -0
  164. data/doc/src/documentation/plugins/tags/download.page +23 -0
  165. data/doc/src/documentation/plugins/tags/resource.page +1 -1
  166. data/doc/src/documentation/plugins/tags/sitemap.page +1 -2
  167. data/doc/src/documentation/references/index.page +8 -0
  168. data/doc/src/documentation/{meta_info_reference.page → references/meta_info_reference.page} +1 -0
  169. data/doc/src/documentation/references/parameter_reference.page +12 -0
  170. data/doc/src/documentation/webgen_gallery_editor.page +82 -0
  171. data/doc/src/download.page +2 -2
  172. data/doc/src/features.page +3 -2
  173. data/doc/src/images/screenshots/wge-image.png +0 -0
  174. data/doc/src/images/screenshots/wge-layout-preview.png +0 -0
  175. data/doc/src/images/screenshots/wge-main-disabled.png +0 -0
  176. data/doc/src/images/screenshots/wge-main.png +0 -0
  177. data/doc/src/index.page +30 -11
  178. data/doc/src/meta.info +7 -7
  179. data/doc/src/screenshots.gallery +33 -0
  180. data/install.rb +1 -1
  181. data/lib/webgen.rb +275 -0
  182. data/lib/webgen/composite.rb +1 -1
  183. data/lib/webgen/gui/common.rb +38 -0
  184. data/lib/webgen/gui/main.rb +219 -0
  185. data/lib/webgen/gui/new_website_dlg.rb +125 -0
  186. data/lib/webgen/listener.rb +1 -1
  187. data/lib/webgen/node.rb +4 -2
  188. data/lib/webgen/plugin.rb +167 -100
  189. data/lib/webgen/plugins/{contenthandler/defaultcontenthandler.rb → contenthandlers/default.rb} +1 -1
  190. data/lib/webgen/plugins/{contenthandler → contenthandlers}/html.rb +2 -2
  191. data/lib/webgen/plugins/{contenthandler → contenthandlers}/markdown.rb +2 -2
  192. data/lib/webgen/plugins/{contenthandler → contenthandlers}/rdoc.rb +2 -2
  193. data/lib/webgen/plugins/{contenthandler → contenthandlers}/textile.rb +2 -2
  194. data/lib/webgen/{configuration.rb → plugins/coreplugins/configuration.rb} +34 -14
  195. data/lib/webgen/{logging.rb → plugins/coreplugins/logging.rb} +4 -4
  196. data/lib/webgen/plugins/{resourcemanager.rb → coreplugins/resourcemanager.rb} +44 -22
  197. data/lib/webgen/plugins/{filehandler → filehandlers}/backing.rb +11 -11
  198. data/lib/webgen/plugins/{filehandler/filecopy.rb → filehandlers/copy.rb} +3 -3
  199. data/lib/webgen/plugins/{filehandler → filehandlers}/directory.rb +15 -10
  200. data/lib/webgen/plugins/{filehandler → filehandlers}/filehandler.rb +9 -7
  201. data/lib/webgen/plugins/{filehandler/picturegallery.rb → filehandlers/gallery.rb} +35 -28
  202. data/lib/webgen/plugins/{filehandler → filehandlers}/page.rb +30 -15
  203. data/lib/webgen/plugins/{filehandler → filehandlers}/template.rb +3 -3
  204. data/lib/webgen/plugins/{gallerylayouter/defaultgallerylayouter.rb → gallerylayouters/default.rb} +11 -11
  205. data/lib/webgen/plugins/{htmlvalidator/defaulthtmlvalidator.rb → htmlvalidators/default.rb} +1 -1
  206. data/lib/webgen/plugins/{htmlvalidator → htmlvalidators}/xmllint.rb +2 -2
  207. data/lib/webgen/plugins/menustyles/{defaultmenustyle.rb → default.rb} +2 -2
  208. data/lib/webgen/plugins/menustyles/horizontal.rb +2 -2
  209. data/lib/webgen/plugins/menustyles/horizontal_dropdown.rb +2 -2
  210. data/lib/webgen/plugins/menustyles/partial.rb +2 -2
  211. data/lib/webgen/plugins/menustyles/vertical.rb +2 -2
  212. data/lib/webgen/plugins/menustyles/vertical_dropdown.rb +2 -2
  213. data/lib/webgen/plugins/miscplugins/smileyreplacer.rb +84 -0
  214. data/lib/webgen/plugins/{treewalker.rb → miscplugins/treewalker.rb} +1 -1
  215. data/lib/webgen/plugins/tags/{navbar.rb → breadcrumbtrail.rb} +5 -9
  216. data/lib/webgen/plugins/tags/date.rb +2 -6
  217. data/lib/webgen/plugins/tags/download.rb +155 -0
  218. data/lib/webgen/plugins/tags/executecommand.rb +2 -6
  219. data/lib/webgen/plugins/tags/includefile.rb +4 -8
  220. data/lib/webgen/plugins/tags/langbar.rb +2 -6
  221. data/lib/webgen/plugins/tags/menu.rb +2 -7
  222. data/lib/webgen/plugins/tags/meta.rb +2 -6
  223. data/lib/webgen/plugins/tags/relocatable.rb +2 -6
  224. data/lib/webgen/plugins/tags/sitemap.rb +14 -10
  225. data/lib/webgen/plugins/tags/tags.rb +25 -18
  226. data/lib/webgen/plugins/tags/wikilink.rb +2 -6
  227. metadata +311 -195
  228. data/doc/src/design.gallery +0 -18
  229. data/doc/src/designs/curdesign.png +0 -0
  230. data/doc/src/designs/nostyle.png +0 -0
  231. data/doc/src/designs/old.png +0 -0
  232. data/doc/src/documentation/plugins/gallerylayouter/defaultlayouter.page +0 -12
  233. data/doc/src/documentation/plugins/system/index.page +0 -7
  234. data/doc/src/documentation/plugins/tags/navbar.page +0 -20
  235. data/lib/webgen/webgen.rb +0 -271
  236. data/testsite/config.yaml +0 -7
  237. data/testsite/src/bghack.png +0 -0
  238. data/testsite/src/bluecloth.page +0 -102
  239. data/testsite/src/default.css +0 -146
  240. data/testsite/src/default.template +0 -33
  241. data/testsite/src/home.en.page +0 -22
  242. data/testsite/src/home.page +0 -22
  243. data/testsite/src/images/bghack.png +0 -0
  244. data/testsite/src/index.page +0 -21
  245. data/testsite/src/meta.info +0 -12
  246. data/testsite/src/news.page +0 -20
  247. data/testsite/src/news_are_so-cool.de.page +0 -19
  248. data/testsite/src/noindex/noindex.page +0 -20
  249. data/testsite/src/pictures/index.page +0 -20
  250. data/testsite/src/projects.de.page +0 -11
  251. data/testsite/src/projects.es.page +0 -11
  252. data/testsite/src/projects.page +0 -17
  253. data/testsite/src/projects/00.index.de.page +0 -10
  254. data/testsite/src/projects/01.project2.page +0 -20
  255. data/testsite/src/projects/02.project1.page +0 -20
  256. data/testsite/src/projects/05.project3.page +0 -22
  257. data/testsite/src/projects/index.page +0 -20
  258. data/testsite/src/projects/subproj/index.page +0 -22
  259. data/testsite/src/projects/subproj/project3.page +0 -21
  260. data/testsite/src/rdoc.page +0 -12
  261. data/testsite/src/redcloth.page +0 -106
@@ -4,7 +4,7 @@ inMenu: true
4
4
  ---
5
5
  h2. Information
6
6
 
7
- <notextile>{describe: FileCopyHandler}</notextile>
7
+ <notextile>{describe: CopyFileHandler}</notextile>
8
8
 
9
9
  h2. Description
10
10
 
@@ -4,7 +4,7 @@ inMenu: true
4
4
  ---
5
5
  h2. Information
6
6
 
7
- <notextile>{describe: DirHandler}</notextile>
7
+ <notextile>{describe: DirectoryHandler}</notextile>
8
8
 
9
9
  h2. Description
10
10
 
@@ -15,7 +15,7 @@ file handlers page is generated by the index file of the @filehandler@ directory
15
15
 
16
16
  Normally, webgen shows a warning if it could not find the directory index file for a directory.
17
17
  However, there are most certainly directories which should not have an index file, e.g. a directory
18
- with pictures only. To prevent webgen from displaying warnings for such directories, you can add the
18
+ with images only. To prevent webgen from displaying warnings for such directories, you can add the
19
19
  following meta information to a backing file:
20
20
 
21
21
  <pre>
@@ -24,3 +24,12 @@ dirWithOnlyImages:
24
24
  </pre>
25
25
 
26
26
  This will prevent webgen from showing warnings because you explicitly define a null index file.
27
+
28
+ If you do not want to use directory index files, you can set the parameter @indexFile@ to @nil@ in
29
+ the configuration file, like this:
30
+
31
+ <pre>
32
+ DirectoryHandler:
33
+ indexFile: ~
34
+ </pre>
35
+
@@ -1,19 +1,22 @@
1
1
  ---
2
- title: Picture Gallery File Handler
2
+ title: Gallery File Handler
3
3
  inMenu: true
4
4
  ---
5
5
  h2. Information
6
6
 
7
- <notextile>{describe: PictureGalleryFileHandler}</notextile>
7
+ <notextile>{describe: GalleryFileHandler}</notextile>
8
8
 
9
9
  h2. Description
10
10
 
11
- This file handler uses picture gallery description files to automatically build picture galleries.
12
- These picture galleries are highly configurable and themeable through the use of page templates.
11
+ This file handler uses image gallery description files to automatically build image galleries.
12
+ These image galleries are highly configurable and themeable through the use of page templates.
13
13
 
14
14
  h2. Gallery Description Files
15
15
 
16
- The gallery description files are written in YAML and specify
16
+ The gallery description files have YAML as file format and can either be written by hand or can be
17
+ edited using the <a href="{relocatable: /documentation/webgen_gallery_editor.page}">webgen-gallery-editor</a>.
18
+
19
+ A gallery description file specifies
17
20
 
18
21
  * which images should be used
19
22
  * the titles/descriptions of the images
@@ -25,12 +28,12 @@ The two most important things on this list are which images should be used and t
25
28
  images have to be in the website source directory! You can/should not specify images outside the
26
29
  source directory as these images are not automatically copied to the destination directory and
27
30
  automatice thumbnail creation may not work correctly. And the layout defines how the main, gallery
28
- and picture pages look like.
31
+ and image pages look like.
29
32
 
30
33
  Here is an example gallery description file:
31
34
  <pre>
32
35
  title: Example Gallery
33
- picsPerPage: 32
36
+ imagesPerPage: 32
34
37
  files: example/**/*.jpg
35
38
 
36
39
  mainPage:
@@ -52,8 +55,12 @@ example/img2.jpg
52
55
  So, we define the title of the gallery first and change the @picsPerPage@ setting. Every plugin
53
56
  parameter can be changed by using its name as key and assigning a new value to it. The key
54
57
  @mainPage@ can be used to set meta information for the main page. Likewise, the key @galleryPages@
55
- can be used to set meta information for the gallery pages and if the key is the name of a picture,
56
- its meta information is set to the specified values.
58
+ can be used to set meta information for the gallery pages and if the key is the name of an image,
59
+ its value is used as meta information for the image.
60
+
61
+ You can specify the order of the images by setting the @orderInfo@ meta information on the images.
62
+ Normally, the images are sorted by their title or, if no title was entered, by their filename. By
63
+ setting the @orderInfo@ meta information you can reorder them.
57
64
 
58
65
  h2. Types of Generated Pages
59
66
 
@@ -65,15 +72,15 @@ There are three different page types:
65
72
  * *gallery pages*: Each gallery page should have a list of all the images on it. The number of
66
73
  images per gallery page can be defined via a parameter.
67
74
 
68
- * *picture pages*: Each picture page should display its picture and, maybe, additional information.
75
+ * *image pages*: Each image page should display its image and, maybe, additional information.
69
76
 
70
77
  h2. Layouter plugins
71
78
 
72
- Each layouter plugin defines a different "style" of picture gallery. Have a look at the available
73
- layouter plugins and choose one for your picture gallery. If you think they do not look good enough,
79
+ Each layouter plugin defines a different "style" of image gallery. Have a look at the available
80
+ layouter plugins and choose one for your image gallery. If you think they do not look good enough,
74
81
  you can define your own layouter in the extension file. You only need to derive a new class from
75
82
  DefaultGalleryLayouter and define the layout methods.
76
83
 
77
84
  h2. Examples
78
85
 
79
- You can view an example gallery <a href="{relocatable: /Design_Gallery_1.page}">here</a>!
86
+ You can view an example gallery <a href="{relocatable: /Screenshots_1.page}">here</a>!
@@ -4,7 +4,7 @@ inMenu: true
4
4
  ---
5
5
  h2. Information
6
6
 
7
- <notextile>{describe: PageHandler}</notextile>
7
+ <notextile>{describe: PageFileHandler}</notextile>
8
8
 
9
9
  h2. Description
10
10
 
@@ -102,7 +102,7 @@ The template will always be processed with ERB!
102
102
  h3. Format
103
103
 
104
104
  The content of page description can be written in different formats. Have a look at the
105
- <a href="{relocatable: ../contenthandler}">Content Handlers</a> to get an overview of the existing
105
+ <a href="{relocatable: ../contenthandlers}">Content Handlers</a> to get an overview of the existing
106
106
  formats.
107
107
 
108
108
  h2. Default settings
@@ -128,8 +128,10 @@ The following defaults are used:
128
128
  and @name@ must not contain any dots. Also: if two page descriptions files have the same
129
129
  @name@ part, they should define the same content for different languages as webgen consideres
130
130
  them as "one" page file in two languages.
131
- * language: This is the language code for this file. It is the international two letter acronym
132
- and if it is not specified, it defaults to @en@.
131
+ * language: This is the language code for this file. The codes defined in ISO-639-1 (2 char codes)
132
+ and ISO-639-2 (3 char codes) can/should be used for defining the language. However, you should stick
133
+ to one code and do not use any other code for the same language (i.e. only use @en@ and not
134
+ additionally @eng@ or vice versa). If the language is not specified, it defaults to @en@.
133
135
 
134
136
  Consider the following examples:
135
137
  * @name.page@ -> title: Name, language: en, ordering: 0
@@ -1,14 +1,18 @@
1
1
  ---
2
2
  directoryName: Gallery Layouters
3
3
  ---
4
- h2. About
4
+ h2. Information
5
+
6
+ <notextile>{describe: DefaultGalleryLayouter}</notextile>
7
+
8
+ h2. Description
5
9
 
6
10
  Gallery layouters are used to define layouts for galleries. Each plugin defines how the main page,
7
- the gallery pages and the picture pages look like. To do this, each plugin has to define three methods:
11
+ the gallery pages and the image pages look like. To do this, each plugin has to define three methods:
8
12
 
9
13
  * <tt>main( data )</tt>
10
14
  * <tt>gallery( data, gIndex )</tt>
11
- * <tt>picture( data, gIndex, iIndex )</tt>
15
+ * <tt>image( data, gIndex, iIndex )</tt>
12
16
 
13
17
  The @data@ parameter is a @Hash@ with all the information available about the gallery. The @gIndex@
14
18
  and the @iIndex@ parameters are indices for the current gallery and the current image.
@@ -26,3 +26,7 @@ listed in the "Information" section of each plugin page. Also note that plugins
26
26
  parameters from their "super plugins" - this allows a group of plugins which have similar
27
27
  functionality (e.g. the menu style plugins) to share common configuration values. The names of the
28
28
  "super plugins" are enclosed in parentheses after the plugin name in the "Information" section.
29
+
30
+ Parameters can have various types: String, Number, Boolean, Array... When setting a parameter via
31
+ the configuration file, you need to ensure that it has the proper type. Have a look at
32
+ "www.yaml.org":http://www.yaml.org for more information about supported types!
@@ -9,7 +9,7 @@ h2. Information
9
9
  h2. Description
10
10
 
11
11
  Builds a vertical menu with CSS drop down menus. This one is similar to the horizontal dropdown menu
12
- and the information on the <a href="{relocatable: horizontal-dropdown.page}">Horizontal
12
+ and the information on the <a href="{relocatable: horizontaldropdown.page}">Horizontal
13
13
  Dropdown</a> page also applies for this menu style.
14
14
 
15
15
  h2. Example
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: Miscellaneous Plugins
3
+ directoryName: Misc Plugins
4
+ ---
5
+ h2. About
6
+
7
+ These plugins do not fit in any other category and are therefore located here.
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: Smiley Replacer
3
+ inMenu: true
4
+ emoticonPack: ~
5
+ ---
6
+ h2. Information
7
+
8
+ <notextile>{describe: SmileyReplacer}</notextile>
9
+
10
+ h2. Description
11
+
12
+ This plugin replaces smiley (ie. such sequences as <notextile>;-), :-)</notextile>, ...) with
13
+ emoticons - graphics which express the same emotion as the smiley.
14
+
15
+ You can enable or disable the replacement of smileys globally by setting the parameter @emoticonPack@
16
+ to an existing smiley package or @nil@. However, if a page has the meta information @emoticonPack@,
17
+ this meta info takes precedence over the global value. So, if the replacement is globally enabled,
18
+ you can disable it for a specifc page by setting the meta information @emoticonPack@ to @nil@ (this
19
+ was done for this page so that you can see the character representation of the smileys). You can
20
+ also change the used emoticon package for one page only by setting @emoticonPack@ to another
21
+ package name.
22
+
23
+ h2. Available Emoticon Packs
24
+
25
+ Here is a table showing the available smileys and their representation with various emoticons
26
+ packages. The header shows the smiley you have to use so that you get one of the emoticons below it,
27
+ depending on the used emoticon package.
28
+
29
+ Note: I have found these smileys in various places on the Internet and think they are free to use.
30
+ If not, please mail me sothat I can remove them!
31
+
32
+ Credits:
33
+
34
+ * smellies: I have taken the smellies emoticons from "Kebawe.com":http://kebawe.com/smellies/ !
35
+ * crystal: The crystal emoticons are from "http://kde-look.org/content/show.php?content=10681":http://kde-look.org/content/show.php?content=10681 .
36
+ * icqstyle: These are from "http://kde-look.org/content/show.php?content=23226":http://kde-look.org/content/show.php?content=23226 .
37
+
38
+ <notextile>{showEmoticonPacks:}</notextile>
@@ -0,0 +1,20 @@
1
+ ---
2
+ title: Breadcrumb Trail
3
+ inMenu: true
4
+ ---
5
+ h2. Information
6
+
7
+ <notextile>{describe: BreadcrumbTrailTag}</notextile>
8
+
9
+ h2. Description
10
+
11
+ The breadcrumb trail tag is used to display the hierarchy for the current page. You can see it in
12
+ action on the left side of the header.
13
+
14
+ h2. Examples
15
+
16
+ table{border:1px solid black}.
17
+ |_.Command|_.Output|
18
+ |\{breadcrumbTrail:}|{breadcrumbTrail:}|
19
+ |<notextile>\{breadcrumbTrail: {separator: " HALLO "}}</notextile>|<notextile>{breadcrumbTrail: {separator: " HALLO "}}</notextile>|
20
+
@@ -0,0 +1,23 @@
1
+ ---
2
+ title: Download
3
+ inMenu: true
4
+ ---
5
+ h2. Information
6
+
7
+ <notextile>{describe: DownloadTag}</notextile>
8
+
9
+ h2. Description
10
+
11
+ This tag is used to provide a nice download link. The download link includes the following parts:
12
+
13
+ * *download icon* [optional]: an icon which shows that the file can be downloaded
14
+ * *file icon*: an icon showing the type of the file (PDF file, music file, video file,...)
15
+ * *link to file*: the link to the file
16
+ * *file size*: the size of the file if it can be calculated
17
+
18
+ h2. Examples
19
+
20
+ table{border:1px solid black}.
21
+ |_.Command|_.Output|
22
+ |<notextile>\{download: {url: /images/screenshots/wge-image.png, alwaysShowDownloadIcon: true}}</notextile>|<notextile>{download: {url: /images/screenshots/wge-image.png, alwaysShowDownloadIcon: true}}</notextile>|
23
+ |<notextile>\{download: download.page}</notextile>|<notextile>{download: download.page}</notextile>|
@@ -10,7 +10,7 @@ h2. Description
10
10
 
11
11
  The resource tag is used to include a resource either verbatim (i.e. its content is copied) or by
12
12
  path. For more information about resources have a look at the
13
- <a href="{relocatable: ../resourcemanager.page}">Resource Manager</a>.
13
+ <a href="{relocatable: ../coreplugins/resourcemanager.page}">Resource Manager</a>.
14
14
 
15
15
  h2. Examples
16
16
 
@@ -8,8 +8,7 @@ h2. Information
8
8
 
9
9
  h2. Description
10
10
 
11
- The SitemapTag is used to display the site map of the current web site. It contains all the pages of
12
- the web site and their hierarchy.
11
+ The SitemapTag is used to display the site map of the current web site.
13
12
 
14
13
  h2. Examples
15
14
 
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: References
3
+ directoryName: References
4
+ orderInfo: 25
5
+ ---
6
+ h2. About
7
+
8
+ Some references for your convenience!
@@ -19,3 +19,4 @@ table{border: 1px solid black}.
19
19
  |*template* |String |my.template |Page file |Sets the template for the page file overriding the default value.|
20
20
  |*title* |String |New Title |Any |Sets the title for the file/directory.|
21
21
  |*useERB* |Boolean |false |Page file |Specifies if the content blocks of the page file should be processed with ERB overriding the default value.|
22
+ |*emoticonPack* |String |bigeyes |Page file |Sets the emoticon package which should be used for the page.|
@@ -0,0 +1,12 @@
1
+ ---
2
+ title: Plugin Parameter Reference
3
+ inMenu: true
4
+ orderInfo: 22
5
+ ---
6
+ h2. Plugin Parameter Reference
7
+
8
+ Each plugin can specify <a href="{relocatable: ../plugins}">parameters</a>. Here is a list of all
9
+ available parameters for a quick lookup, ordered by category and then name (only plugins with
10
+ parameters are shown!):
11
+
12
+ <notextile>{listPluginParameters:}</notextile>
@@ -0,0 +1,82 @@
1
+ ---
2
+ title: Webgen Gallery Editor
3
+ inMenu: true
4
+ orderInfo: 20
5
+ ---
6
+ h2. About
7
+
8
+ This application is based on Qt > 3.1 and therefore needs the
9
+ "qtruby":http://rubyforge.org/projects/korundum/ package. It is basically an editor for editing
10
+ webgen gallery description files. You can easily set all of the required parameters and assign a
11
+ title and a description to each image.
12
+
13
+ <b>Be aware that this application is only alpha quality! Do not report any bugs concerning this
14
+ application!</b>
15
+
16
+ h2. How To Use
17
+
18
+ h3. Starting the editor
19
+
20
+ You can start the editor by calling @webgen-gallery-editor@. This opens up the main window.
21
+
22
+ <img src="{relocatable: /images/screenshots/wge-main.png}" alt="Main window when editing" title="Main Window when editing" />
23
+
24
+ At the beginning all widgets are disabled; they get enabled as soon as you create a new gallery
25
+ description file or open an existing one.
26
+
27
+ h3. Creating a new gallery description file
28
+
29
+ Select @File->New...@ which requires you to enter a name for the new gallery description file. All
30
+ the fields are filled with the default values. After that you can start editing!
31
+
32
+ h3. Editing gallery description files
33
+
34
+ You can specify the basic gallery information like gallery title, file pattern, ... in the upper
35
+ half of the main window. The meta information you specify for the main page gets included in the
36
+ main page; likewise the meta information you specify for the gallery pages gets included in every
37
+ gallery page.
38
+
39
+ The lower half of the main window consists of four parts
40
+
41
+ * *The list of images*:
42
+
43
+ This list gets automatically updated whenever you change the file pattern. So you have a live
44
+ preview of which images get included in the gallery. When you click on an image, it will be shown
45
+ in the image preview pane. Also, the image meta information table and the title and description
46
+ fields will be updated to show the current values for the selected image.
47
+
48
+ * *The image preview pane*:
49
+
50
+ Here you will see the selected image. It will be scaled so that it fits into the available space,
51
+ but it will not be enlarged if the space available is bigger than the image.
52
+
53
+ * *The image meta information*:
54
+
55
+ Here you can enter additional meta information for the selected image.
56
+
57
+ * *Title and Description fields*:
58
+
59
+ As these two meta information fields are used most often, they got their own widgets.
60
+
61
+
62
+ As entering the title and description for the images is the main use for the webgen gallery editor,
63
+ there is an easy way to do this:
64
+
65
+ # Select the first image.
66
+
67
+ # Enter a title in the title field. When you are finished press @CTRL+ENTER@. This will set the
68
+ focus to the description field.
69
+
70
+ # Enter the description and when you are finished, press @CTRL+ENTER@ again. The next image will be
71
+ selected and the focus wil be set to the title field so that you can continue describing the images.
72
+
73
+
74
+ h3. Using the meta information widgets
75
+
76
+ You need to specify the name of the meta information in the first column and the value in the second
77
+ column of the widget. You can only use certain kinds of values:
78
+
79
+ * Integer: just type a number
80
+ * String: just type the string
81
+ * Boolean: the special values @true@ and @false@ will be used as boolean values.
82
+ * Nil: the special value @nil@ will be used as nil value
@@ -12,11 +12,11 @@ Download: "http://rubyforge.org/frs/?group_id=296":http://rubyforge.org/frs/?gro
12
12
 
13
13
  h2. Dependencies
14
14
 
15
- * "cmdparse":http://cmdparse.rubyforge.org version 1.0.3 or higher
15
+ * "cmdparse":http://cmdparse.rubyforge.org version 2.0.0 or higher
16
16
  * "RedCloth":http://redcloth.rubyforge.org version 2.0.10 or higher if you want Textile support
17
17
  * "BlueCloth":http://www.deveiate.org version 1.0.0 or higher if you want Markdown support
18
18
  * "RMagick":http://rmagick.rubyforge.org/ version 1.7.1 or higher if you want automatic thumbnail
19
- creation for picture galleries
19
+ creation for image galleries
20
20
 
21
21
  h2. Installation
22
22
 
@@ -16,7 +16,7 @@ h2. Feature list
16
16
  * <h3>File Handler (for handling the files in the source directory)</h3>
17
17
 
18
18
  * Powerful file copy handler for copying single files or entire directories to the output directory
19
- * Support for gallery definition files -> generates entire picture gallery, automatic thumbnail creation
19
+ * Support for gallery definition files -> generates entire image galleries, with automatic thumbnail creation
20
20
 
21
21
  * <h3>Page Description Files (for define web pages)</h3>
22
22
 
@@ -28,7 +28,7 @@ h2. Feature list
28
28
 
29
29
  * Standard distribution provides often used tags
30
30
  * Menu tag can generate different types of menus (simple menus and ones with CSS drop downs)
31
- * Navbar tag generates a navigation bar so that one always knows where he is in the hierarchy
31
+ * Breadcrumb trail tag generates a breadcrumb trail so that one always knows where he is in the hierarchy
32
32
  * Relocatable tag for automatically generating correct relative paths to files
33
33
  * ... and much more!
34
34
 
@@ -36,3 +36,4 @@ h2. Feature list
36
36
 
37
37
  * Automatically checks generated files if they are standard conform
38
38
  * Supports 'virtual files' via meta information backing files
39
+ * Support for automatic smiley replacement with emoticons(:-))