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,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Include File
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: IncludeFileTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The include file tag is used to include the contents of a file.
|
|
12
|
-
|
|
13
|
-
h2. Examples
|
|
14
|
-
|
|
15
|
-
<pre class="webgen-file">{includeFile: {filename: includefile.page, processOutput: false}}</pre>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
directoryName: Tags
|
|
3
|
-
---
|
|
4
|
-
h2. About
|
|
5
|
-
|
|
6
|
-
Tags are used to generate content. During processing of the page description files so called 'tags'
|
|
7
|
-
are substituted. For example, the menu you see to left was generated. This makes it easier to add or
|
|
8
|
-
remove menu items. If the menu was not generated, you would have to change every file which uses the
|
|
9
|
-
menu.
|
|
10
|
-
|
|
11
|
-
webgen comes bundled with some default tag plugins. All currently available tags are exercised in
|
|
12
|
-
this online demo. Choose a tag from the menu to get a detailed description of the tag.
|
|
13
|
-
|
|
14
|
-
h2. Usage
|
|
15
|
-
|
|
16
|
-
Tags are defined by a special markup code. A tag has the following structure:
|
|
17
|
-
|
|
18
|
-
<pre>\{tagname: {parameters}}</pre>
|
|
19
|
-
|
|
20
|
-
Every time a tag is found in a source file, the registered plugin for the tag is called. The plugin
|
|
21
|
-
returns a string which is put into the output file instead of the tag. The output a tag plugin can
|
|
22
|
-
produce ranges from something simple to something complex. For example, the <a href="{relocatable: meta.page}">
|
|
23
|
-
Meta Tag</a> plugin copies any additional info specified in the source file verbatim
|
|
24
|
-
into the correct place in the output file. And in contrast, the <a href="{relocatable: menu.page}">
|
|
25
|
-
Menu Tag</a> plugin generates a whole menu tree.
|
|
26
|
-
|
|
27
|
-
If you want to use the markup code used for tags, you need to escape the tag, like this:
|
|
28
|
-
|
|
29
|
-
<pre>\\\{tagname: {parameters}}</pre>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
h2. Tag Parameters
|
|
33
|
-
|
|
34
|
-
A tag can have zero or more parameters some of which are mandatory. You can see the supported
|
|
35
|
-
parameters (and if they are mandatory) for each tag on the tag's page. The default mandatory
|
|
36
|
-
parameter can be specified in a special way, see the examples below. The format used for parsing the
|
|
37
|
-
parameters is YAML.
|
|
38
|
-
|
|
39
|
-
h2. Examples
|
|
40
|
-
|
|
41
|
-
table{border: 1px solid black}.
|
|
42
|
-
|^. @\{tagname: }@|^. No parameter specified|
|
|
43
|
-
|^. @\{tagname: test.html}@|^. The default mandatory parameter is set to @test.html@. This form can only be used if there is only one mandatory parameter|
|
|
44
|
-
|^. @\{tagname: {param1: value1, param2: value2}}@|^. Two parameters (param1 and param2) specified|
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Language Bar
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: LangbarTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The language tag is used to display a list of languages for a page. Take a look at the lower right
|
|
12
|
-
corner of the header. There you will find a link titled 'en'. This is the link to the english (=en)
|
|
13
|
-
version of this page.
|
|
14
|
-
|
|
15
|
-
h2. Examples
|
|
16
|
-
|
|
17
|
-
Here is a <a href="{relocatable: multilang.page}">link</a> to a page which is translated to several
|
|
18
|
-
languages (more or less ;-). Have a look at it and don't forget to view the page in the other
|
|
19
|
-
languages!
|
|
20
|
-
|
|
21
|
-
table{border:1px solid black}.
|
|
22
|
-
|_.Command|_.Output|
|
|
23
|
-
|<notextile>\{langbar: }</notextile>|<notextile>{langbar: }</notextile>|
|
|
24
|
-
|\{langbar: {separator: Hallo}}|{langbar: {separator: Hallo}}|
|
|
25
|
-
|\{langbar: {showSingleLang: false}}|{langbar: {showSingleLang: false}}|
|
|
26
|
-
|\{langbar: {showOwnLang: false}}|{langbar: {showOwnLang: false}}|
|
|
27
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Menu
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: MenuTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The menu tag is used to generate a menu for the website. You can see such a menu on the left of this
|
|
12
|
-
page.
|
|
13
|
-
|
|
14
|
-
This page is available in <a href="menu.de.html">German</a>. Try and go to the german version of
|
|
15
|
-
this page. You will see that the menu items for which translations exist change their names.
|
|
16
|
-
|
|
17
|
-
There exist serveral different predefined styles of menus (vertical, horizontal, ...). Have a look
|
|
18
|
-
at the <a href="{relocatable: ../menustyles}">Menu Styles</a> section to see which menu styles are
|
|
19
|
-
available.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Relocatable
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: RelocatableTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The relocatable tag is used to change the path of the supplied file and is most often used in
|
|
12
|
-
template files. A relocatable tag looks like this: @\{relocatable: default.css}@. If this
|
|
13
|
-
was put into a template and the template was used by a file in a subdirectory, then the
|
|
14
|
-
@relocatable@ tag would put @../default.css@ into the output file.
|
|
15
|
-
|
|
16
|
-
This ensures that the relative path to the referenced file is always correct.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Resource
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: ResourceTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The resource tag is used to include a resource either verbatim (i.e. its content is copied) or by
|
|
12
|
-
path. For more information about resources have a look at the
|
|
13
|
-
<a href="{relocatable: ../coreplugins/resourcemanager.page}">Resource Manager</a>.
|
|
14
|
-
|
|
15
|
-
h2. Examples
|
|
16
|
-
|
|
17
|
-
table{border:1px solid black}.
|
|
18
|
-
|_{width: 30%}.Command|_.Output|
|
|
19
|
-
|\{resource: webgen-logo}|{resource: webgen-logo}|
|
|
20
|
-
|\{resource: w3c-valid-xhtml11}|{resource: w3c-valid-xhtml11}|
|
|
21
|
-
|\{resource: {name: webgen-css, insert: data}}|{resource: {name: webgen-css, insert: data}}|
|
|
22
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Sitemap
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: SitemapTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
The SitemapTag is used to display the site map of the current web site.
|
|
12
|
-
|
|
13
|
-
h2. Examples
|
|
14
|
-
|
|
15
|
-
table{border:1px solid black}.
|
|
16
|
-
|_.Command|_.Output|
|
|
17
|
-
|\{sitemap:}|{sitemap:}|
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: WikiLink
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Information
|
|
6
|
-
|
|
7
|
-
<notextile>{describe: WikiLinkTag}</notextile>
|
|
8
|
-
|
|
9
|
-
h2. Description
|
|
10
|
-
|
|
11
|
-
This tag can be used to add a link to a wiki page. It is used on this website to automatically
|
|
12
|
-
provide a "Feedback" link for each page.
|
|
13
|
-
|
|
14
|
-
table{border:1px solid black}.
|
|
15
|
-
|_.Command|_.Output|
|
|
16
|
-
|\{wikilink: }|{wikilink: }|
|
|
17
|
-
|\{wikilink: {relURL: hallo}}|{wikilink: {relURL: hallo}}|
|
|
18
|
-
|\{wikilink: {relURL: hallo, title: MoinMoin}}|{wikilink: {relURL: hallo, title: MoinMoin}}|
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Webgen Gallery Editor
|
|
3
|
-
inMenu: true
|
|
4
|
-
orderInfo: 20
|
|
5
|
-
---
|
|
6
|
-
h2. About
|
|
7
|
-
|
|
8
|
-
This application is based on Qt > 3.1 and therefore needs the
|
|
9
|
-
"qtruby":http://rubyforge.org/projects/korundum/ package. It is basically an editor for editing
|
|
10
|
-
webgen gallery description files. You can easily set all of the required parameters and assign a
|
|
11
|
-
title and a description to each image.
|
|
12
|
-
|
|
13
|
-
<b>Be aware that this application is only alpha quality! Do not report any bugs concerning this
|
|
14
|
-
application!</b>
|
|
15
|
-
|
|
16
|
-
h2. How To Use
|
|
17
|
-
|
|
18
|
-
h3. Starting the editor
|
|
19
|
-
|
|
20
|
-
You can start the editor by calling @webgen-gallery-editor@. This opens up the main window.
|
|
21
|
-
|
|
22
|
-
<img src="{relocatable: /images/screenshots/wge-main.png}" alt="Main window when editing" title="Main Window when editing" />
|
|
23
|
-
|
|
24
|
-
At the beginning all widgets are disabled; they get enabled as soon as you create a new gallery
|
|
25
|
-
description file or open an existing one.
|
|
26
|
-
|
|
27
|
-
h3. Creating a new gallery description file
|
|
28
|
-
|
|
29
|
-
Select @File->New...@ which requires you to enter a name for the new gallery description file. All
|
|
30
|
-
the fields are filled with the default values. After that you can start editing!
|
|
31
|
-
|
|
32
|
-
h3. Editing gallery description files
|
|
33
|
-
|
|
34
|
-
You can specify the basic gallery information like gallery title, file pattern, ... in the upper
|
|
35
|
-
half of the main window. The meta information you specify for the main page gets included in the
|
|
36
|
-
main page; likewise the meta information you specify for the gallery pages gets included in every
|
|
37
|
-
gallery page.
|
|
38
|
-
|
|
39
|
-
The lower half of the main window consists of four parts
|
|
40
|
-
|
|
41
|
-
* *The list of images*:
|
|
42
|
-
|
|
43
|
-
This list gets automatically updated whenever you change the file pattern. So you have a live
|
|
44
|
-
preview of which images get included in the gallery. When you click on an image, it will be shown
|
|
45
|
-
in the image preview pane. Also, the image meta information table and the title and description
|
|
46
|
-
fields will be updated to show the current values for the selected image.
|
|
47
|
-
|
|
48
|
-
* *The image preview pane*:
|
|
49
|
-
|
|
50
|
-
Here you will see the selected image. It will be scaled so that it fits into the available space,
|
|
51
|
-
but it will not be enlarged if the space available is bigger than the image.
|
|
52
|
-
|
|
53
|
-
* *The image meta information*:
|
|
54
|
-
|
|
55
|
-
Here you can enter additional meta information for the selected image.
|
|
56
|
-
|
|
57
|
-
* *Title and Description fields*:
|
|
58
|
-
|
|
59
|
-
As these two meta information fields are used most often, they got their own widgets.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
As entering the title and description for the images is the main use for the webgen gallery editor,
|
|
63
|
-
there is an easy way to do this:
|
|
64
|
-
|
|
65
|
-
# Select the first image.
|
|
66
|
-
|
|
67
|
-
# Enter a title in the title field. When you are finished press @CTRL+ENTER@. This will set the
|
|
68
|
-
focus to the description field.
|
|
69
|
-
|
|
70
|
-
# Enter the description and when you are finished, press @CTRL+ENTER@ again. The next image will be
|
|
71
|
-
selected and the focus wil be set to the title field so that you can continue describing the images.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
h3. Using the meta information widgets
|
|
75
|
-
|
|
76
|
-
You need to specify the name of the meta information in the first column and the value in the second
|
|
77
|
-
column of the widget. You can only use certain kinds of values:
|
|
78
|
-
|
|
79
|
-
* Integer: just type a number
|
|
80
|
-
* String: just type the string
|
|
81
|
-
* Boolean: the special values @true@ and @false@ will be used as boolean values.
|
|
82
|
-
* Nil: the special value @nil@ will be used as nil value
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/doc/src/meta.info
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
index.page:
|
|
2
|
-
orderInfo: 1
|
|
3
|
-
|
|
4
|
-
download.page:
|
|
5
|
-
orderInfo: 8
|
|
6
|
-
|
|
7
|
-
features.page:
|
|
8
|
-
orderInfo: 5
|
|
9
|
-
|
|
10
|
-
api.html:
|
|
11
|
-
dest: rdoc/index.html
|
|
12
|
-
title: API Reference
|
|
13
|
-
|
|
14
|
-
documentation/references/api.html:
|
|
15
|
-
dest: ../../rdoc/index.html
|
|
16
|
-
title: API Reference
|
|
17
|
-
inMenu: true
|
|
18
|
-
orderInfo: 60
|
|
19
|
-
|
|
20
|
-
wiki.html:
|
|
21
|
-
dest: http://webgen.rubyforge.org/wiki/wiki.pl
|
|
22
|
-
title: WikiWiki Web
|
|
23
|
-
inMenu: true
|
|
24
|
-
orderInfo: 10
|
|
25
|
-
|
|
26
|
-
documentation/index.page:
|
|
27
|
-
orderInfo: 9
|
|
28
|
-
|
|
29
|
-
images:
|
|
30
|
-
indexFile: ~
|
data/doc/src/screenshots.gallery
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
mainPage:
|
|
3
|
-
orderInfo: 20
|
|
4
|
-
imagesPerPage: 20
|
|
5
|
-
files: images/screenshots/*
|
|
6
|
-
thumbnailSize: ''
|
|
7
|
-
mainPageTemplate: ''
|
|
8
|
-
title: Screenshots
|
|
9
|
-
galleryOrderInfo: 50
|
|
10
|
-
images/screenshots/wge-image.png:
|
|
11
|
-
title: Gallery editor with image preview
|
|
12
|
-
description: "When an image is selected in the image list, the pane right of it displays the
|
|
13
|
-
image."
|
|
14
|
-
orderInfo: 3
|
|
15
|
-
galleryPageInMenu: false
|
|
16
|
-
mainPageInMenu: true
|
|
17
|
-
galleryPageTemplate: ''
|
|
18
|
-
images/screenshots/wge-layout-preview.png:
|
|
19
|
-
title: Gallery editor with layout preview
|
|
20
|
-
description: This shows the gallery editor with the layout preview open. You can see how a sample gallery looks with a specific layout.
|
|
21
|
-
orderInfo: 4
|
|
22
|
-
galleryPages: {}
|
|
23
|
-
imagePageTemplate: ''
|
|
24
|
-
images/screenshots/wge-main-disabled.png:
|
|
25
|
-
title: Gallery editor main window disabled
|
|
26
|
-
description: This screenshot show how the gallery editor appears when started.
|
|
27
|
-
orderInfo: 1
|
|
28
|
-
images/screenshots/wge-main.png:
|
|
29
|
-
title: Gallery editor main window active
|
|
30
|
-
description: This screenshot shows the normal appearance of the gallery editor.
|
|
31
|
-
orderInfo: 2
|
|
32
|
-
imagePageInMenu: false
|
|
33
|
-
layout: default
|
data/install.rb
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
require 'rpa/install'
|
|
3
|
-
|
|
4
|
-
class Install_webgen < RPA::Install::FullInstaller
|
|
5
|
-
name 'webgen'
|
|
6
|
-
version '0.3.8-1'
|
|
7
|
-
classification Application
|
|
8
|
-
build do
|
|
9
|
-
installdocs %w[COPYING ChangeLog TODO]
|
|
10
|
-
installdocs 'docs'
|
|
11
|
-
installrdoc %w[README] + Dir['lib/**/*.rb']
|
|
12
|
-
installdata
|
|
13
|
-
end
|
|
14
|
-
description <<-EOF
|
|
15
|
-
Webgen is a templated based static website generator.
|
|
16
|
-
|
|
17
|
-
Webgen is a web page generator implemented in Ruby. It is used to generate static web pages from templates and page description files.
|
|
18
|
-
EOF
|
|
19
|
-
end
|
data/lib/webgen.rb
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
#--
|
|
3
|
-
#
|
|
4
|
-
# $Id: webgen.rb 369 2005-12-24 11:37:40Z thomas $
|
|
5
|
-
#
|
|
6
|
-
# webgen: template based static website generator
|
|
7
|
-
# Copyright (C) 2004 Thomas Leitner
|
|
8
|
-
#
|
|
9
|
-
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
|
10
|
-
# General Public License as published by the Free Software Foundation; either version 2 of the
|
|
11
|
-
# License, or (at your option) any later version.
|
|
12
|
-
#
|
|
13
|
-
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
|
14
|
-
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
15
|
-
# General Public License for more details.
|
|
16
|
-
#
|
|
17
|
-
# You should have received a copy of the GNU General Public License along with this program; if not,
|
|
18
|
-
# write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
19
|
-
#
|
|
20
|
-
#++
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
require 'rbconfig'
|
|
24
|
-
require 'fileutils'
|
|
25
|
-
require 'cmdparse'
|
|
26
|
-
require 'webgen/plugin'
|
|
27
|
-
require 'webgen/gui/common'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
module Webgen
|
|
31
|
-
|
|
32
|
-
class Color
|
|
33
|
-
|
|
34
|
-
@@colors = {:bold => [0, 1], :green => [0, 32], :lblue => [1, 34], :lred => [1, 31], :reset => [0, 0]}
|
|
35
|
-
|
|
36
|
-
def self.colorify
|
|
37
|
-
@@colors.each do |color, values|
|
|
38
|
-
module_eval <<-EOF
|
|
39
|
-
def Color.#{color.to_s}
|
|
40
|
-
"\e[#{values[0]};#{values[1]}m"
|
|
41
|
-
end
|
|
42
|
-
EOF
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
def self.method_missing( id )
|
|
47
|
-
''
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
class CreateCommand < CmdParse::Command
|
|
53
|
-
|
|
54
|
-
def initialize
|
|
55
|
-
super( 'create', false )
|
|
56
|
-
self.short_desc = "Creates the basic directories and files for webgen"
|
|
57
|
-
self.description = "You can optionally specify a template and/or a style which should be used. " \
|
|
58
|
-
"This allows you to create a good starting template for your website."
|
|
59
|
-
self.options = CmdParse::OptionParserWrapper.new do |opts|
|
|
60
|
-
opts.separator "Options:"
|
|
61
|
-
opts.on( '-t', '--template TEMPLATE', 'Specify the template which should be used' ) {|@template|}
|
|
62
|
-
opts.on( '-s', '--style STYLE', 'Specify the style which should be used' ) {|@style|}
|
|
63
|
-
opts.separator ""
|
|
64
|
-
opts.separator "Available templates and styles:"
|
|
65
|
-
opts.separator opts.summary_indent + "Templates: " + Webgen::Website.templates.join(', ')
|
|
66
|
-
opts.separator opts.summary_indent + "Styles: " + Webgen::Website.styles.join(', ')
|
|
67
|
-
end
|
|
68
|
-
@template = 'default'
|
|
69
|
-
@style = 'default'
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
def usage
|
|
73
|
-
"Usage: #{commandparser.program_name} [global options] create [options] DIR"
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
def execute( args )
|
|
77
|
-
if args.length == 0
|
|
78
|
-
raise OptionParser::MissingArgument.new( 'DIR' )
|
|
79
|
-
else
|
|
80
|
-
Webgen.create_website( args[0], @template, @style )
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
class CleanCommand < CmdParse::Command
|
|
87
|
-
|
|
88
|
-
module ::FileUtils
|
|
89
|
-
|
|
90
|
-
def fu_output_message( msg )
|
|
91
|
-
logger.info { msg }
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
def ask_before_delete( ask, func, list, options = {} )
|
|
95
|
-
newlist = [*list].collect {|e| "'" + e + "'"}.join(', ')
|
|
96
|
-
if ask
|
|
97
|
-
print "Really delete #{newlist}? "
|
|
98
|
-
return unless /y|Y/ =~ gets.strip
|
|
99
|
-
end
|
|
100
|
-
self.send( func, list, options.merge( :verbose => true ) )
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
module_function :ask_before_delete
|
|
104
|
-
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
class CleanWalker < Webgen::Plugin
|
|
108
|
-
|
|
109
|
-
summary "Deletes the output file for each node."
|
|
110
|
-
depends_on 'TreeWalker'
|
|
111
|
-
|
|
112
|
-
attr_writer :ask
|
|
113
|
-
|
|
114
|
-
def handle_node( node, level )
|
|
115
|
-
file = node.recursive_value( 'dest' )
|
|
116
|
-
return if !File.exists?( file ) || node['int:virtualNode']
|
|
117
|
-
if File.directory?( file )
|
|
118
|
-
begin
|
|
119
|
-
FileUtils.ask_before_delete( @ask, :rmdir, file )
|
|
120
|
-
rescue Errno::ENOTEMPTY => e
|
|
121
|
-
logger.info "Cannot delete directory #{file}, as it is not empty!"
|
|
122
|
-
end
|
|
123
|
-
else
|
|
124
|
-
FileUtils.ask_before_delete( @ask, :rm, file, :force => true )
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
def initialize;
|
|
131
|
-
super( 'clean', false )
|
|
132
|
-
self.short_desc = "Removes the generated or all files from the output directory"
|
|
133
|
-
self.options = CmdParse::OptionParserWrapper.new do |opts|
|
|
134
|
-
opts.separator( "Options" )
|
|
135
|
-
opts.on( '--all', '-a', "Removes ALL files from the output directory" ) { @all = true }
|
|
136
|
-
opts.on( '--interactive', '-i', "Ask for each file" ) { @ask = true }
|
|
137
|
-
end
|
|
138
|
-
@all = false
|
|
139
|
-
@ask = false
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
def execute( args )
|
|
143
|
-
if @all
|
|
144
|
-
logger.info( "Deleting all files from output directory..." )
|
|
145
|
-
outDir = Plugin['Configuration']['outDirectory']
|
|
146
|
-
FileUtils.ask_before_delete( @ask, :rm_rf, outDir ) if File.exists?( outDir )
|
|
147
|
-
else
|
|
148
|
-
tree = Plugin['FileHandler'].build_tree
|
|
149
|
-
logger.info( "Deleting generated files from output directory..." )
|
|
150
|
-
Plugin['CleanWalker'].ask = @ask
|
|
151
|
-
Plugin['TreeWalker'].execute( tree, Plugin['CleanWalker'], :backward )
|
|
152
|
-
end
|
|
153
|
-
logger.info( "Webgen finished 'clean' command" )
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
class WebgenCommandParser < CmdParse::CommandParser
|
|
159
|
-
|
|
160
|
-
def initialize
|
|
161
|
-
super( true )
|
|
162
|
-
self.program_name = "webgen"
|
|
163
|
-
self.program_version = Webgen::VERSION
|
|
164
|
-
self.options = CmdParse::OptionParserWrapper.new do |opts|
|
|
165
|
-
opts.separator "Global options:"
|
|
166
|
-
opts.on( "--verbosity LEVEL", "-V", Integer, "The verbosity level" ) { |verbosity| Plugin.set_param( 'Logging', 'verbosityLevel', verbosity ) }
|
|
167
|
-
opts.on( "--[no-]logfile", "-L", "Log to file" ) { |logfile| Plugin.set_param( 'Logging', 'logToFile', logfile ) }
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
# Run command
|
|
171
|
-
run = CmdParse::Command.new( 'run', false )
|
|
172
|
-
run.short_desc = "Runs webgen"
|
|
173
|
-
run.set_execution_block {|args| Webgen.run_webgen }
|
|
174
|
-
self.add_command( run, true )
|
|
175
|
-
|
|
176
|
-
# Show command
|
|
177
|
-
show = CmdParse::Command.new( 'show', true )
|
|
178
|
-
show.short_desc = "Show various information"
|
|
179
|
-
self.add_command( show )
|
|
180
|
-
|
|
181
|
-
# Show plugins command
|
|
182
|
-
showPlugins = CmdParse::Command.new( 'plugins', false )
|
|
183
|
-
showPlugins.short_desc = "Show the available plugins"
|
|
184
|
-
showPlugins.set_execution_block do |args|
|
|
185
|
-
print "List of loaded plugins:\n"
|
|
186
|
-
|
|
187
|
-
headers = Hash.new {|h,k| h[k] = (k.nil? ? "Other Plugins" : k.gsub(/([A-Z][a-z])/, ' \1').strip) }
|
|
188
|
-
|
|
189
|
-
ljustlength = 30 + Color.green.length + Color.reset.length
|
|
190
|
-
header = ''
|
|
191
|
-
Plugin.config.sort { |a, b| a[0].name <=> b[0].name }.each do |klass, data|
|
|
192
|
-
newHeader = headers[klass.name[/^.*?(?=::)/]]
|
|
193
|
-
unless newHeader == header
|
|
194
|
-
print "\n #{Color.bold}#{newHeader}#{Color.reset}:\n";
|
|
195
|
-
header = newHeader
|
|
196
|
-
end
|
|
197
|
-
print " - #{Color.green}#{data.plugin}#{Color.reset}:".ljust(ljustlength) +"#{data.summary}\n"
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
show.add_command( showPlugins )
|
|
201
|
-
|
|
202
|
-
# Show params command
|
|
203
|
-
showConfig = CmdParse::Command.new( 'config', false )
|
|
204
|
-
showConfig.short_desc = "Show the parameters of all plugins or of the specified one"
|
|
205
|
-
showConfig.set_execution_block do |args|
|
|
206
|
-
puts "List of plugin parameters:"
|
|
207
|
-
puts
|
|
208
|
-
ljustlength = 25 + Color.green.length + Color.reset.length
|
|
209
|
-
Plugin.config.sort { |a, b| a[0].name[/\w*$/] <=> b[0].name[/\w*$/] }.each do |klass, data|
|
|
210
|
-
next if args.length > 0 && args[0] != data.plugin
|
|
211
|
-
puts " #{Color.bold}#{data.plugin}#{Color.reset}:"
|
|
212
|
-
puts " #{Color.green}Summary:#{Color.reset}".ljust(ljustlength) + data.summary if data.summary
|
|
213
|
-
puts " #{Color.green}Description:#{Color.reset}".ljust(ljustlength) + data.description if data.description
|
|
214
|
-
puts " #{Color.green}Tag name:#{Color.reset}".ljust(ljustlength) + (data.tag == :default ? "Default tag" : data.tag) if data.tag
|
|
215
|
-
puts " #{Color.green}Handled paths:#{Color.reset}".ljust(ljustlength) + data.path.inspect if data.path
|
|
216
|
-
|
|
217
|
-
data.table.keys.find_all {|k| /^registered_/ =~ k.to_s }.each do |k|
|
|
218
|
-
name = k.to_s.sub( /^registered_/, '' ).tr('_', ' ').capitalize + " name"
|
|
219
|
-
puts " #{Color.green}#{name}:#{Color.reset}".ljust(ljustlength) + data.send( k )
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
if data.params
|
|
223
|
-
puts "\n #{Color.green}Parameters:#{Color.reset}"
|
|
224
|
-
data.params.sort.each do |key, item|
|
|
225
|
-
print " #{Color.green}Parameter:#{Color.reset}".ljust(ljustlength)
|
|
226
|
-
puts Color.lred + item.name + Color.reset + " = " + Color.lblue + item.value.inspect + Color.reset + " (" + item.default.inspect + ")"
|
|
227
|
-
puts " #{Color.green}Description:#{Color.reset}".ljust(ljustlength) + item.description
|
|
228
|
-
puts
|
|
229
|
-
end
|
|
230
|
-
end
|
|
231
|
-
puts
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
show.add_command( showConfig )
|
|
235
|
-
|
|
236
|
-
self.add_command( CreateCommand.new )
|
|
237
|
-
self.add_command( CleanCommand.new )
|
|
238
|
-
self.add_command( CmdParse::HelpCommand.new )
|
|
239
|
-
self.add_command( CmdParse::VersionCommand.new )
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# Run webgen
|
|
245
|
-
def self.run_webgen( directory = Dir.pwd )
|
|
246
|
-
Dir.chdir( directory )
|
|
247
|
-
|
|
248
|
-
logger.info "Starting Webgen..."
|
|
249
|
-
tree = Plugin['FileHandler'].build_tree
|
|
250
|
-
Plugin['TreeWalker'].execute( tree ) unless tree.nil?
|
|
251
|
-
Plugin['FileHandler'].write_tree( tree ) unless tree.nil?
|
|
252
|
-
logger.info "Webgen finished"
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
# Create a website in the +directory+, using the +template+ and the +style+.
|
|
256
|
-
def self.create_website( directory, template = 'default', style = 'default' )
|
|
257
|
-
templateDir = File.join( CorePlugins::Configuration.data_dir, 'website_templates', template )
|
|
258
|
-
styleDir = File.join( CorePlugins::Configuration.data_dir, 'website_styles', style )
|
|
259
|
-
raise ArgumentError.new( "Invalid template <#{template}>" ) if !File.directory?( templateDir )
|
|
260
|
-
raise ArgumentError.new( "Invalid style <#{style}>" ) if !File.directory?( styleDir )
|
|
261
|
-
|
|
262
|
-
raise ArgumentError.new( "Website directory <#{directory}> does already exist!") if File.exists?( directory )
|
|
263
|
-
FileUtils.mkdir( directory )
|
|
264
|
-
FileUtils.cp_r( Dir[File.join( templateDir, '*' )], directory )
|
|
265
|
-
FileUtils.cp_r( Dir[File.join( styleDir, '*' )], File.join( directory, 'src' ) )
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
# Main program for the webgen CLI command.
|
|
269
|
-
def self.cli_main
|
|
270
|
-
Color.colorify if $stdout.isatty && !Config::CONFIG['arch'].include?( 'mswin32' )
|
|
271
|
-
Plugin['Configuration'].cmdparser = WebgenCommandParser.new
|
|
272
|
-
Plugin['Configuration'].cmdparser.parse do |level, cmdName|
|
|
273
|
-
Plugin['Configuration'].init_all if level == 0
|
|
274
|
-
end
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
end
|