webgen 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +132 -6742
- data/Rakefile +3 -1
- data/THANKS +27 -0
- data/VERSION +1 -1
- data/doc/examples/website_styles/1024px/README +9 -0
- data/doc/examples/website_styles/1024px/config.yaml +2 -0
- data/doc/examples/website_styles/1024px/src/about.page +12 -0
- data/doc/examples/website_styles/1024px/src/default.css +188 -0
- data/doc/examples/website_styles/1024px/src/default.template +62 -0
- data/doc/examples/website_styles/1024px/src/download.page +15 -0
- data/doc/examples/website_styles/1024px/src/features.page +8 -0
- data/doc/examples/website_styles/1024px/src/images/background.gif +0 -0
- data/doc/examples/website_styles/1024px/src/index.page +9 -0
- data/doc/examples/website_styles/1024px/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas00/README +9 -0
- data/doc/examples/website_styles/andreas00/config.yaml +2 -0
- data/doc/examples/website_styles/andreas00/src/about.page +12 -0
- data/doc/examples/website_styles/andreas00/src/default.css +290 -0
- data/doc/examples/website_styles/andreas00/src/default.template +62 -0
- data/doc/examples/website_styles/andreas00/src/download.page +15 -0
- data/doc/examples/website_styles/andreas00/src/features.page +8 -0
- data/doc/examples/website_styles/andreas00/src/images/bg.gif +0 -0
- data/doc/examples/website_styles/andreas00/src/images/front.jpg +0 -0
- data/doc/examples/website_styles/andreas00/src/images/menubg.gif +0 -0
- data/doc/examples/website_styles/andreas00/src/images/menubg2.gif +0 -0
- data/doc/examples/website_styles/andreas00/src/index.page +9 -0
- data/doc/examples/website_styles/andreas00/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas01/README +9 -0
- data/doc/examples/website_styles/andreas01/config.yaml +2 -0
- data/doc/examples/website_styles/andreas01/src/about.page +12 -0
- data/doc/examples/website_styles/andreas01/src/default.css +310 -0
- data/doc/examples/website_styles/andreas01/src/default.template +63 -0
- data/doc/examples/website_styles/andreas01/src/download.page +15 -0
- data/doc/examples/website_styles/andreas01/src/features.page +8 -0
- data/doc/examples/website_styles/andreas01/src/images/bg.gif +0 -0
- data/doc/examples/website_styles/andreas01/src/images/front.jpg +0 -0
- data/doc/examples/website_styles/andreas01/src/index.page +9 -0
- data/doc/examples/website_styles/andreas01/src/print.css +35 -0
- data/doc/examples/website_styles/andreas01/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas03/README +9 -0
- data/doc/examples/website_styles/andreas03/config.yaml +2 -0
- data/doc/examples/website_styles/andreas03/src/about.page +12 -0
- data/doc/examples/website_styles/andreas03/src/default.css +223 -0
- data/doc/examples/website_styles/andreas03/src/default.template +60 -0
- data/doc/examples/website_styles/andreas03/src/download.page +15 -0
- data/doc/examples/website_styles/andreas03/src/features.page +8 -0
- data/doc/examples/website_styles/andreas03/src/images/bodybg.png +0 -0
- data/doc/examples/website_styles/andreas03/src/images/contbg.png +0 -0
- data/doc/examples/website_styles/andreas03/src/images/footerbg.png +0 -0
- data/doc/examples/website_styles/andreas03/src/images/gradient1.png +0 -0
- data/doc/examples/website_styles/andreas03/src/images/gradient2.png +0 -0
- data/doc/examples/website_styles/andreas03/src/index.page +9 -0
- data/doc/examples/website_styles/andreas03/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas04/README +9 -0
- data/doc/examples/website_styles/andreas04/config.yaml +2 -0
- data/doc/examples/website_styles/andreas04/src/about.page +12 -0
- data/doc/examples/website_styles/andreas04/src/default.css +290 -0
- data/doc/examples/website_styles/andreas04/src/default.template +83 -0
- data/doc/examples/website_styles/andreas04/src/download.page +15 -0
- data/doc/examples/website_styles/andreas04/src/features.page +8 -0
- data/doc/examples/website_styles/andreas04/src/images/blinkarrow.gif +0 -0
- data/doc/examples/website_styles/andreas04/src/images/bodybg.png +0 -0
- data/doc/examples/website_styles/andreas04/src/images/contentbg.png +0 -0
- data/doc/examples/website_styles/andreas04/src/images/entrybg.png +0 -0
- data/doc/examples/website_styles/andreas04/src/images/flash.gif +0 -0
- data/doc/examples/website_styles/andreas04/src/images/flash2.gif +0 -0
- data/doc/examples/website_styles/andreas04/src/images/globe.gif +0 -0
- data/doc/examples/website_styles/andreas04/src/images/globebottom.gif +0 -0
- data/doc/examples/website_styles/andreas04/src/images/linkarrow.gif +0 -0
- data/doc/examples/website_styles/andreas04/src/images/menuhover.png +0 -0
- data/doc/examples/website_styles/andreas04/src/index.page +9 -0
- data/doc/examples/website_styles/andreas04/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas05/README +9 -0
- data/doc/examples/website_styles/andreas05/config.yaml +2 -0
- data/doc/examples/website_styles/andreas05/src/about.page +12 -0
- data/doc/examples/website_styles/andreas05/src/default.css +33 -0
- data/doc/examples/website_styles/andreas05/src/default.template +42 -0
- data/doc/examples/website_styles/andreas05/src/download.page +15 -0
- data/doc/examples/website_styles/andreas05/src/features.page +8 -0
- data/doc/examples/website_styles/andreas05/src/images/bodybg.gif +0 -0
- data/doc/examples/website_styles/andreas05/src/images/front.png +0 -0
- data/doc/examples/website_styles/andreas05/src/index.page +9 -0
- data/doc/examples/website_styles/andreas05/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas06/README +9 -0
- data/doc/examples/website_styles/andreas06/config.yaml +2 -0
- data/doc/examples/website_styles/andreas06/src/about.page +12 -0
- data/doc/examples/website_styles/andreas06/src/default.css +354 -0
- data/doc/examples/website_styles/andreas06/src/default.template +72 -0
- data/doc/examples/website_styles/andreas06/src/download.page +15 -0
- data/doc/examples/website_styles/andreas06/src/features.page +8 -0
- data/doc/examples/website_styles/andreas06/src/images/bodybg.gif +0 -0
- data/doc/examples/website_styles/andreas06/src/images/boxbg.gif +0 -0
- data/doc/examples/website_styles/andreas06/src/images/greypx.gif +0 -0
- data/doc/examples/website_styles/andreas06/src/images/header.jpg +0 -0
- data/doc/examples/website_styles/andreas06/src/images/innerbg.gif +0 -0
- data/doc/examples/website_styles/andreas06/src/images/leaves.jpg +0 -0
- data/doc/examples/website_styles/andreas06/src/images/tabs.gif +0 -0
- data/doc/examples/website_styles/andreas06/src/index.page +9 -0
- data/doc/examples/website_styles/andreas06/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas07/README +9 -0
- data/doc/examples/website_styles/andreas07/config.yaml +2 -0
- data/doc/examples/website_styles/andreas07/src/about.page +12 -0
- data/doc/examples/website_styles/andreas07/src/browserfix.css +7 -0
- data/doc/examples/website_styles/andreas07/src/default.css +92 -0
- data/doc/examples/website_styles/andreas07/src/default.template +44 -0
- data/doc/examples/website_styles/andreas07/src/download.page +15 -0
- data/doc/examples/website_styles/andreas07/src/features.page +8 -0
- data/doc/examples/website_styles/andreas07/src/images/bodybg.gif +0 -0
- data/doc/examples/website_styles/andreas07/src/images/sidebarbg.gif +0 -0
- data/doc/examples/website_styles/andreas07/src/index.page +9 -0
- data/doc/examples/website_styles/andreas07/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas08/README +9 -0
- data/doc/examples/website_styles/andreas08/config.yaml +2 -0
- data/doc/examples/website_styles/andreas08/src/about.page +12 -0
- data/doc/examples/website_styles/andreas08/src/default.css +224 -0
- data/doc/examples/website_styles/andreas08/src/default.template +53 -0
- data/doc/examples/website_styles/andreas08/src/download.page +15 -0
- data/doc/examples/website_styles/andreas08/src/features.page +8 -0
- data/doc/examples/website_styles/andreas08/src/index.page +9 -0
- data/doc/examples/website_styles/andreas08/src/screenshots.page +18 -0
- data/doc/examples/website_styles/andreas09/README +9 -0
- data/doc/examples/website_styles/andreas09/config.yaml +2 -0
- data/doc/examples/website_styles/andreas09/src/about.page +12 -0
- data/doc/examples/website_styles/andreas09/src/default.css +308 -0
- data/doc/examples/website_styles/andreas09/src/default.template +70 -0
- data/doc/examples/website_styles/andreas09/src/download.page +15 -0
- data/doc/examples/website_styles/andreas09/src/features.page +8 -0
- data/doc/examples/website_styles/andreas09/src/images/bodybg-black.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/bodybg-green.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/bodybg-orange.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/bodybg-purple.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/bodybg-red.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/bodybg.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/footerbg.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/menuhover-black.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/menuhover-green.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/menuhover-orange.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/menuhover-purple.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/menuhover-red.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/images/menuhover.jpg +0 -0
- data/doc/examples/website_styles/andreas09/src/index.page +9 -0
- data/doc/examples/website_styles/andreas09/src/screenshots.page +18 -0
- data/doc/examples/website_styles/default/README +9 -0
- data/doc/examples/website_styles/default/config.yaml +2 -0
- data/doc/examples/website_styles/default/src/about.page +12 -0
- data/doc/examples/website_styles/default/src/default.css +84 -0
- data/doc/examples/website_styles/default/src/default.template +38 -0
- data/doc/examples/website_styles/default/src/download.page +15 -0
- data/doc/examples/website_styles/default/src/features.page +8 -0
- data/doc/examples/website_styles/default/src/index.page +9 -0
- data/doc/examples/website_styles/default/src/screenshots.page +18 -0
- data/doc/examples/website_templates/default/README +8 -0
- data/doc/examples/website_templates/default/config.yaml +2 -0
- data/doc/examples/website_templates/default/src/default.css +84 -0
- data/doc/examples/website_templates/default/src/default.template +38 -0
- data/doc/examples/website_templates/default/src/index.page +8 -0
- data/doc/examples/website_templates/personal_hp/README +8 -0
- data/doc/examples/website_templates/personal_hp/config.yaml +2 -0
- data/doc/examples/website_templates/personal_hp/src/about.page +12 -0
- data/doc/examples/website_templates/personal_hp/src/default.css +84 -0
- data/doc/examples/website_templates/personal_hp/src/default.template +38 -0
- data/doc/examples/website_templates/personal_hp/src/index.page +9 -0
- data/doc/examples/website_templates/personal_hp/src/links.page +22 -0
- data/doc/examples/website_templates/personal_hp/src/projects.page +20 -0
- data/doc/examples/website_templates/project/README +9 -0
- data/doc/examples/website_templates/project/config.yaml +2 -0
- data/doc/examples/website_templates/project/src/about.page +12 -0
- data/doc/examples/website_templates/project/src/default.css +84 -0
- data/doc/examples/website_templates/project/src/default.template +38 -0
- data/doc/examples/website_templates/project/src/download.page +15 -0
- data/doc/examples/website_templates/project/src/features.page +8 -0
- data/doc/examples/website_templates/project/src/index.page +9 -0
- data/doc/examples/website_templates/project/src/screenshots.page +18 -0
- data/doc/plugin/gallery/slides/collage.rb +337 -0
- data/doc/src/default.template +12 -5
- data/doc/src/documentation/plugins/contentconverter/maruku.page +23 -0
- data/doc/src/documentation/plugins/menustyle/horizontal.page +4 -0
- data/doc/src/documentation/plugins/tag/htmlmetainfo.page +32 -0
- data/doc/src/documentation/plugins/tag/news.page +48 -0
- data/doc/src/download.page +3 -3
- data/doc/src/examples/example_sites/index.page +4 -0
- data/doc/src/examples/example_sites/personal.zip +0 -0
- data/doc/src/examples/example_sites/photo_gallery.zip +0 -0
- data/doc/src/examples/gallery_styles/default/default.gallery +78 -0
- data/doc/src/examples/gallery_styles/default/gallery_gallery.template +38 -0
- data/doc/src/examples/gallery_styles/default/gallery_image.template +30 -0
- data/doc/src/examples/gallery_styles/default/gallery_main.template +18 -0
- data/doc/src/examples/gallery_styles/index.page +22 -0
- data/doc/src/examples/gallery_styles/slides/gallery_gallery.template +62 -0
- data/doc/src/examples/gallery_styles/slides/gallery_image.template +53 -0
- data/doc/src/examples/gallery_styles/slides/gallery_main.template +32 -0
- data/doc/src/examples/gallery_styles/slides/slides.gallery +79 -0
- data/doc/src/examples/sipttra_styles/default.page +5 -0
- data/doc/src/examples/sipttra_styles/default/css/sipttra.rcss +71 -0
- data/doc/src/examples/sipttra_styles/default/default.template +16 -0
- data/doc/src/examples/sipttra_styles/default/index.todo +60 -0
- data/doc/src/examples/sipttra_styles/default/js/sipttra.js +7 -0
- data/doc/src/examples/sipttra_styles/default/sipttra.template +105 -0
- data/doc/src/examples/sipttra_styles/index.page +17 -0
- data/doc/src/examples/website_styles/1024px.page +5 -0
- data/doc/src/examples/website_styles/andreas00.page +5 -0
- data/doc/src/examples/website_styles/andreas01.page +5 -0
- data/doc/src/examples/website_styles/andreas03.page +5 -0
- data/doc/src/examples/website_styles/andreas04.page +5 -0
- data/doc/src/examples/website_styles/andreas05.page +5 -0
- data/doc/src/examples/website_styles/andreas06.page +5 -0
- data/doc/src/examples/website_styles/andreas07.page +5 -0
- data/doc/src/examples/website_styles/andreas08.page +5 -0
- data/doc/src/examples/website_styles/andreas09.page +5 -0
- data/doc/src/examples/website_styles/default.page +5 -0
- data/doc/src/examples/website_styles/index.page +76 -0
- data/doc/src/examples/website_templates/default.page +5 -0
- data/doc/src/examples/website_templates/index.page +24 -0
- data/doc/src/examples/website_templates/personal_hp.page +5 -0
- data/doc/src/examples/website_templates/project.page +5 -0
- data/doc/src/news.page +24 -0
- data/doc/src/project.todo +34 -0
- data/lib/webgen/config.rb +3 -3
- data/lib/webgen/content.rb +1 -1
- data/lib/webgen/plugins/contentconverters/maruku.rb +33 -0
- data/lib/webgen/plugins/filehandlers/gallery.rb +1 -1
- data/lib/webgen/plugins/filehandlers/template.rb +2 -3
- data/lib/webgen/plugins/menustyles/horizontal.rb +14 -3
- data/lib/webgen/plugins/tags/htmlmetainfo.rb +27 -0
- data/lib/webgen/plugins/tags/news.rb +149 -0
- data/lib/webgen/website.rb +1 -0
- data/test/unittests/tc_config.rb +1 -1
- data/test/unittests/tc_content.rb +8 -0
- data/test/unittests/tc_menustyles_horizontal.rb +49 -3
- metadata +704 -445
- data/data/webgen/website_styles/plain/README +0 -17
- data/data/webgen/website_styles/plain/default.css +0 -244
- data/data/webgen/website_styles/plain/default.template +0 -63
- data/data/webgen/website_styles/plain/images/a_hover.jpg +0 -0
- data/data/webgen/website_styles/plain/images/desc.jpg +0 -0
- data/data/webgen/website_styles/plain/images/li.gif +0 -0
- data/data/webgen/website_styles/plain/images/mainbar.jpg +0 -0
- data/data/webgen/website_styles/plain/images/menu.jpg +0 -0
- data/data/webgen/website_styles/plain/images/submenua.gif +0 -0
- data/data/webgen/website_styles/plain/images/submenua_hover.jpg +0 -0
@@ -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,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!
|
data/doc/src/news.page
CHANGED
@@ -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
|
|
data/doc/src/project.todo
CHANGED
@@ -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
|
|
data/lib/webgen/config.rb
CHANGED
@@ -24,7 +24,7 @@ require 'rbconfig'
|
|
24
24
|
|
25
25
|
module Webgen
|
26
26
|
|
27
|
-
VERSION = [0, 4,
|
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 =
|
43
|
+
@@data_dir = File.expand_path( File.join( File.dirname( __FILE__ ), '..', '..', 'data', 'webgen') )
|
44
44
|
|
45
|
-
@@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
|
data/lib/webgen/content.rb
CHANGED
@@ -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.
|
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
|
-
|
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?
|
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
|
71
|
+
out << "<li#{style.to_s.empty? ? '' : ' ' + style}>#{link}</li>"
|
65
72
|
end
|
66
73
|
out << "</ul>"
|
67
74
|
out << submenu
|
68
75
|
|
69
|
-
|
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
|