webgen 0.3.8 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +2565 -14
- data/README +4 -6
- data/Rakefile +207 -89
- data/TODO +175 -17
- data/VERSION +1 -1
- data/bin/webgen +1 -2
- data/data/webgen/gallery-creator/default.png +0 -0
- data/data/webgen/gallery_styles/default/README +6 -0
- data/data/webgen/gallery_styles/default/gallery_gallery.template +38 -0
- data/data/webgen/gallery_styles/default/gallery_image.template +30 -0
- data/data/webgen/gallery_styles/default/gallery_main.template +18 -0
- data/data/webgen/gallery_styles/slides/README +18 -0
- data/data/webgen/gallery_styles/slides/collage.rb +334 -0
- data/data/webgen/gallery_styles/slides/gallery_gallery.template +62 -0
- data/data/webgen/gallery_styles/slides/gallery_image.template +53 -0
- data/data/webgen/gallery_styles/slides/gallery_main.template +32 -0
- data/data/webgen/resources/images/generated_by_webgen.png +0 -0
- data/data/webgen/resources/images/webgen_logo.png +0 -0
- data/data/webgen/website_styles/1024px/README +10 -0
- data/data/webgen/website_styles/1024px/default.css +188 -0
- data/data/webgen/website_styles/1024px/default.template +62 -0
- data/data/webgen/website_styles/1024px/images/background.gif +0 -0
- data/data/webgen/website_styles/andreas00/README +10 -0
- data/data/webgen/website_styles/andreas00/default.css +290 -0
- data/data/webgen/website_styles/andreas00/default.template +62 -0
- data/data/webgen/website_styles/andreas00/images/bg.gif +0 -0
- data/data/webgen/website_styles/andreas00/images/front.jpg +0 -0
- data/data/webgen/website_styles/andreas00/images/menubg.gif +0 -0
- data/data/webgen/website_styles/andreas00/images/menubg2.gif +0 -0
- data/data/webgen/website_styles/andreas01/README +11 -0
- data/data/webgen/website_styles/andreas01/default.css +310 -0
- data/data/webgen/website_styles/andreas01/default.template +63 -0
- data/data/webgen/website_styles/andreas01/images/bg.gif +0 -0
- data/data/webgen/website_styles/andreas01/images/front.jpg +0 -0
- data/data/webgen/website_styles/andreas01/print.css +35 -0
- data/data/webgen/website_styles/andreas03/README +11 -0
- data/data/webgen/website_styles/andreas03/default.css +223 -0
- data/data/webgen/website_styles/andreas03/default.template +60 -0
- data/data/webgen/website_styles/andreas03/images/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas03/images/contbg.png +0 -0
- data/data/webgen/website_styles/andreas03/images/footerbg.png +0 -0
- data/data/webgen/website_styles/andreas03/images/gradient1.png +0 -0
- data/data/webgen/website_styles/andreas03/images/gradient2.png +0 -0
- data/data/webgen/website_styles/andreas04/README +12 -0
- data/data/webgen/website_styles/andreas04/default.css +290 -0
- data/data/webgen/website_styles/andreas04/default.template +83 -0
- data/data/webgen/website_styles/andreas04/images/blinkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/images/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas04/images/contentbg.png +0 -0
- data/data/webgen/website_styles/andreas04/images/entrybg.png +0 -0
- data/data/webgen/website_styles/andreas04/images/flash.gif +0 -0
- data/data/webgen/website_styles/andreas04/images/flash2.gif +0 -0
- data/data/webgen/website_styles/andreas04/images/globe.gif +0 -0
- data/data/webgen/website_styles/andreas04/images/globebottom.gif +0 -0
- data/data/webgen/website_styles/andreas04/images/linkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/images/menuhover.png +0 -0
- data/data/webgen/website_styles/andreas05/README +11 -0
- data/data/webgen/website_styles/andreas05/default.css +33 -0
- data/data/webgen/website_styles/andreas05/default.template +42 -0
- data/data/webgen/website_styles/andreas05/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas05/images/front.png +0 -0
- data/data/webgen/website_styles/andreas06/README +11 -0
- data/data/webgen/website_styles/andreas06/default.css +353 -0
- data/data/webgen/website_styles/andreas06/default.template +72 -0
- data/data/webgen/website_styles/andreas06/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas06/images/boxbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/images/greypx.gif +0 -0
- data/data/webgen/website_styles/andreas06/images/header.jpg +0 -0
- data/data/webgen/website_styles/andreas06/images/innerbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/images/leaves.jpg +0 -0
- data/data/webgen/website_styles/andreas06/images/tabs.gif +0 -0
- data/data/webgen/website_styles/andreas07/README +12 -0
- data/data/webgen/website_styles/andreas07/browserfix.css +7 -0
- data/data/webgen/website_styles/andreas07/default.css +92 -0
- data/data/webgen/website_styles/andreas07/default.template +44 -0
- data/data/webgen/website_styles/andreas07/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas07/images/sidebarbg.gif +0 -0
- data/data/webgen/website_styles/andreas08/README +11 -0
- data/data/webgen/website_styles/andreas08/default.css +224 -0
- data/data/webgen/website_styles/andreas08/default.template +53 -0
- data/data/webgen/website_styles/andreas09/README +11 -0
- data/data/webgen/website_styles/andreas09/default.css +308 -0
- data/data/webgen/website_styles/andreas09/default.template +70 -0
- data/data/webgen/website_styles/andreas09/images/bodybg-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/bodybg-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/bodybg-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/bodybg-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/bodybg-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/bodybg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/footerbg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/menuhover-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/menuhover-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/menuhover-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/menuhover-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/menuhover-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/images/menuhover.jpg +0 -0
- data/data/webgen/website_styles/default/README +6 -0
- data/data/webgen/website_styles/default/default.css +1 -1
- data/data/webgen/website_styles/default/default.template +9 -3
- data/data/webgen/website_styles/plain/README +12 -0
- data/data/webgen/website_styles/plain/default.css +244 -0
- data/data/webgen/website_styles/plain/default.template +63 -0
- 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
- data/data/webgen/website_templates/default/README +7 -5
- data/data/webgen/website_templates/personal_hp/README +7 -5
- data/data/webgen/website_templates/project/README +8 -6
- data/doc/config.yaml +2 -2
- 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 +353 -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_styles/plain/README +9 -0
- data/doc/examples/website_styles/plain/config.yaml +2 -0
- data/doc/examples/website_styles/plain/src/about.page +12 -0
- data/doc/examples/website_styles/plain/src/default.css +244 -0
- data/doc/examples/website_styles/plain/src/default.template +63 -0
- data/doc/examples/website_styles/plain/src/download.page +15 -0
- data/doc/examples/website_styles/plain/src/features.page +8 -0
- data/doc/examples/website_styles/plain/src/images/a_hover.jpg +0 -0
- data/doc/examples/website_styles/plain/src/images/desc.jpg +0 -0
- data/doc/examples/website_styles/plain/src/images/li.gif +0 -0
- data/doc/examples/website_styles/plain/src/images/mainbar.jpg +0 -0
- data/doc/examples/website_styles/plain/src/images/menu.jpg +0 -0
- data/doc/examples/website_styles/plain/src/images/submenua.gif +0 -0
- data/doc/examples/website_styles/plain/src/images/submenua_hover.jpg +0 -0
- data/doc/examples/website_styles/plain/src/index.page +9 -0
- data/doc/examples/website_styles/plain/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/metainfo.yaml +85 -0
- data/doc/plugin/emoticon.rb +19 -21
- data/doc/plugin/extension.rb +134 -55
- data/doc/plugin/gallery/slides/collage.rb +334 -0
- data/doc/plugin/listpluginparameters.rb +24 -26
- data/doc/plugin/resources.rb +20 -22
- data/doc/src/default.css +333 -154
- data/doc/src/default.template +92 -39
- data/doc/src/documentation/extending_webgen.page +1 -2
- data/doc/src/documentation/gettingstarted.page +161 -44
- data/doc/src/documentation/index.page +15 -28
- data/doc/src/documentation/plugins/contentconverter/default.page +15 -0
- data/doc/src/documentation/plugins/contentconverter/html.page +10 -0
- data/doc/src/documentation/plugins/contentconverter/markdown.page +21 -0
- data/doc/src/documentation/plugins/contentconverter/rdoc.page +11 -0
- data/doc/src/documentation/plugins/contentconverter/textile.page +21 -0
- data/doc/src/documentation/plugins/contentconverter/xmlbuilder.page +61 -0
- data/doc/src/documentation/plugins/core/configuration.page +11 -0
- data/doc/src/documentation/plugins/core/filehandler.page +214 -0
- data/doc/src/documentation/plugins/core/index.page +11 -0
- data/doc/src/documentation/plugins/core/resourcemanager.page +46 -0
- data/doc/src/documentation/plugins/core/tagprocessor.page +17 -0
- data/doc/src/documentation/plugins/file/copyhandler.page +26 -0
- data/doc/src/documentation/plugins/file/defaulthandler.page +15 -0
- data/doc/src/documentation/plugins/file/directoryhandler.page +37 -0
- data/doc/src/documentation/plugins/file/galleryhandler.page +181 -0
- data/doc/src/documentation/plugins/file/pagehandler.page +154 -0
- data/doc/src/documentation/plugins/file/templatehandler.page +34 -0
- data/doc/src/documentation/plugins/file/thumbnailwriter.page +39 -0
- data/doc/src/documentation/plugins/htmlvalidator/default.page +12 -0
- data/doc/src/documentation/plugins/htmlvalidator/xmllint.page +12 -0
- data/doc/src/documentation/plugins/index.page +32 -11
- data/doc/src/documentation/plugins/menustyle/default.page +19 -0
- data/doc/src/documentation/plugins/menustyle/horizontal.page +32 -0
- data/doc/src/documentation/plugins/{menustyles → menustyle}/horizontaldropdown.page +25 -19
- data/doc/src/documentation/plugins/menustyle/section.page +34 -0
- data/doc/src/documentation/plugins/menustyle/vertical.page +48 -0
- data/doc/src/documentation/plugins/menustyle/verticaldropdown.page +29 -0
- data/doc/src/documentation/plugins/misc/index.page +9 -0
- data/doc/src/documentation/plugins/{miscplugins → misc}/smileyreplacer.page +15 -14
- data/doc/src/documentation/plugins/misc/syntaxhighlighter.page +26 -0
- data/doc/src/documentation/plugins/tag/block.page +29 -0
- data/doc/src/documentation/plugins/tag/breadcrumbtrail.page +29 -0
- data/doc/src/documentation/plugins/tag/date.page +34 -0
- data/doc/src/documentation/plugins/tag/default.page +27 -0
- data/doc/src/documentation/plugins/tag/download.page +60 -0
- data/doc/src/documentation/plugins/tag/executecommand.page +29 -0
- data/doc/src/documentation/plugins/tag/includefile.page +30 -0
- data/doc/src/documentation/plugins/{tags → tag}/langbar.de.page +1 -1
- data/doc/src/documentation/plugins/tag/langbar.fr.page +6 -0
- data/doc/src/documentation/plugins/tag/langbar.page +41 -0
- data/doc/src/documentation/plugins/tag/menu.page +78 -0
- data/doc/src/documentation/plugins/{tags → tag}/meta.page +8 -7
- data/doc/src/documentation/plugins/tag/relocatable.page +46 -0
- data/doc/src/documentation/plugins/tag/resource.page +35 -0
- data/doc/src/documentation/plugins/tag/sitemap.page +35 -0
- data/doc/src/documentation/plugins/tag/wikilink.page +33 -0
- data/doc/src/documentation/references/index.page +0 -1
- data/doc/src/documentation/references/meta_info_reference.page +90 -13
- data/doc/src/documentation/references/parameter_reference.page +0 -1
- data/doc/src/documentation/references/webpage_format.page +249 -0
- data/doc/src/download.page +50 -21
- 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/images/image01.jpg +0 -0
- data/doc/src/examples/images/image02.jpg +0 -0
- data/doc/src/examples/images/image03.jpg +0 -0
- data/doc/src/examples/images/image04.jpg +0 -0
- data/doc/src/examples/images/image05.jpg +0 -0
- data/doc/src/examples/images/image06.jpg +0 -0
- data/doc/src/examples/images/image07.jpg +0 -0
- data/doc/src/examples/images/image08.jpg +0 -0
- data/doc/src/examples/images/image09.jpg +0 -0
- data/doc/src/examples/images/image10.jpg +0 -0
- data/doc/src/examples/images/image11.jpg +0 -0
- data/doc/src/examples/images/image12.jpg +0 -0
- data/doc/src/examples/images/image13.jpg +0 -0
- data/doc/src/examples/images/image14.jpg +0 -0
- data/doc/src/examples/images/image15.jpg +0 -0
- data/doc/src/examples/images/image16.jpg +0 -0
- data/doc/src/examples/images/image17.jpg +0 -0
- data/doc/src/examples/images/image18.jpg +0 -0
- data/doc/src/examples/index.page +18 -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 +71 -0
- data/doc/src/examples/website_styles/plain.page +5 -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/features.page +16 -14
- data/doc/src/images/bodybg.jpg +0 -0
- data/doc/src/images/footerbg.jpg +0 -0
- data/doc/src/images/menuhover.jpg +0 -0
- data/doc/src/images/node_diagram.svg +7132 -0
- data/doc/src/images/thumb_example.jpg +0 -0
- data/doc/src/images/thumb_example_cropped.jpg +0 -0
- data/doc/src/images/thumb_example_normal.jpg +0 -0
- data/doc/src/index.page +14 -102
- data/doc/src/news.page +154 -0
- data/doc/src/plugin.template +10 -0
- data/lib/webgen/cli.rb +427 -0
- data/lib/webgen/composite.rb +11 -11
- data/lib/webgen/config.rb +52 -0
- data/lib/webgen/content.rb +172 -0
- data/lib/webgen/extcommand.rb +23 -0
- data/lib/webgen/languages.rb +110 -0
- data/lib/webgen/listener.rb +1 -1
- data/lib/webgen/node.rb +196 -124
- data/lib/webgen/plugin.rb +480 -144
- data/lib/webgen/plugins/{contenthandlers → contentconverters}/default.rb +10 -9
- data/lib/webgen/plugins/{contenthandlers → contentconverters}/html.rb +11 -8
- data/lib/webgen/plugins/contentconverters/markdown.rb +54 -0
- data/lib/webgen/plugins/{contenthandlers → contentconverters}/rdoc.rb +16 -12
- data/lib/webgen/plugins/{contenthandlers → contentconverters}/textile.rb +18 -13
- data/lib/webgen/plugins/contentconverters/xmlbuilder.rb +58 -0
- data/lib/webgen/plugins/coreplugins/configuration.rb +11 -102
- data/lib/webgen/plugins/coreplugins/resourcemanager.rb +95 -74
- data/lib/webgen/plugins/filehandlers/copy.rb +41 -19
- data/lib/webgen/plugins/filehandlers/directory.rb +52 -50
- data/lib/webgen/plugins/filehandlers/filehandler.rb +370 -123
- data/lib/webgen/plugins/filehandlers/gallery.rb +368 -117
- data/lib/webgen/plugins/filehandlers/page.rb +160 -146
- data/lib/webgen/plugins/filehandlers/template.rb +65 -52
- data/lib/webgen/plugins/htmlvalidators/default.rb +9 -7
- data/lib/webgen/plugins/htmlvalidators/xmllint.rb +17 -33
- data/lib/webgen/plugins/menustyles/default.rb +27 -25
- data/lib/webgen/plugins/menustyles/horizontal.rb +22 -41
- data/lib/webgen/plugins/menustyles/horizontal_dropdown.rb +25 -39
- data/lib/webgen/plugins/menustyles/section.rb +68 -0
- data/lib/webgen/plugins/menustyles/vertical.rb +36 -56
- data/lib/webgen/plugins/menustyles/vertical_dropdown.rb +24 -32
- data/lib/webgen/plugins/miscplugins/smileyreplacer.rb +20 -17
- data/lib/webgen/plugins/miscplugins/syntax_highlighter.rb +72 -0
- data/lib/webgen/plugins/miscplugins/treewalker.rb +9 -36
- data/lib/webgen/plugins/tags/block.rb +65 -0
- data/lib/webgen/plugins/tags/breadcrumbtrail.rb +15 -11
- data/lib/webgen/plugins/tags/date.rb +11 -7
- data/lib/webgen/plugins/tags/download.rb +38 -38
- data/lib/webgen/plugins/tags/executecommand.rb +30 -15
- data/lib/webgen/plugins/tags/includefile.rb +26 -13
- data/lib/webgen/plugins/tags/langbar.rb +23 -18
- data/lib/webgen/plugins/tags/menu.rb +49 -70
- data/lib/webgen/plugins/tags/meta.rb +12 -9
- data/lib/webgen/plugins/tags/relocatable.rb +41 -13
- data/lib/webgen/plugins/tags/sitemap.rb +32 -28
- data/lib/webgen/plugins/tags/tag_processor.rb +279 -0
- data/lib/webgen/plugins/tags/wikilink.rb +25 -20
- data/lib/webgen/test.rb +202 -0
- data/lib/webgen/website.rb +310 -0
- data/test/fixtures/sample_site/src/chained.template +3 -0
- data/test/fixtures/sample_site/src/default.template +3 -0
- data/test/fixtures/sample_site/src/dir1/dir11/file111.de.page +3 -0
- data/test/fixtures/sample_site/src/dir1/dir11/file111.page +3 -0
- data/test/fixtures/sample_site/src/dir1/dir11/index.page +3 -0
- data/test/fixtures/sample_site/src/dir1/file11.page +3 -0
- data/test/fixtures/sample_site/src/dir2/file21.page +3 -0
- data/test/fixtures/sample_site/src/embedded.rhtml +1 -0
- data/test/fixtures/sample_site/src/file1.page +8 -0
- data/test/fixtures/sample_site/src/file2.de.page +6 -0
- data/test/fixtures/sample_site/src/index.de.page +4 -0
- data/test/fixtures/sample_site/src/index.en.page +1 -0
- data/test/fixtures/sample_site/src/invalid.template +3 -0
- data/test/fixtures/sample_site/src/test.jpg +1 -0
- data/test/fixtures/sample_site/src/test.template +3 -0
- data/test/fixtures/tc_content/blocks.yaml +40 -0
- data/test/fixtures/tc_content/correct.yaml +65 -0
- data/test/fixtures/tc_content/incorrect.yaml +42 -0
- data/test/fixtures/tc_filehandler_filehandler/backing/metainfo.yaml +9 -0
- data/test/fixtures/tc_filehandler_filehandler/backing_empty/metainfo.yaml +6 -0
- data/test/fixtures/tc_filehandler_filehandler/sample_plugin.rb +49 -0
- data/test/fixtures/tc_filehandler_filehandler/unmodified +0 -0
- data/test/fixtures/tc_filehandler_gallery/test.gallery +2 -0
- data/test/fixtures/tc_filehandler_gallery/test1.gallery +2 -0
- data/test/fixtures/tc_filehandler_gallery/test1.jpg +0 -0
- data/test/fixtures/tc_filehandler_gallery/test2.jpg +0 -0
- data/test/fixtures/tc_filehandler_gallery/test3.jpg +0 -0
- data/test/fixtures/tc_filehandler_gallery/test4.jpg +0 -0
- data/test/fixtures/tc_filehandler_page/testdata.yaml +10 -0
- data/test/fixtures/tc_menustyles_default/menustyle.rb +7 -0
- data/test/fixtures/tc_node/nodes.yaml +64 -0
- data/test/fixtures/tc_plugin/handlerplugin.rb +15 -0
- data/test/fixtures/tc_plugin/plugin1.rb +33 -0
- data/test/fixtures/tc_plugin/plugin2.rb +8 -0
- data/test/fixtures/tc_tags_includefile/testfile +1 -0
- data/test/fixtures/tc_tags_tag_processor/test_file1 +1 -0
- data/test/fixtures/tc_tags_tag_processor/testtag.rb +17 -0
- data/test/fixtures/tc_website/correct.yaml +6 -0
- data/test/fixtures/tc_website/incorrect_structure.yaml +2 -0
- data/test/fixtures/tc_website/incorrect_yaml.yaml +5 -0
- data/test/fixtures/tc_website/meta_info_test.yaml +10 -0
- data/test/fixtures/tc_website/testdir/README +1 -0
- data/test/fixtures/tc_website/testdir/falsedir/README +1 -0
- data/test/runtests.rb +2 -0
- data/test/unittests/tc_composite.rb +82 -0
- data/test/unittests/tc_config.rb +18 -0
- data/test/unittests/tc_content.rb +88 -0
- data/test/unittests/tc_contentconverters_default.rb +13 -0
- data/test/unittests/tc_contentconverters_html.rb +16 -0
- data/test/unittests/tc_contentconverters_markdown.rb +22 -0
- data/test/unittests/tc_contentconverters_rdoc.rb +16 -0
- data/test/unittests/tc_contentconverters_textile.rb +22 -0
- data/test/unittests/tc_contentconverters_xmlbuilder.rb +22 -0
- data/test/unittests/tc_filehandler_copy.rb +65 -0
- data/test/unittests/tc_filehandler_directory.rb +134 -0
- data/test/unittests/tc_filehandler_filehandler.rb +294 -0
- data/test/unittests/tc_filehandler_gallery.rb +165 -0
- data/test/unittests/tc_filehandler_page.rb +183 -0
- data/test/unittests/tc_filehandler_template.rb +60 -0
- data/test/unittests/tc_htmlvalidators_default.rb +12 -0
- data/test/unittests/tc_htmlvalidators_xmllint.rb +19 -0
- data/test/unittests/tc_languages.rb +57 -0
- data/test/unittests/tc_listener.rb +72 -0
- data/test/unittests/tc_menustyles_default.rb +51 -0
- data/test/unittests/tc_menustyles_horizontal.rb +18 -0
- data/test/unittests/tc_menustyles_horizontal_dropdown.rb +18 -0
- data/test/unittests/tc_menustyles_section.rb +59 -0
- data/test/unittests/tc_menustyles_vertical.rb +79 -0
- data/test/unittests/tc_menustyles_vertical_dropdown.rb +18 -0
- data/test/unittests/tc_node.rb +202 -0
- data/test/unittests/tc_plugin.rb +214 -0
- data/test/unittests/tc_resourcemanager.rb +42 -0
- data/test/unittests/tc_smileyreplacer.rb +25 -0
- data/test/unittests/tc_syntax_highlighter.rb +30 -0
- data/test/unittests/tc_tags_block.rb +27 -0
- data/test/unittests/tc_tags_breadcrumbtrail.rb +22 -0
- data/test/unittests/tc_tags_date.rb +15 -0
- data/test/unittests/tc_tags_download.rb +32 -0
- data/test/unittests/tc_tags_executecommand.rb +37 -0
- data/test/unittests/tc_tags_includefile.rb +53 -0
- data/test/unittests/tc_tags_langbar.rb +42 -0
- data/test/unittests/tc_tags_menu.rb +50 -0
- data/test/unittests/tc_tags_meta.rb +19 -0
- data/test/unittests/tc_tags_relocatable.rb +66 -0
- data/test/unittests/tc_tags_sitemap.rb +33 -0
- data/test/unittests/tc_tags_tag_processor.rb +107 -0
- data/test/unittests/tc_tags_wikilink.rb +22 -0
- data/test/unittests/tc_treewalker.rb +44 -0
- data/test/unittests/tc_website.rb +188 -0
- metadata +829 -312
- data/bin/webgen-gallery-editor +0 -654
- data/bin/webgen-gui +0 -10
- data/data/webgen/website_templates/default/config.yaml +0 -2
- data/doc/plugin/clidesc.rb +0 -46
- data/doc/plugin/source.rb +0 -21
- data/doc/src/about.page +0 -22
- data/doc/src/documentation/cli.page +0 -12
- data/doc/src/documentation/plugins/contenthandlers/html.page +0 -11
- data/doc/src/documentation/plugins/contenthandlers/index.page +0 -7
- data/doc/src/documentation/plugins/contenthandlers/markdown.page +0 -11
- data/doc/src/documentation/plugins/contenthandlers/rdoc.page +0 -11
- data/doc/src/documentation/plugins/contenthandlers/textile.page +0 -11
- data/doc/src/documentation/plugins/coreplugins/configuration.page +0 -12
- data/doc/src/documentation/plugins/coreplugins/index.page +0 -7
- data/doc/src/documentation/plugins/coreplugins/logging.page +0 -13
- data/doc/src/documentation/plugins/coreplugins/resourcemanager.page +0 -34
- data/doc/src/documentation/plugins/filehandlers/backing.page +0 -46
- data/doc/src/documentation/plugins/filehandlers/copy.page +0 -12
- data/doc/src/documentation/plugins/filehandlers/directoryhandler.page +0 -35
- data/doc/src/documentation/plugins/filehandlers/gallery.page +0 -86
- data/doc/src/documentation/plugins/filehandlers/index.page +0 -34
- data/doc/src/documentation/plugins/filehandlers/page.page +0 -170
- data/doc/src/documentation/plugins/filehandlers/template.page +0 -21
- data/doc/src/documentation/plugins/gallerylayouters/index.page +0 -18
- data/doc/src/documentation/plugins/htmlvalidators/index.page +0 -6
- data/doc/src/documentation/plugins/htmlvalidators/xmllint.page +0 -14
- data/doc/src/documentation/plugins/menustyles/horizontal.page +0 -21
- data/doc/src/documentation/plugins/menustyles/index.page +0 -12
- data/doc/src/documentation/plugins/menustyles/partial.page +0 -27
- data/doc/src/documentation/plugins/menustyles/vertical.page +0 -32
- data/doc/src/documentation/plugins/menustyles/verticaldropdown.page +0 -23
- data/doc/src/documentation/plugins/miscplugins/index.page +0 -7
- data/doc/src/documentation/plugins/tags/breadcrumbtrail.page +0 -20
- data/doc/src/documentation/plugins/tags/date.page +0 -19
- data/doc/src/documentation/plugins/tags/download.page +0 -23
- data/doc/src/documentation/plugins/tags/executecommand.page +0 -18
- data/doc/src/documentation/plugins/tags/includefile.page +0 -15
- data/doc/src/documentation/plugins/tags/index.page +0 -44
- data/doc/src/documentation/plugins/tags/langbar.page +0 -27
- data/doc/src/documentation/plugins/tags/menu.de.page +0 -12
- data/doc/src/documentation/plugins/tags/menu.page +0 -19
- data/doc/src/documentation/plugins/tags/multilang.de.page +0 -4
- data/doc/src/documentation/plugins/tags/multilang.fr.page +0 -4
- data/doc/src/documentation/plugins/tags/multilang.page +0 -4
- data/doc/src/documentation/plugins/tags/relocatable.page +0 -16
- data/doc/src/documentation/plugins/tags/resource.page +0 -22
- data/doc/src/documentation/plugins/tags/sitemap.page +0 -17
- data/doc/src/documentation/plugins/tags/wikilink.page +0 -18
- data/doc/src/documentation/webgen_gallery_editor.page +0 -82
- data/doc/src/images/screenshots/wge-image.png +0 -0
- data/doc/src/images/screenshots/wge-layout-preview.png +0 -0
- data/doc/src/images/screenshots/wge-main-disabled.png +0 -0
- data/doc/src/images/screenshots/wge-main.png +0 -0
- data/doc/src/meta.info +0 -30
- data/doc/src/screenshots.gallery +0 -33
- data/install.rb +0 -19
- data/lib/webgen.rb +0 -277
- data/lib/webgen/plugins/contenthandlers/markdown.rb +0 -50
- data/lib/webgen/plugins/coreplugins/logging.rb +0 -101
- data/lib/webgen/plugins/filehandlers/backing.rb +0 -159
- data/lib/webgen/plugins/gallerylayouters/default.rb +0 -152
- data/lib/webgen/plugins/menustyles/partial.rb +0 -95
- data/lib/webgen/plugins/tags/tags.rb +0 -254
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Page Handler
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: PageFileHandler}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
Page description files are used to specify the actual content for the website. They contain the
|
|
12
|
-
content for the webpage and, optionally, meta information.
|
|
13
|
-
|
|
14
|
-
h2(#structure). File format
|
|
15
|
-
|
|
16
|
-
The format of these files is a very simple one and can be divided into two cases:
|
|
17
|
-
|
|
18
|
-
# Only content
|
|
19
|
-
# Meta information and content
|
|
20
|
-
|
|
21
|
-
A simple file may look like this:
|
|
22
|
-
<pre>
|
|
23
|
-
This is the content!!!
|
|
24
|
-
</pre>
|
|
25
|
-
|
|
26
|
-
Only content is specified in this file. Meta information can be specified at the beginning of the
|
|
27
|
-
file:
|
|
28
|
-
<pre>
|
|
29
|
-
\---
|
|
30
|
-
title: The title set by Meta info
|
|
31
|
-
\---
|
|
32
|
-
This is the content of the file
|
|
33
|
-
</pre>
|
|
34
|
-
|
|
35
|
-
In this example, meta information is specified ("more info":#meta). Note the three dashes at the
|
|
36
|
-
beginning of the file. This indicates that the following 'block' is used for meta information. If
|
|
37
|
-
the three dashes at the beginning are omitted, then the parser won't know that the following block
|
|
38
|
-
contains meta information and thinks it is content. If not specified, the default name for the
|
|
39
|
-
content block is @content@.
|
|
40
|
-
|
|
41
|
-
If you want to include a line in your file which only has three dashes, you have to write this:
|
|
42
|
-
<pre>
|
|
43
|
-
\\---
|
|
44
|
-
</pre>
|
|
45
|
-
|
|
46
|
-
The meta information is separated from the content by another three dashes and so the content itself
|
|
47
|
-
builds a second 'block'. The following examples contains three blocks, the meta information block
|
|
48
|
-
and two content blocks.
|
|
49
|
-
<pre>
|
|
50
|
-
\---
|
|
51
|
-
title: The title set by Meta info
|
|
52
|
-
\---
|
|
53
|
-
This is the 1. content of the file
|
|
54
|
-
\---
|
|
55
|
-
This is the 2. content of the file
|
|
56
|
-
</pre>
|
|
57
|
-
|
|
58
|
-
However, without naming blocks they cannot be accessed. You can specify the name and the content
|
|
59
|
-
formatting using meta information. Look at the following example:
|
|
60
|
-
<pre>
|
|
61
|
-
\---
|
|
62
|
-
title: The title set by Meta info
|
|
63
|
-
blocks:
|
|
64
|
-
- \{name: content, format: textile}
|
|
65
|
-
- \{name: sidebar, format: markdown}
|
|
66
|
-
\---
|
|
67
|
-
This is the 1. content of the file
|
|
68
|
-
\---
|
|
69
|
-
This is the 2. content of the file
|
|
70
|
-
</pre>
|
|
71
|
-
|
|
72
|
-
The first block in this file is named @content@ and formatted using @textile@. The second block is
|
|
73
|
-
named @sidebar@ and formatted using @markdown@.
|
|
74
|
-
|
|
75
|
-
h2. Content format
|
|
76
|
-
|
|
77
|
-
h3. Embedded Ruby (ERB)
|
|
78
|
-
|
|
79
|
-
Before the content is converted to HTML with a specific content handler, ERB is run over the
|
|
80
|
-
content. This allows one to add dynamic content to the web pages without using tags. Following is an
|
|
81
|
-
example of a page file which uses ERB:
|
|
82
|
-
|
|
83
|
-
<notextile>
|
|
84
|
-
<pre>
|
|
85
|
-
\---
|
|
86
|
-
title: Test page with ERB
|
|
87
|
-
\---
|
|
88
|
-
This page has the following meta info items:
|
|
89
|
-
<% node.metainfo.each do |key, value| %>
|
|
90
|
-
* <%=key %>: <%=value %>
|
|
91
|
-
<% end %>
|
|
92
|
-
</pre>
|
|
93
|
-
</notextile>
|
|
94
|
-
|
|
95
|
-
This would output all meta information for the current page. As one can see in the example, the node
|
|
96
|
-
for the current page can be accessed by using @node@. The parameter @useERB@ specifies if ERB should
|
|
97
|
-
be used. To provide more control, one can enable or disable ERB for a page file by setting the meta
|
|
98
|
-
information @useERB@ to @true@ or @false@.
|
|
99
|
-
|
|
100
|
-
The template will always be processed with ERB!
|
|
101
|
-
|
|
102
|
-
h3. Format
|
|
103
|
-
|
|
104
|
-
The content of page description can be written in different formats. Have a look at the
|
|
105
|
-
<a href="{relocatable: ../contenthandlers}">Content Handlers</a> to get an overview of the existing
|
|
106
|
-
formats.
|
|
107
|
-
|
|
108
|
-
h2. Default settings
|
|
109
|
-
|
|
110
|
-
As page description files need not have meta information, defaults are used for needed parameters.
|
|
111
|
-
If meta information is specified in a page description file, the default values are overridden.
|
|
112
|
-
|
|
113
|
-
The following defaults are used:
|
|
114
|
-
|
|
115
|
-
* Content format and name
|
|
116
|
-
|
|
117
|
-
If there is only one content in a page description file, its formatting defaults to the parameter
|
|
118
|
-
value @defaultContentFormat@ and it is named @content@.
|
|
119
|
-
|
|
120
|
-
* Title, ordering and language
|
|
121
|
-
|
|
122
|
-
These values are taken from the filename, so the filename of a page description file has to be
|
|
123
|
-
formatted like this: @[ordering.]name[.language].page@ (the values in square brackets are
|
|
124
|
-
optional). In detail:
|
|
125
|
-
* ordering: The ordering is a number which is used for menu generation and the like, where it is
|
|
126
|
-
necessary to order the items. If not specified, defaults to @0@.
|
|
127
|
-
* name: This is used for the title of the page. Hyphens and underscores are replaced with spaces
|
|
128
|
-
and @name@ must not contain any dots. Also: if two page descriptions files have the same
|
|
129
|
-
@name@ part, they should define the same content for different languages as webgen consideres
|
|
130
|
-
them as "one" page file in two languages.
|
|
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@.
|
|
135
|
-
|
|
136
|
-
Consider the following examples:
|
|
137
|
-
* @name.page@ -> title: Name, language: en, ordering: 0
|
|
138
|
-
* @name.de.page@ -> title: Name, language: de, ordering: 0
|
|
139
|
-
* @01.name_of-file.de.page@ -> Title: Name of file, language: de, ordering: 01
|
|
140
|
-
|
|
141
|
-
Notice: The first two examples define content for two different languages (en and de) as they have
|
|
142
|
-
the same @name@ part.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
h2(#naming). Referencing page description files
|
|
146
|
-
|
|
147
|
-
The output name of page description files can be specified using the parameter @outputNameStyle@. If
|
|
148
|
-
you want to reference a page description file, you can use this output name (e.g. @name.de.html@).
|
|
149
|
-
However, if you want to change the @outputNameStyle@ parameter later or set the parameter
|
|
150
|
-
@defaultLangInFilename@, this link (@name.de.html@) will not work anymore.
|
|
151
|
-
|
|
152
|
-
Therefore, each page description file can be referenced by specifing the name
|
|
153
|
-
<code>[name_of_page_desc_file].[language].page</code> (e.g. @name.de.page@ instead of
|
|
154
|
-
@name.de.html@). However, most of the time, you do not want to explicitly specify the @lang@ part in
|
|
155
|
-
this standardified name because you want to reference the page description file and display it in
|
|
156
|
-
the currently used language. Thus you can also use <code>[name_of_page_desc_file].page</code> (e.g.
|
|
157
|
-
@name.page@). This will always reference the page description file in the correct language!
|
|
158
|
-
|
|
159
|
-
I could have used the extension @html@ instead of @page@, but I think the latter is better because
|
|
160
|
-
the output files need not have to have the extension @html@.
|
|
161
|
-
|
|
162
|
-
h2(#meta). Meta Information
|
|
163
|
-
|
|
164
|
-
Meta information can be specified at the beginning of the file as described "here":#structure. Meta
|
|
165
|
-
information is formatted using YAML, a simple markup language. For more information about YAML, have
|
|
166
|
-
a look at the "www.yaml.org":http://www.yaml.org!
|
|
167
|
-
|
|
168
|
-
Any information can be specified. The most important use for meta information is to override values
|
|
169
|
-
like the title of the page (e.g. if you want dots in it), the ordering and so on. It is also used to
|
|
170
|
-
specify the names and the formatting of content blocks in the file.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Template File Handler
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: TemplateFileHandler}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The template file handler processes the templates for the page description files. Templates normally
|
|
12
|
-
specify the layout of the website. For this website only one template was used for all page
|
|
13
|
-
description files. However, you could assign each page description file its own template, if you
|
|
14
|
-
want to! (but why would one do that? :-)
|
|
15
|
-
|
|
16
|
-
You must have at least one template file in the root of the source directory which is the fallback
|
|
17
|
-
template if no other template can be found for a page description file. The template files are
|
|
18
|
-
organized hierarchically. So if during processing webgen does not find the default template file in
|
|
19
|
-
the directory in which the page file is, it searches the parent directory for the template. If it
|
|
20
|
-
isn't there either, it searches the parent's parent directory and so on. If webgen gets to the root
|
|
21
|
-
of the source directory and could not find a template, it will complain and stop.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
directoryName: Gallery Layouters
|
|
3
|
-
---
|
|
4
|
-
h2. Information
|
|
5
|
-
|
|
6
|
-
<notextile>{describe: DefaultGalleryLayouter}</notextile>
|
|
7
|
-
|
|
8
|
-
h2. Description
|
|
9
|
-
|
|
10
|
-
Gallery layouters are used to define layouts for galleries. Each plugin defines how the main page,
|
|
11
|
-
the gallery pages and the image pages look like. To do this, each plugin has to define three methods:
|
|
12
|
-
|
|
13
|
-
* <tt>main( data )</tt>
|
|
14
|
-
* <tt>gallery( data, gIndex )</tt>
|
|
15
|
-
* <tt>image( data, gIndex, iIndex )</tt>
|
|
16
|
-
|
|
17
|
-
The @data@ parameter is a @Hash@ with all the information available about the gallery. The @gIndex@
|
|
18
|
-
and the @iIndex@ parameters are indices for the current gallery and the current image.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: xmllint HTML Validator
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: XmllintHTMLValidator}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
This plugin uses the @xmllint@ program from the "libxml2":http://www.xmlsoft.org package. @xmllint@
|
|
12
|
-
can be used to validate an XML file against a DTD, a RelaxNG schema or a WXS schema. For more
|
|
13
|
-
information about where to put the DTD or schema files, have a look at the @libxml2@ documentation
|
|
14
|
-
that comes bundled.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Horizontal
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: HorizontalMenuStyle}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
Builds a horizontal menu; each menu level gets its own menu bar.
|
|
12
|
-
|
|
13
|
-
h2. Example
|
|
14
|
-
|
|
15
|
-
Basic menu as it appears by default, nothing styled additionally with CSS:
|
|
16
|
-
|
|
17
|
-
<notextile>{menu: {menuStyle: horizontal}}</notextile>
|
|
18
|
-
|
|
19
|
-
The same menu with a little CSS magic:
|
|
20
|
-
|
|
21
|
-
<notextile>{menu: {menuStyle: horizontal, options: {divClass: horiz-menu}}}</notextile>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
directoryName: Menu Styles
|
|
3
|
-
---
|
|
4
|
-
h2. Information
|
|
5
|
-
|
|
6
|
-
<notextile>{describe: DefaultMenuStyle}</notextile>
|
|
7
|
-
|
|
8
|
-
h2. Description
|
|
9
|
-
|
|
10
|
-
Menu Styles are used to build different types of menus. Some web sites use vertical menus on the
|
|
11
|
-
left or right side, some horizontal menus at the top. It's up to you to chose the best suited
|
|
12
|
-
menu style for your website!
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Partial
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: PartialMenuStyle}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
Builds a simple menu showing only the menu levels under the current page. This means that if you are
|
|
12
|
-
in the third level of the hierarchy, the first two menu levels are not shown.
|
|
13
|
-
|
|
14
|
-
h2. Style Advice
|
|
15
|
-
|
|
16
|
-
The menu is constructed using HTML lists with @ul@ and @li@ tags. However, the menu looks better if
|
|
17
|
-
no discs are shown for the menu items (using <code>list-style-type: none</code>).
|
|
18
|
-
|
|
19
|
-
h2. Examples
|
|
20
|
-
|
|
21
|
-
Basic menu as it appears by default, nothing styled additionally with CSS:
|
|
22
|
-
|
|
23
|
-
<notextile>{menu: {menuStyle: partial}}</notextile>
|
|
24
|
-
|
|
25
|
-
The same menu with a little CSS magic:
|
|
26
|
-
|
|
27
|
-
<notextile>{menu: {menuStyle: partial, options: {divClass: partial-menu}}}</notextile>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Vertical
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: VerticalMenuStyle}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
Builds a simple vertical menu. This is the most basic of all menus. Use the various parameters to
|
|
12
|
-
change how many menu levels should be shown.
|
|
13
|
-
|
|
14
|
-
h2. Style Advice
|
|
15
|
-
|
|
16
|
-
The menu is constructed using HTML lists with @ul@ and @li@ tags. However, the menu looks better if
|
|
17
|
-
no discs are shown for the menu items (using <code>list-style-type: none</code>).
|
|
18
|
-
|
|
19
|
-
h2. Examples
|
|
20
|
-
|
|
21
|
-
Basic menu as it appears by default, nothing styled additionally with CSS:
|
|
22
|
-
|
|
23
|
-
<notextile>{menu: {menuStyle: vertical}}</notextile>
|
|
24
|
-
|
|
25
|
-
The same menu with a little CSS magic:
|
|
26
|
-
|
|
27
|
-
<notextile>{menu: {menuStyle: vertical, options: {divClass: vert-menu}}}</notextile>
|
|
28
|
-
|
|
29
|
-
Examples of the menu with other parameter settings
|
|
30
|
-
|
|
31
|
-
table{border: 1px solid black}.
|
|
32
|
-
|^. \{menu: {menuStyle: vertical, options: {subtreeLevel: 1}}}{menu: {menuStyle: vertical, options: {subtreeLevel: 1}}}|^. \{menu: {menuStyle: vertical, options: {subtreeLevel: 4, showCurrentSubtreeOnly: false}}} {menu: {menuStyle: vertical, options: {subtreeLevel: 4, showCurrentSubtreeOnly: false}}}|
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Vertical Dropdown
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: VerticalDropdownMenuStyle}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
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: horizontaldropdown.page}">Horizontal
|
|
13
|
-
Dropdown</a> page also applies for this menu style.
|
|
14
|
-
|
|
15
|
-
h2. Example
|
|
16
|
-
|
|
17
|
-
Basic menu as it appears by default, nothing styled additionally with CSS:
|
|
18
|
-
|
|
19
|
-
<notextile>{menu: {menuStyle: vertical-dropdown}}</notextile>
|
|
20
|
-
|
|
21
|
-
The same menu with a little CSS magic:
|
|
22
|
-
|
|
23
|
-
<notextile>{menu: {menuStyle: vertical-dropdown, options: {divClass: vert-dd-menu}}}</notextile>
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Date
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: DateTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The date tag is used to display the current time in a specific format. You can see how the default
|
|
12
|
-
output looks like in the footer.
|
|
13
|
-
|
|
14
|
-
h2. Examples
|
|
15
|
-
|
|
16
|
-
table{border:1px solid black}.
|
|
17
|
-
|_.Command|_.Output|
|
|
18
|
-
|\{date: {format: %Y-%m-%d %H:%M:%S}}|{date: {format: %Y-%m-%d %H:%M:%S}}|
|
|
19
|
-
|\{date: {format: %x - %X}}|{date: {format: %y - %X}}|
|
|
@@ -1,23 +0,0 @@
|
|
|
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>|
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Execute Command
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: ExecuteCommandTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The execute command tag is used to include the output from a shell command.
|
|
12
|
-
|
|
13
|
-
h2. Examples
|
|
14
|
-
|
|
15
|
-
table{border:1px solid black}.
|
|
16
|
-
|_.Command|_.Output|
|
|
17
|
-
|\{execute: ls}|<pre class="webgen-file">{execute: ls}</pre>|
|
|
18
|
-
|\{execute: uname -p}|<pre class="webgen-file">{execute: uname -p}</pre>|
|