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
data/doc/src/default.template
CHANGED
|
@@ -1,56 +1,109 @@
|
|
|
1
|
+
--- content, html
|
|
1
2
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
3
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
3
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
|
|
4
5
|
<head>
|
|
5
|
-
<title>webgen -
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>webgen - {title:}</title>
|
|
7
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
8
|
+
<meta name="description" content="webgen is used for generating static websites." />
|
|
9
9
|
<meta name="Keywords" content="webgen, static web site generator, ruby, HTML, dynamic tags, plugin based, static web, web generator, site generator" />
|
|
10
|
+
<meta name="author" content="Thomas Leitner / Original design by Andreas Viklund - http://andreasviklund.com" />
|
|
11
|
+
<link rel="stylesheet" href="{relocatable: default.css}" type="text/css" media="screen" />
|
|
12
|
+
<link rel="stylesheet" href="{resource: {name: webgen-css, insert: :path}}" type="text/css" media="screen" />
|
|
10
13
|
</head>
|
|
14
|
+
|
|
11
15
|
<body>
|
|
12
|
-
<div id="
|
|
13
|
-
|
|
14
|
-
<div id="
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</tr>
|
|
21
|
-
</table>
|
|
16
|
+
<div id="container">
|
|
17
|
+
|
|
18
|
+
<div id="sitename">
|
|
19
|
+
<a href="http://webgen.rubyforge.org">
|
|
20
|
+
<img src="{resource: webgen-logo}" alt="webgen logo" style="margin-top: 20px; padding-right: 10px; float: left"/>
|
|
21
|
+
</a>
|
|
22
|
+
<h1>webgen / static website generator</h1>
|
|
23
|
+
<h2>static website generation made easy!</h2>
|
|
22
24
|
</div>
|
|
23
25
|
|
|
24
|
-
<div id="
|
|
25
|
-
|
|
26
|
-
<span class="right">Language: {langbar: }</span>
|
|
27
|
-
<span class="right">Feedback: {wikilink: {rootURL: http://webgen.rubyforge.org/wiki/wiki.pl?, title: Click here}}</span>
|
|
28
|
-
<span class="right">{source: }</span>
|
|
29
|
-
<div style="clear:both"></div>
|
|
26
|
+
<div id="mainmenu">
|
|
27
|
+
{menu: {menuStyle: vertical, options: {startLevel: 1, maxLevels: 1}}}
|
|
30
28
|
</div>
|
|
31
29
|
|
|
32
|
-
<div id="
|
|
33
|
-
<div id="quickmenu">Directory quick menu: {menu: {menuStyle: partial, options: {divClass: partial-menu}}}</div>
|
|
30
|
+
<div id="wrap">
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
<div id="leftside">
|
|
33
|
+
<% if node.level > 1 %>
|
|
34
|
+
<h1>Sub Menu</h1>
|
|
35
|
+
{menu: {menuStyle: vertical, options: {startLevel: 2, maxLevels: 3}}}
|
|
36
|
+
<% end %>
|
|
37
|
+
|
|
38
|
+
<% if node.node_info[:pagedata].blocks.has_key?( 'sidebar' ) %>
|
|
39
|
+
{block: sidebar}
|
|
40
|
+
<% end %>
|
|
41
|
+
<h1>Tips</h1>
|
|
42
|
+
<ul class="list">
|
|
43
|
+
<li>The <a href="{relocatable: /documentation/gettingstarted.en.page}">Getting Started</a> page contains everything one needs to get going with webgen!</li>
|
|
44
|
+
<li>Descriptions for plugins can be found in the <a href="{relocatable:documentation/plugins}">plugins section</a></li>
|
|
45
|
+
</ul>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div id="rightside">
|
|
49
|
+
<h1>Latest news</h1>
|
|
50
|
+
<p><strong>2007-01-05: </strong>
|
|
51
|
+
webgen 0.4.0 released! Major update to the core and plugins and many new features added!
|
|
52
|
+
<a href="{relocatable: news.en.page#news-2007-01-05}">More...</a>
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
<h1>Links</h1>
|
|
56
|
+
<ul class="linklist">
|
|
57
|
+
<li><a href="http://rubyforge.org/projects/webgen">webgen on Rubyforge</a></li>
|
|
58
|
+
<li><a href="http://rubyforge.org/frs/?group_id=296">webgen downloads</a></li>
|
|
59
|
+
<li><a href="{relocatable: api.html}">webgen API</a></li>
|
|
60
|
+
<li><a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl">Ruby Windows Installer</a></li>
|
|
61
|
+
<li><a href="http://www.ruby-lang.org">Ruby Homepage</a></li>
|
|
62
|
+
</ul>
|
|
63
|
+
|
|
64
|
+
<div class="center"><a href="http://webgen.rubyforge.org"><img src="{resource: webgen-generated}" alt="Generated by webgen"/></a></div>
|
|
65
|
+
|
|
66
|
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div class="center" style="margin-top: 15px">
|
|
67
|
+
<input type="hidden" name="cmd" value="_s-xclick" />
|
|
68
|
+
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" style="border:0px" name="submit" alt="Donate with PayPal!" />
|
|
69
|
+
<img alt="" style="border:0px" src="https://www.paypal.com/de_DE/i/scr/pixel.gif" width="1" height="1" />
|
|
70
|
+
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYC7TJXPkmFIuY9/ESRQGuZSvhdTA2kEFhx++CzQECAP7Ed9IRXaaeAIHw1/aDyBucuTgi3N2O1amoNphQJEtbrRGUw2vsADvxMaXhg2O8bin9nqyLudUNXDMuP2nPe0RM0ws/rNYBFT29eLNcsckfdeQDZ9yWCX7hmP6XuOJkZ3FjELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIeEtaSEI16DiAgZhmOat9rI+lAo1vbPD90pv70WUhRDblC8wgX70up4ek8fmWPFvYyoTf3OGN3Z0GYlR6UYN7asKVDDtDol1OrwfTP495zn5JcCQllf+AKHXNZtJNh4GbGekQ6X8Wcb4mNfAOjaGJSLagGbjaZROx9TQtil+P5HRhbJYqtNf0ERtZy0GSoyF4lfpsfw0L+SjlP7Ne9fUUVezONaCCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbTAeFw0wNDAyMTMxMDEzMTVaFw0zNTAyMTMxMDEzMTVaMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwUdO3fxEzEtcnI7ZKZL412XvZPugoni7i7D7prCe0AtaHTc97CYgm7NsAtJyxNLixmhLV8pyIEaiHXWAh8fPKW+R017+EmXrr9EaquPmsVvTywAAE1PMNOKqo2kl4Gxiz9zZqIajOm1fZGWcGS0f5JQ2kBqNbvbg2/Za+GJ/qwUCAwEAAaOB7jCB6zAdBgNVHQ4EFgQUlp98u8ZvF71ZP1LXChvsENZklGswgbsGA1UdIwSBszCBsIAUlp98u8ZvF71ZP1LXChvsENZklGuhgZSkgZEwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA3MDEwMzE5MzYyMFowIwYJKoZIhvcNAQkEMRYEFBUjK2YLXmzARmhGUzhXDNy8jA04MA0GCSqGSIb3DQEBAQUABIGAcr8Oy7SW7w74fKrc1e53K1OkDUBwEHSyY+ktCq7kSZ+pt0tjlB/lTwqWGm+l7qpDjD3skC2zdkSnYwW/ULvxQ3P01hDsTWp6LOTJDptEDCxtM1ItBrQE0H4TRmGSR5JIDzLC7CuPH/zlOqKExtiDQ7zwn8nGl4M2+Ot6X9M6JrI=-----END PKCS7-----
|
|
71
|
+
" />
|
|
72
|
+
</div></form>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div id="navbar" class="content">
|
|
76
|
+
<span class="leftbox">Location: {breadcrumbTrail: } </span>
|
|
77
|
+
<span class="rightbox">Language: {langbar: }</span>
|
|
78
|
+
<span class="rightbox">Feedback: {wikilink: {rootURL: http://webgen.rubyforge.org/wiki/wiki.pl?, linkText: Click here}}</span>
|
|
79
|
+
<div style="clear: both"> </div>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<div id="content" class="content">
|
|
83
|
+
<% if !node.node_info[:pagesections].empty? %>
|
|
84
|
+
<div id="inpage-menu">
|
|
85
|
+
<p style="text-align: center"><b>Page Menu</b></p>
|
|
86
|
+
{menu: {menuStyle: section}}
|
|
87
|
+
</div>
|
|
88
|
+
<% end %>
|
|
89
|
+
{block: content}
|
|
90
|
+
</div>
|
|
91
|
+
<div class="clearingdiv"> </div>
|
|
38
92
|
|
|
39
|
-
<div id="footer" class="bar">
|
|
40
|
-
<a href="http://validator.w3.org/check?uri=referer"><img src="{resource: w3c-valid-xhtml11}" alt="Valid XHTML 1.1!" height="31" width="88" /></a>
|
|
41
|
-
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="{resource: w3c-valid-css}" alt="Valid CSS!" height="31" width="88" /></a>
|
|
42
|
-
<a href="http://webgen.rubyforge.org"><img src="{resource: webgen-generated}" alt="Generated by webgen" height="31" width="88"/></a> on <b>{date: }</b>
|
|
43
93
|
</div>
|
|
44
94
|
</div>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
95
|
+
<div id="footer">© 2006 Thomas Leitner | generated by <a href="http://webgen.rubyforge.org">webgen</a> | Design by <a href="http://andreasviklund.com">Andreas Viklund</a> / adapted by Thomas Leitner</div>
|
|
96
|
+
|
|
97
|
+
<!-- Start of StatCounter Code -->
|
|
98
|
+
<script type="text/javascript">
|
|
99
|
+
var sc_project=648325;
|
|
100
|
+
var sc_partition=5;
|
|
101
|
+
var sc_security="7d00de1e";
|
|
102
|
+
var sc_invisible=1;
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c6.statcounter.com/counter.php?sc_project=648325&java=0&security=7d00de1e&invisible=1" alt="free geoip" /></a></div></noscript>
|
|
106
|
+
<!-- End of StatCounter Code -->
|
|
107
|
+
|
|
55
108
|
</body>
|
|
56
109
|
</html>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Extending webgen
|
|
3
3
|
inMenu: true
|
|
4
|
-
orderInfo: 21
|
|
5
4
|
---
|
|
6
5
|
h2. Extending webgen
|
|
7
6
|
|
|
@@ -22,7 +21,7 @@ a string.
|
|
|
22
21
|
h3. Normal plugins (new tags, file handlers, etc)
|
|
23
22
|
|
|
24
23
|
As webgen is plugin-based, it can be extended very easily. A simple example is shown in the
|
|
25
|
-
<a href="{relocatable: gettingstarted.page#
|
|
24
|
+
<a href="{relocatable: gettingstarted.page#website-plugin}">Getting Started</a> guide.
|
|
26
25
|
|
|
27
26
|
If you want more sophisticated examples of plugins, have a look at webgen itself and the plugins
|
|
28
27
|
that get shipped with it. They can be found in the directory @lib/webgen/plugins/@!
|
|
@@ -1,53 +1,167 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Getting Started
|
|
3
3
|
inMenu: true
|
|
4
|
-
orderInfo: 10
|
|
5
4
|
---
|
|
6
|
-
h1.
|
|
5
|
+
h1(#basics). Basics
|
|
7
6
|
|
|
8
|
-
h2. The Needed Directories
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
webgen command is issued.
|
|
8
|
+
h2(#directories). The Needed Directories
|
|
12
9
|
|
|
13
|
-
* @src@: The source directory in which all the source files for the website are.
|
|
14
10
|
|
|
11
|
+
webgen needs a special directory structure so that it can work correctly. Basically, you have a
|
|
12
|
+
website directory under which the following directories have to be:
|
|
13
|
+
|
|
14
|
+
* @src@: The source directory in which all the source files for the website are. The name of this
|
|
15
|
+
directory cannot be changed!
|
|
15
16
|
* @output@: This directory is created, if it does not exist, when webgen is run. All the output
|
|
16
|
-
|
|
17
|
+
files are put into this directory. The name of this directory and its location can be customized
|
|
18
|
+
using the parameter {param: Core/Configuration:outDir}.
|
|
19
|
+
* @plugin@: The extension directory. You can put self-written plugins into this directory so that
|
|
20
|
+
they can be used by webgen. All <notextile><tt>*.rb</tt></notextile> files in this directory and
|
|
21
|
+
its subdirectories are loaded as plugins. The name of this directory can't be customized, too!
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
directory where the log files will be. It will be created if it does not exist.
|
|
23
|
+
The directory in which these directories are in is called the *website directory*.
|
|
20
24
|
|
|
21
|
-
* @plugin@: The extension directory. You can put self-written plugins into this directory so that
|
|
22
|
-
they can be used by webgen. All <tt>*.rb</tt> files in this directory and its
|
|
23
|
-
subdirectories are loaded as plugins.
|
|
24
25
|
|
|
25
|
-
h2.
|
|
26
|
+
h2(#cmdline). The @webgen@ Command
|
|
27
|
+
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
The executable for webgen is called... webgen ;-) It uses a command style syntax (like Subversion's
|
|
30
|
+
@svn@ or Rubygem's @gem@ commands) through the "cmdparse":http://cmdparse.rubyforge.org library. To
|
|
31
|
+
get an overview of the possible commands run
|
|
32
|
+
|
|
33
|
+
<pre>
|
|
34
|
+
$ webgen help
|
|
35
|
+
</pre>
|
|
28
36
|
|
|
29
|
-
|
|
37
|
+
This will output something like this:
|
|
30
38
|
|
|
31
39
|
<pre>
|
|
32
|
-
|
|
40
|
+
Usage: webgen [options] COMMAND [options] [COMMAND [options] ...] [args]
|
|
41
|
+
|
|
42
|
+
Available commands:
|
|
43
|
+
check Checks things like validity of the config file or the availability of optional libraries
|
|
44
|
+
config Checks the validity of the configuration and outputs the used options (=default command)
|
|
45
|
+
libs Checks the availability of optional libraries used by plugins
|
|
46
|
+
create Creates the basic directories and files for webgen.
|
|
47
|
+
help Provide help for individual commands
|
|
48
|
+
run Runs webgen, ie. generates the HTML files (=default command)
|
|
49
|
+
show Shows various information
|
|
50
|
+
config Shows information like the parameters for all or the matched plugins
|
|
51
|
+
plugins Shows the available plugins
|
|
52
|
+
use Changes the used website or gallery styles
|
|
53
|
+
gallery_style Changes the used gallery style
|
|
54
|
+
website_style Changes the used website style
|
|
55
|
+
version Show the version of the program
|
|
56
|
+
|
|
57
|
+
Global options:
|
|
58
|
+
-d, --directory DIR The website directory, if none specified, current directory is used.
|
|
59
|
+
-V, --verbosity LEVEL The verbosity level (0-3)
|
|
60
|
+
-h, --help Show help
|
|
61
|
+
-v, --version Show the version of the program
|
|
62
|
+
</pre>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
As you can see, webgen supports many commands, from checking the validity of the configuration and
|
|
66
|
+
the available libraries to displaying the configuration values. However, the main command is the
|
|
67
|
+
@run@ command which does the actual website generation. This command uses the current working
|
|
68
|
+
directory as website directory if none was specified via the @-d@ option.
|
|
69
|
+
|
|
70
|
+
For more information on how the commands work have a look at the
|
|
71
|
+
"cmdparse":http://cmdparse.rubyforge.org documentation!
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
h2(#config). Configuration
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
webgen provides a default configuration out of the box. If you can live with that, you do not need
|
|
78
|
+
to write any configuration files. Because most people cannot, you can use your own configuration
|
|
79
|
+
file. The configuration file has to be written in YAML and is called @config.yaml@. webgen assumes
|
|
80
|
+
it to be in the website directory.
|
|
81
|
+
|
|
82
|
+
Each plugin can specify parameters which can be configured through the configuration file. You can
|
|
83
|
+
display a list of all available parameters by running
|
|
84
|
+
|
|
85
|
+
<pre>
|
|
86
|
+
$ webgen show config
|
|
87
|
+
</pre>
|
|
88
|
+
|
|
89
|
+
(This information is also provided on this website, have a look at the
|
|
90
|
+
<a href="{relocatable: plugins}">plugins section</a>!)
|
|
91
|
+
|
|
92
|
+
The list shows sorted by the plugin name the current values and the default values for each
|
|
93
|
+
parameter. Each parameter can be overridden in the configuration file by specifing the plugin name
|
|
94
|
+
as top level key and each parameter and value as a key/value pair. Therefore a configuration file
|
|
95
|
+
looks like this (this is the one for the webgen homepage):
|
|
96
|
+
|
|
97
|
+
<pre class="webgen-file">{includeFile: ../../config.yaml}</pre>
|
|
98
|
+
|
|
99
|
+
There is a special key for file handler plugins: @defaultMetaInfo@. It's value should be a hash with
|
|
100
|
+
the default meta information for nodes created by the plugin. The value is used to update the
|
|
101
|
+
correct part of the {param: Core/FileHandler:defaultMetaInfo} parameter *if and only if* no value
|
|
102
|
+
for the {param: Core/FileHandler:defaultMetaInfo} parameter has been set in the configuration file!
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
h1(#website-creation). Website Creation Tutorial
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
This short tutorial shows you how to create a website with webgen.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
h2(#website-structure). Creating the Basic Directories
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
First, you need to create the basic directories. You can either do this by hand or you can let
|
|
115
|
+
webgen do this:
|
|
116
|
+
|
|
117
|
+
<pre>
|
|
118
|
+
$ webgen create sample_site
|
|
33
119
|
</pre>
|
|
34
120
|
|
|
35
121
|
webgen created the @sample_site@ directory which holds all directories necessary for running webgen.
|
|
36
|
-
|
|
37
|
-
|
|
122
|
+
|
|
123
|
+
The @create@ command also accepts two options: one for a website template and one for a website
|
|
124
|
+
style:
|
|
125
|
+
|
|
126
|
+
* A *website template* defines a structure for your website. For example, the @project@ template
|
|
127
|
+
defines several pages including a features and about page.
|
|
128
|
+
* A *website style* defines the look and feel of your website. webgen comes with some predefined
|
|
129
|
+
styles which you can use (most of them are converted open source web design styles).
|
|
130
|
+
|
|
131
|
+
You can change the website style later by using the @use website_style@ command for @webgen@, for
|
|
132
|
+
example:
|
|
38
133
|
|
|
39
134
|
<pre>
|
|
40
|
-
|
|
41
|
-
~/sample_site > webgen
|
|
135
|
+
$ webgen use website_style default
|
|
42
136
|
</pre>
|
|
43
137
|
|
|
138
|
+
Existing files may be overwritten be this command (after asking). However, this command is not able
|
|
139
|
+
to delete previously copied website style files, so you have to remove them yourself!
|
|
140
|
+
|
|
141
|
+
Have a look at the <a href="{relocatable: /examples}">examples</a> sections to see demonstrations
|
|
142
|
+
for all shipped website templates and styles!
|
|
143
|
+
|
|
144
|
+
Now you can run webgen to create your website. There are two possibilities:
|
|
145
|
+
|
|
146
|
+
* Either change into the @sample_site@ directory and run webgen there, like this
|
|
147
|
+
<pre>
|
|
148
|
+
$ cd sample_site
|
|
149
|
+
sample_site $ webgen
|
|
150
|
+
</pre>
|
|
151
|
+
* Or you can run webgen like this
|
|
152
|
+
<pre>
|
|
153
|
+
$ webgen -d sample_site
|
|
154
|
+
</pre>
|
|
155
|
+
|
|
44
156
|
Easy! webgen has parsed the @src@ directory and has created the HTML output. However, as we did not
|
|
45
157
|
write any content yet, there is not much to see (only the default page). So let's do that now!
|
|
46
158
|
|
|
47
|
-
|
|
159
|
+
|
|
160
|
+
h2(#website-content). Adding Content to the Website
|
|
161
|
+
|
|
48
162
|
|
|
49
163
|
When using the @create@ command, webgen does not only create the needed directories but it also
|
|
50
|
-
provides you with some default files:
|
|
164
|
+
provides you with some default files, you should have at least the following ones:
|
|
51
165
|
|
|
52
166
|
* @src/default.template@: The default template for the new website.
|
|
53
167
|
* @src/default.css@: The default css file for the new website.
|
|
@@ -65,24 +179,23 @@ inMenu: true
|
|
|
65
179
|
This is a sample page with the title "{title:}" and it is in the menu!!!
|
|
66
180
|
</pre>
|
|
67
181
|
|
|
68
|
-
After that, run webgen
|
|
69
|
-
|
|
182
|
+
After that, run webgen and then open @output/index.html@ to view your website.
|
|
183
|
+
|
|
184
|
+
Then just add page files and other content to your website and let it grow!
|
|
185
|
+
|
|
70
186
|
|
|
71
|
-
|
|
187
|
+
h2(#website-metainfo). Using Tags and Meta Information in Pages
|
|
72
188
|
|
|
73
|
-
h2. Using Meta Information in Pages
|
|
74
189
|
|
|
75
190
|
Meta information is specified at the beginning of a page file. Have a look at the
|
|
76
|
-
<a href="{relocatable:
|
|
77
|
-
in detail!
|
|
191
|
+
<a href="{relocatable: /documentation/references/webpage_format.page}">WebPage Format reference</a>
|
|
192
|
+
to see how that is done in detail!
|
|
78
193
|
|
|
79
194
|
We are now going to use meta information to customize our website! Open the file @default.template@
|
|
80
195
|
and add this before the </body> tag:
|
|
81
196
|
|
|
82
197
|
<pre>
|
|
83
|
-
|
|
84
|
-
File last changed on \{filemdate: }!
|
|
85
|
-
</div>
|
|
198
|
+
File last changed on \{filemdate: }!
|
|
86
199
|
</pre>
|
|
87
200
|
|
|
88
201
|
The part @\{filemdate: }@ is called a tag. Tags are implemented using plugins and they can be used to
|
|
@@ -112,7 +225,9 @@ Run webgen and view the output! The tag @\{filemdate: }@ got substituted by the
|
|
|
112
225
|
the meta information. As we have not put any meta information in the @index.page@ file, a warning is
|
|
113
226
|
issued when webgen is run and no date is shown on the page!
|
|
114
227
|
|
|
115
|
-
|
|
228
|
+
|
|
229
|
+
h2(#website-plugin). Writing a Simple Plugin
|
|
230
|
+
|
|
116
231
|
|
|
117
232
|
Because we are not quite happy with our basic file modification time tag, we are going to write a
|
|
118
233
|
simple tag plugin.
|
|
@@ -120,21 +235,15 @@ simple tag plugin.
|
|
|
120
235
|
Create the file @plugin/filemdate.rb@ with the following content:
|
|
121
236
|
|
|
122
237
|
<pre>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
module Tags
|
|
238
|
+
class FileMDateTag < Tags::DefaultTag
|
|
126
239
|
|
|
127
|
-
|
|
240
|
+
infos( :name => 'Custom/FileMDate',
|
|
241
|
+
:summary => "Puts the modification time of the file on the page" )
|
|
128
242
|
|
|
129
|
-
|
|
130
|
-
depends_on 'Tags'
|
|
131
|
-
|
|
132
|
-
tag 'filemdate'
|
|
133
|
-
|
|
134
|
-
def process_tag( tag, node, refNode )
|
|
135
|
-
return File.mtime( node.recursive_value( 'src' ) ).to_s
|
|
136
|
-
end
|
|
243
|
+
register_tag 'filemdate'
|
|
137
244
|
|
|
245
|
+
def process_tag( tag, chain )
|
|
246
|
+
return File.mtime( chain.last.node_info[:src] ).to_s
|
|
138
247
|
end
|
|
139
248
|
|
|
140
249
|
end
|
|
@@ -145,3 +254,11 @@ encountered. We can now safely remove the @filemdate@ meta info from the file @h
|
|
|
145
254
|
you can leave it there - it won't do any harm.
|
|
146
255
|
|
|
147
256
|
Again, just run webgen and view the output!
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
h2(#website-conclusio). Conclusion
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
You have just created a simple static website using webgen. For further information on how to
|
|
263
|
+
procede from here have a look at the <a href="{relocatable: plugins}">plugins section</a> and the
|
|
264
|
+
other documentation.
|
|
@@ -3,22 +3,32 @@ directoryName: Documentation
|
|
|
3
3
|
---
|
|
4
4
|
h2. Information
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
p={font-size: 150%; color: red}. *!!! This documentation is for webgen {version: } !!!*
|
|
7
8
|
|
|
8
|
-
The source files for this website are in the @doc/src@ directory of the webgen
|
|
9
|
-
at them to see a real world example on how to use webgen!
|
|
9
|
+
The source files for this website are in the @doc/src@ directory of the webgen distribution. Have a
|
|
10
|
+
look at them to see a real world example on how to use webgen!
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
h2. Spelling of the name "webgen"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
I often see that the name of the program is misspelled: WebGen, Webgen, WEBGEN, ... It is just
|
|
17
|
+
*webgen*, all lower case!
|
|
18
|
+
|
|
10
19
|
|
|
11
20
|
h2. Philosophy
|
|
12
21
|
|
|
22
|
+
|
|
13
23
|
There are some things about webgen which I think are important to mention. It's about how webgen
|
|
14
24
|
works and what you can expect when you start webgen.
|
|
15
25
|
|
|
16
26
|
* <b>webgen runs till the end and does not stop on errors!</b>
|
|
17
27
|
|
|
18
28
|
I did not like it when webgen stopped because there was an error in the configuration file or an
|
|
19
|
-
error in a page
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
error in a page file. So if something exceptional happens it is logged so that the user can see
|
|
30
|
+
what happened and a useful default alternative is used instead. For example, if no default
|
|
31
|
+
template was found in the source directory, a dummy template is used instead.
|
|
22
32
|
|
|
23
33
|
Therefore it is also not necessary to install the dependencies (although you would be wise to do
|
|
24
34
|
it, so that you can use all the features of webgen). If a dependency is not found (e.g. RedCloth
|
|
@@ -35,26 +45,3 @@ works and what you can expect when you start webgen.
|
|
|
35
45
|
informational and debug messages. For the normal user, the error and warning messages are
|
|
36
46
|
important. Developers who extend webgen by writing a new plugin can use the informational and
|
|
37
47
|
debug messages to see what is going on and to help them develop the plugin.
|
|
38
|
-
|
|
39
|
-
h2. Configuration
|
|
40
|
-
|
|
41
|
-
webgen provides a default configuration out of the box. If you can live with that, you do not need
|
|
42
|
-
to write any configuration files. Because most people cannot, you can use your own configuration
|
|
43
|
-
file. The configuration file has to be written in YAML and is called @config.yaml@. webgen searches
|
|
44
|
-
in the current directory for the configuration file.
|
|
45
|
-
|
|
46
|
-
If you want to get the configuration values you can run webgen like this
|
|
47
|
-
<pre>
|
|
48
|
-
$ webgen show config
|
|
49
|
-
</pre>
|
|
50
|
-
|
|
51
|
-
(This information is also provided on this website, have a look at the
|
|
52
|
-
<a href="{relocatable: plugins}">plugins section</a>!)
|
|
53
|
-
|
|
54
|
-
The list shows sorted by the plugin name the current values and the default values for each
|
|
55
|
-
parameter. Each parameter can be overridden in the configuration file by specifing the
|
|
56
|
-
plugin name as top level key and each parameter and value as a key/value pair. A configuration file
|
|
57
|
-
looks like this:
|
|
58
|
-
|
|
59
|
-
<pre class="webgen-file">{includeFile: ../../config.yaml}</pre>
|
|
60
|
-
|