webgen 0.4.7 → 0.5.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/AUTHORS +5 -0
- data/COPYING +8 -338
- data/GPL +340 -0
- data/Rakefile +188 -445
- data/THANKS +7 -22
- data/VERSION +1 -1
- data/bin/webgen +6 -1
- data/data/webgen/resources.yaml +3 -0
- data/data/webgen/website_skeleton/README +10 -0
- data/data/webgen/website_skeleton/Rakefile +40 -0
- data/data/webgen/website_skeleton/config.yaml +17 -0
- data/data/webgen/website_styles/1024px/{default.css → src/default.css} +0 -0
- data/data/webgen/website_styles/1024px/{default.template → src/default.template} +3 -5
- data/data/webgen/website_styles/1024px/{images → src/images}/background.gif +0 -0
- data/data/webgen/website_styles/andreas00/{default.css → src/default.css} +0 -0
- data/{doc/examples → data/webgen}/website_styles/andreas00/src/default.template +3 -5
- data/data/webgen/website_styles/andreas00/{images → src/images}/bg.gif +0 -0
- data/data/webgen/website_styles/andreas00/{images → src/images}/front.jpg +0 -0
- data/data/webgen/website_styles/andreas00/{images → src/images}/menubg.gif +0 -0
- data/data/webgen/website_styles/andreas00/{images → src/images}/menubg2.gif +0 -0
- data/data/webgen/website_styles/andreas01/{default.css → src/default.css} +0 -0
- data/{doc/examples → data/webgen}/website_styles/andreas01/src/default.template +3 -5
- data/data/webgen/website_styles/andreas01/{images → src/images}/bg.gif +0 -0
- data/data/webgen/website_styles/andreas01/{images → src/images}/front.jpg +0 -0
- data/data/webgen/website_styles/andreas01/{print.css → src/print.css} +0 -0
- data/data/webgen/website_styles/andreas03/{default.css → src/default.css} +0 -0
- data/data/webgen/website_styles/andreas03/{default.template → src/default.template} +2 -4
- data/data/webgen/website_styles/andreas03/{images → src/images}/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas03/{images → src/images}/contbg.png +0 -0
- data/data/webgen/website_styles/andreas03/{images → src/images}/footerbg.png +0 -0
- data/data/webgen/website_styles/andreas03/{images → src/images}/gradient1.png +0 -0
- data/data/webgen/website_styles/andreas03/{images → src/images}/gradient2.png +0 -0
- data/data/webgen/website_styles/andreas04/{default.css → src/default.css} +0 -0
- data/data/webgen/website_styles/andreas04/{default.template → src/default.template} +2 -4
- data/data/webgen/website_styles/andreas04/{images → src/images}/blinkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/contentbg.png +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/entrybg.png +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/flash.gif +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/flash2.gif +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/globe.gif +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/globebottom.gif +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/linkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/{images → src/images}/menuhover.png +0 -0
- data/data/webgen/website_styles/andreas05/{default.css → src/default.css} +0 -0
- data/data/webgen/website_styles/andreas05/{default.template → src/default.template} +2 -4
- data/data/webgen/website_styles/andreas05/{images → src/images}/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas05/{images → src/images}/front.png +0 -0
- data/data/webgen/website_styles/andreas06/{default.css → src/default.css} +0 -0
- data/{doc/examples → data/webgen}/website_styles/andreas06/src/default.template +4 -6
- data/data/webgen/website_styles/andreas06/{images → src/images}/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas06/{images → src/images}/boxbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/{images → src/images}/greypx.gif +0 -0
- data/data/webgen/website_styles/andreas06/{images → src/images}/header.jpg +0 -0
- data/data/webgen/website_styles/andreas06/{images → src/images}/innerbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/{images → src/images}/leaves.jpg +0 -0
- data/data/webgen/website_styles/andreas06/{images → src/images}/tabs.gif +0 -0
- data/data/webgen/website_styles/andreas07/{browserfix.css → src/browserfix.css} +0 -0
- data/data/webgen/website_styles/andreas07/{default.css → src/default.css} +0 -0
- data/{doc/examples → data/webgen}/website_styles/andreas07/src/default.template +2 -4
- data/data/webgen/website_styles/andreas07/{images → src/images}/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas07/{images → src/images}/sidebarbg.gif +0 -0
- data/data/webgen/website_styles/andreas08/{default.css → src/default.css} +0 -0
- data/{doc/examples → data/webgen}/website_styles/andreas08/src/default.template +3 -5
- data/data/webgen/website_styles/andreas09/{default.css → src/default.css} +0 -0
- data/data/webgen/website_styles/andreas09/{default.template → src/default.template} +4 -6
- data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/bodybg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/footerbg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/{images → src/images}/menuhover.jpg +0 -0
- data/data/webgen/website_styles/{default → simple}/README +0 -0
- data/data/webgen/website_styles/{default → simple/src}/default.css +0 -0
- data/{doc/examples/website_styles/default → data/webgen/website_styles/simple}/src/default.template +3 -5
- data/data/webgen/website_templates/default/README +0 -2
- data/data/webgen/website_templates/default/src/index.page +3 -3
- data/data/webgen/website_templates/project/README +0 -4
- data/data/webgen/website_templates/project/src/about.page +5 -5
- data/data/webgen/website_templates/project/src/download.page +3 -3
- data/data/webgen/website_templates/project/src/features.page +3 -3
- data/data/webgen/website_templates/project/src/index.page +4 -4
- data/data/webgen/website_templates/project/src/screenshots.page +5 -5
- data/doc/contentprocessor/erb.page +38 -0
- data/doc/contentprocessor/tags.page +61 -0
- data/doc/extensions.page +11 -0
- data/doc/faq.page +177 -0
- data/doc/getting_started.page +130 -0
- data/doc/index.page +50 -0
- data/doc/manual.page +356 -0
- data/doc/reference_configuration.page +328 -0
- data/doc/reference_metainfo.page +128 -0
- data/doc/sourcehandler/metainfo.page +117 -0
- data/doc/sourcehandler/page.page +32 -0
- data/doc/webgen_page_format.page +126 -0
- data/lib/webgen/blackboard.rb +73 -0
- data/lib/webgen/cache.rb +77 -0
- data/lib/webgen/cli.rb +99 -440
- data/lib/webgen/cli/create_command.rb +64 -0
- data/lib/webgen/cli/run_command.rb +20 -0
- data/lib/webgen/cli/utils.rb +82 -0
- data/lib/webgen/configuration.rb +71 -0
- data/lib/webgen/contentprocessor.rb +89 -0
- data/lib/webgen/contentprocessor/blocks.rb +46 -0
- data/lib/webgen/contentprocessor/context.rb +86 -0
- data/lib/webgen/contentprocessor/maruku.rb +18 -0
- data/lib/webgen/contentprocessor/redcloth.rb +15 -0
- data/lib/webgen/contentprocessor/tags.rb +134 -0
- data/lib/webgen/default_config.rb +128 -0
- data/lib/webgen/languages.rb +508 -40
- data/lib/webgen/loggable.rb +23 -0
- data/lib/webgen/logger.rb +78 -0
- data/lib/webgen/node.rb +275 -237
- data/lib/webgen/output.rb +31 -0
- data/lib/webgen/output/filesystem.rb +61 -0
- data/lib/webgen/page.rb +129 -0
- data/lib/webgen/path.rb +172 -0
- data/lib/webgen/source.rb +24 -0
- data/lib/webgen/source/filesystem.rb +56 -0
- data/lib/webgen/source/resource.rb +33 -0
- data/lib/webgen/source/stacked.rb +53 -0
- data/lib/webgen/sourcehandler.rb +175 -0
- data/lib/webgen/sourcehandler/base.rb +188 -0
- data/lib/webgen/sourcehandler/copy.rb +41 -0
- data/lib/webgen/sourcehandler/directory.rb +31 -0
- data/lib/webgen/sourcehandler/fragment.rb +66 -0
- data/lib/webgen/sourcehandler/metainfo.rb +107 -0
- data/lib/webgen/sourcehandler/page.rb +47 -0
- data/lib/webgen/sourcehandler/template.rb +64 -0
- data/lib/webgen/sourcehandler/virtual.rb +72 -0
- data/lib/webgen/tag.rb +16 -0
- data/lib/webgen/tag/base.rb +162 -0
- data/lib/webgen/tag/menu.rb +187 -0
- data/lib/webgen/tag/metainfo.rb +25 -0
- data/lib/webgen/tag/relocatable.rb +53 -0
- data/lib/webgen/tree.rb +80 -0
- data/lib/webgen/version.rb +6 -0
- data/lib/webgen/webgentask.rb +153 -0
- data/lib/webgen/website.rb +166 -288
- data/lib/webgen/websiteaccess.rb +29 -0
- data/lib/webgen/websitemanager.rb +124 -0
- data/man/man1/webgen.1 +31 -42
- data/misc/default.css +337 -0
- data/misc/default.template +73 -0
- data/misc/htmldoc.metainfo +22 -0
- data/misc/htmldoc.virtual +5 -0
- data/misc/images/arrow.gif +0 -0
- data/misc/images/error.gif +0 -0
- data/misc/images/exclamation.gif +0 -0
- data/misc/images/headerbg.jpg +0 -0
- data/misc/images/information.gif +0 -0
- data/misc/images/quote.gif +0 -0
- data/test/helper.rb +28 -0
- data/test/test_blackboard.rb +58 -0
- data/test/test_cache.rb +57 -0
- data/test/test_configuration.rb +35 -0
- data/test/test_contentprocessor.rb +31 -0
- data/test/test_contentprocessor_blocks.rb +34 -0
- data/test/test_contentprocessor_context.rb +38 -0
- data/test/test_contentprocessor_maruku.rb +24 -0
- data/test/test_contentprocessor_redcloth.rb +12 -0
- data/test/test_contentprocessor_tags.rb +97 -0
- data/test/test_languages.rb +53 -0
- data/test/test_loggable.rb +30 -0
- data/test/test_logger.rb +73 -0
- data/test/test_node.rb +305 -0
- data/test/test_output_filesystem.rb +57 -0
- data/test/test_page.rb +180 -0
- data/test/test_path.rb +112 -0
- data/test/test_source_filesystem.rb +59 -0
- data/test/test_source_resource.rb +21 -0
- data/test/test_source_stacked.rb +34 -0
- data/test/test_sourcehandler_base.rb +78 -0
- data/test/test_sourcehandler_copy.rb +45 -0
- data/test/test_sourcehandler_directory.rb +25 -0
- data/test/test_sourcehandler_fragment.rb +62 -0
- data/test/test_sourcehandler_metainfo.rb +79 -0
- data/test/test_sourcehandler_page.rb +62 -0
- data/test/test_sourcehandler_template.rb +61 -0
- data/test/test_sourcehandler_virtual.rb +46 -0
- data/test/test_tag_base.rb +82 -0
- data/test/test_tag_menu.rb +196 -0
- data/test/test_tag_metainfo.rb +17 -0
- data/test/test_tag_relocatable.rb +57 -0
- data/test/test_tree.rb +69 -0
- data/test/test_website.rb +96 -0
- data/test/test_websiteaccess.rb +23 -0
- data/test/test_websitemanager.rb +68 -0
- metadata +276 -800
- data/ChangeLog +0 -46
- data/README +0 -14
- data/TODO +0 -376
- data/data/webgen/data/ISO-639-2_values_8bits.txt +0 -492
- data/data/webgen/gallery-creator/default.png +0 -0
- data/data/webgen/gallery_styles/default/README +0 -6
- data/data/webgen/gallery_styles/default/gallery_gallery.template +0 -38
- data/data/webgen/gallery_styles/default/gallery_image.template +0 -30
- data/data/webgen/gallery_styles/default/gallery_main.template +0 -18
- data/data/webgen/gallery_styles/slides/README +0 -18
- data/data/webgen/gallery_styles/slides/collage.rb +0 -337
- data/data/webgen/gallery_styles/slides/gallery_gallery.template +0 -62
- data/data/webgen/gallery_styles/slides/gallery_image.template +0 -53
- data/data/webgen/gallery_styles/slides/gallery_main.template +0 -32
- data/data/webgen/icon_mapping.yaml +0 -27
- data/data/webgen/resources/emoticons/bigeyes/angry.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/cool.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/cry.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/drunk.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/lol.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/oops.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/sad.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/sleep.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/smile.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/tongue.png +0 -0
- data/data/webgen/resources/emoticons/bigeyes/wink.png +0 -0
- data/data/webgen/resources/emoticons/crystal/angry.png +0 -0
- data/data/webgen/resources/emoticons/crystal/cool.png +0 -0
- data/data/webgen/resources/emoticons/crystal/cry.png +0 -0
- data/data/webgen/resources/emoticons/crystal/drunk.png +0 -0
- data/data/webgen/resources/emoticons/crystal/lol.png +0 -0
- data/data/webgen/resources/emoticons/crystal/oops.png +0 -0
- data/data/webgen/resources/emoticons/crystal/sad.png +0 -0
- data/data/webgen/resources/emoticons/crystal/sleep.png +0 -0
- data/data/webgen/resources/emoticons/crystal/smile.png +0 -0
- data/data/webgen/resources/emoticons/crystal/tongue.png +0 -0
- data/data/webgen/resources/emoticons/crystal/wink.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/angry.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/cool.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/cry.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/drunk.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/lol.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/oops.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/sad.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/sleep.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/smile.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/tongue.png +0 -0
- data/data/webgen/resources/emoticons/cyclops/wink.png +0 -0
- data/data/webgen/resources/emoticons/glass/angry.png +0 -0
- data/data/webgen/resources/emoticons/glass/cool.png +0 -0
- data/data/webgen/resources/emoticons/glass/cry.png +0 -0
- data/data/webgen/resources/emoticons/glass/drunk.png +0 -0
- data/data/webgen/resources/emoticons/glass/lol.png +0 -0
- data/data/webgen/resources/emoticons/glass/oops.png +0 -0
- data/data/webgen/resources/emoticons/glass/sad.png +0 -0
- data/data/webgen/resources/emoticons/glass/sleep.png +0 -0
- data/data/webgen/resources/emoticons/glass/smile.png +0 -0
- data/data/webgen/resources/emoticons/glass/tongue.png +0 -0
- data/data/webgen/resources/emoticons/glass/wink.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/angry.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/cool.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/cry.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/drunk.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/lol.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/oops.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/sad.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/sleep.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/smile.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/tongue.png +0 -0
- data/data/webgen/resources/emoticons/icqstyle/wink.png +0 -0
- data/data/webgen/resources/emoticons/matrix/angry.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/cool.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/cry.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/drunk.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/lol.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/oops.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/sad.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/sleep.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/smile.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/tongue.gif +0 -0
- data/data/webgen/resources/emoticons/matrix/wink.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/angry.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/cool.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/cry.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/drunk.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/lol.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/oops.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/sad.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/sleep.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/smile.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/tongue.gif +0 -0
- data/data/webgen/resources/emoticons/smellies/wink.gif +0 -0
- data/data/webgen/resources/icons/compressed.png +0 -0
- data/data/webgen/resources/icons/document.png +0 -0
- data/data/webgen/resources/icons/download.png +0 -0
- data/data/webgen/resources/icons/image.png +0 -0
- data/data/webgen/resources/icons/linux.png +0 -0
- data/data/webgen/resources/icons/mac.png +0 -0
- data/data/webgen/resources/icons/pdf.png +0 -0
- data/data/webgen/resources/icons/penguin.png +0 -0
- data/data/webgen/resources/icons/quicktime.png +0 -0
- data/data/webgen/resources/icons/real.png +0 -0
- data/data/webgen/resources/icons/rpm.png +0 -0
- data/data/webgen/resources/icons/sound.png +0 -0
- data/data/webgen/resources/icons/source.png +0 -0
- data/data/webgen/resources/icons/spreadsheet.png +0 -0
- data/data/webgen/resources/icons/text.png +0 -0
- data/data/webgen/resources/icons/vcard.png +0 -0
- data/data/webgen/resources/icons/video.png +0 -0
- data/data/webgen/resources/icons/win.png +0 -0
- data/data/webgen/resources/images/generated_by_webgen.png +0 -0
- data/data/webgen/resources/images/valid-css.gif +0 -0
- data/data/webgen/resources/images/valid-xhtml11.png +0 -0
- data/data/webgen/resources/images/webgen_logo.png +0 -0
- data/data/webgen/sipttra_styles/default/README +0 -7
- data/data/webgen/sipttra_styles/default/css/sipttra.rcss +0 -71
- data/data/webgen/sipttra_styles/default/js/sipttra.js +0 -7
- data/data/webgen/sipttra_styles/default/sipttra.template +0 -105
- data/data/webgen/website_styles/andreas00/default.template +0 -62
- data/data/webgen/website_styles/andreas01/default.template +0 -63
- data/data/webgen/website_styles/andreas06/default.template +0 -72
- data/data/webgen/website_styles/andreas07/default.template +0 -44
- data/data/webgen/website_styles/andreas08/default.template +0 -53
- data/data/webgen/website_styles/default/default.template +0 -38
- data/data/webgen/website_templates/personal_hp/README +0 -8
- data/data/webgen/website_templates/personal_hp/src/about.page +0 -12
- data/data/webgen/website_templates/personal_hp/src/index.page +0 -9
- data/data/webgen/website_templates/personal_hp/src/links.page +0 -22
- data/data/webgen/website_templates/personal_hp/src/projects.page +0 -20
- data/doc/config.yaml +0 -8
- data/doc/examples/website_styles/1024px/README +0 -9
- data/doc/examples/website_styles/1024px/config.yaml +0 -2
- data/doc/examples/website_styles/1024px/src/about.page +0 -12
- data/doc/examples/website_styles/1024px/src/default.css +0 -188
- data/doc/examples/website_styles/1024px/src/default.template +0 -62
- data/doc/examples/website_styles/1024px/src/download.page +0 -15
- data/doc/examples/website_styles/1024px/src/features.page +0 -8
- data/doc/examples/website_styles/1024px/src/images/background.gif +0 -0
- data/doc/examples/website_styles/1024px/src/index.page +0 -9
- data/doc/examples/website_styles/1024px/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas00/README +0 -9
- data/doc/examples/website_styles/andreas00/config.yaml +0 -2
- data/doc/examples/website_styles/andreas00/src/about.page +0 -12
- data/doc/examples/website_styles/andreas00/src/default.css +0 -290
- data/doc/examples/website_styles/andreas00/src/download.page +0 -15
- data/doc/examples/website_styles/andreas00/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas00/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas01/README +0 -9
- data/doc/examples/website_styles/andreas01/config.yaml +0 -2
- data/doc/examples/website_styles/andreas01/src/about.page +0 -12
- data/doc/examples/website_styles/andreas01/src/default.css +0 -310
- data/doc/examples/website_styles/andreas01/src/download.page +0 -15
- data/doc/examples/website_styles/andreas01/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas01/src/print.css +0 -35
- data/doc/examples/website_styles/andreas01/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas03/README +0 -9
- data/doc/examples/website_styles/andreas03/config.yaml +0 -2
- data/doc/examples/website_styles/andreas03/src/about.page +0 -12
- data/doc/examples/website_styles/andreas03/src/default.css +0 -223
- data/doc/examples/website_styles/andreas03/src/default.template +0 -60
- data/doc/examples/website_styles/andreas03/src/download.page +0 -15
- data/doc/examples/website_styles/andreas03/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas03/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas04/README +0 -9
- data/doc/examples/website_styles/andreas04/config.yaml +0 -2
- data/doc/examples/website_styles/andreas04/src/about.page +0 -12
- data/doc/examples/website_styles/andreas04/src/default.css +0 -290
- data/doc/examples/website_styles/andreas04/src/default.template +0 -83
- data/doc/examples/website_styles/andreas04/src/download.page +0 -15
- data/doc/examples/website_styles/andreas04/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas04/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas05/README +0 -9
- data/doc/examples/website_styles/andreas05/config.yaml +0 -2
- data/doc/examples/website_styles/andreas05/src/about.page +0 -12
- data/doc/examples/website_styles/andreas05/src/default.css +0 -33
- data/doc/examples/website_styles/andreas05/src/default.template +0 -42
- data/doc/examples/website_styles/andreas05/src/download.page +0 -15
- data/doc/examples/website_styles/andreas05/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas05/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas06/README +0 -9
- data/doc/examples/website_styles/andreas06/config.yaml +0 -2
- data/doc/examples/website_styles/andreas06/src/about.page +0 -12
- data/doc/examples/website_styles/andreas06/src/default.css +0 -354
- data/doc/examples/website_styles/andreas06/src/download.page +0 -15
- data/doc/examples/website_styles/andreas06/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas06/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas07/README +0 -9
- data/doc/examples/website_styles/andreas07/config.yaml +0 -2
- data/doc/examples/website_styles/andreas07/src/about.page +0 -12
- data/doc/examples/website_styles/andreas07/src/browserfix.css +0 -7
- data/doc/examples/website_styles/andreas07/src/default.css +0 -92
- data/doc/examples/website_styles/andreas07/src/download.page +0 -15
- data/doc/examples/website_styles/andreas07/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas07/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas08/README +0 -9
- data/doc/examples/website_styles/andreas08/config.yaml +0 -2
- data/doc/examples/website_styles/andreas08/src/about.page +0 -12
- data/doc/examples/website_styles/andreas08/src/default.css +0 -224
- data/doc/examples/website_styles/andreas08/src/download.page +0 -15
- data/doc/examples/website_styles/andreas08/src/features.page +0 -8
- data/doc/examples/website_styles/andreas08/src/index.page +0 -9
- data/doc/examples/website_styles/andreas08/src/screenshots.page +0 -18
- data/doc/examples/website_styles/andreas09/README +0 -9
- data/doc/examples/website_styles/andreas09/config.yaml +0 -2
- data/doc/examples/website_styles/andreas09/src/about.page +0 -12
- data/doc/examples/website_styles/andreas09/src/default.css +0 -308
- data/doc/examples/website_styles/andreas09/src/default.template +0 -70
- data/doc/examples/website_styles/andreas09/src/download.page +0 -15
- data/doc/examples/website_styles/andreas09/src/features.page +0 -8
- 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 +0 -9
- data/doc/examples/website_styles/andreas09/src/screenshots.page +0 -18
- data/doc/examples/website_styles/default/README +0 -9
- data/doc/examples/website_styles/default/config.yaml +0 -2
- data/doc/examples/website_styles/default/src/about.page +0 -12
- data/doc/examples/website_styles/default/src/default.css +0 -84
- data/doc/examples/website_styles/default/src/download.page +0 -15
- data/doc/examples/website_styles/default/src/features.page +0 -8
- data/doc/examples/website_styles/default/src/index.page +0 -9
- data/doc/examples/website_styles/default/src/screenshots.page +0 -18
- data/doc/examples/website_templates/default/README +0 -8
- data/doc/examples/website_templates/default/config.yaml +0 -2
- data/doc/examples/website_templates/default/src/default.css +0 -84
- data/doc/examples/website_templates/default/src/default.template +0 -38
- data/doc/examples/website_templates/default/src/index.page +0 -8
- data/doc/examples/website_templates/personal_hp/README +0 -8
- data/doc/examples/website_templates/personal_hp/config.yaml +0 -2
- data/doc/examples/website_templates/personal_hp/src/about.page +0 -12
- data/doc/examples/website_templates/personal_hp/src/default.css +0 -84
- data/doc/examples/website_templates/personal_hp/src/default.template +0 -38
- data/doc/examples/website_templates/personal_hp/src/index.page +0 -9
- data/doc/examples/website_templates/personal_hp/src/links.page +0 -22
- data/doc/examples/website_templates/personal_hp/src/projects.page +0 -20
- data/doc/examples/website_templates/project/README +0 -9
- data/doc/examples/website_templates/project/config.yaml +0 -2
- data/doc/examples/website_templates/project/src/about.page +0 -12
- data/doc/examples/website_templates/project/src/default.css +0 -84
- data/doc/examples/website_templates/project/src/default.template +0 -38
- data/doc/examples/website_templates/project/src/download.page +0 -15
- data/doc/examples/website_templates/project/src/features.page +0 -8
- data/doc/examples/website_templates/project/src/index.page +0 -9
- data/doc/examples/website_templates/project/src/screenshots.page +0 -18
- data/doc/metainfo.yaml +0 -105
- data/doc/plugin/emoticon.rb +0 -27
- data/doc/plugin/extension.rb +0 -163
- data/doc/plugin/gallery/slides/collage.rb +0 -337
- data/doc/plugin/listpluginparameters.rb +0 -37
- data/doc/plugin/resources.rb +0 -28
- data/doc/src/css/sipttra.rcss +0 -71
- data/doc/src/default.css +0 -434
- data/doc/src/default.template +0 -125
- data/doc/src/documentation/basics.page +0 -148
- data/doc/src/documentation/extending_webgen.page +0 -104
- data/doc/src/documentation/howto.page +0 -221
- data/doc/src/documentation/index.page +0 -50
- data/doc/src/documentation/plugins/contentconverter/default.page +0 -16
- data/doc/src/documentation/plugins/contentconverter/haml.page +0 -21
- data/doc/src/documentation/plugins/contentconverter/html.page +0 -10
- data/doc/src/documentation/plugins/contentconverter/markdown.page +0 -21
- data/doc/src/documentation/plugins/contentconverter/maruku.page +0 -23
- data/doc/src/documentation/plugins/contentconverter/rdoc.page +0 -11
- data/doc/src/documentation/plugins/contentconverter/sass.page +0 -36
- data/doc/src/documentation/plugins/contentconverter/textile.page +0 -21
- data/doc/src/documentation/plugins/contentconverter/xmlbuilder.page +0 -61
- data/doc/src/documentation/plugins/core/configuration.page +0 -17
- data/doc/src/documentation/plugins/core/filehandler.page +0 -220
- data/doc/src/documentation/plugins/core/index.page +0 -11
- data/doc/src/documentation/plugins/core/resourcemanager.page +0 -40
- data/doc/src/documentation/plugins/core/tagprocessor.page +0 -17
- data/doc/src/documentation/plugins/file/copyhandler.page +0 -26
- data/doc/src/documentation/plugins/file/defaulthandler.page +0 -16
- data/doc/src/documentation/plugins/file/directoryhandler.page +0 -37
- data/doc/src/documentation/plugins/file/galleryhandler.page +0 -190
- data/doc/src/documentation/plugins/file/pagehandler.page +0 -154
- data/doc/src/documentation/plugins/file/sipttrahandler.page +0 -18
- data/doc/src/documentation/plugins/file/templatehandler.page +0 -51
- data/doc/src/documentation/plugins/file/thumbnailwriter.page +0 -42
- data/doc/src/documentation/plugins/htmlvalidator/default.page +0 -13
- data/doc/src/documentation/plugins/htmlvalidator/xmllint.page +0 -12
- data/doc/src/documentation/plugins/index.page +0 -53
- data/doc/src/documentation/plugins/menustyle/default.page +0 -20
- data/doc/src/documentation/plugins/menustyle/horizontal.page +0 -36
- data/doc/src/documentation/plugins/menustyle/horizontaldropdown.page +0 -48
- data/doc/src/documentation/plugins/menustyle/section.page +0 -34
- data/doc/src/documentation/plugins/menustyle/vertical.page +0 -48
- data/doc/src/documentation/plugins/menustyle/verticaldropdown.page +0 -29
- data/doc/src/documentation/plugins/misc/index.page +0 -9
- data/doc/src/documentation/plugins/misc/smileyreplacer.page +0 -39
- data/doc/src/documentation/plugins/misc/syntaxhighlighter.page +0 -26
- data/doc/src/documentation/plugins/tag/block.page +0 -29
- data/doc/src/documentation/plugins/tag/breadcrumbtrail.page +0 -41
- data/doc/src/documentation/plugins/tag/customvar.page +0 -11
- data/doc/src/documentation/plugins/tag/date.page +0 -34
- data/doc/src/documentation/plugins/tag/default.page +0 -28
- data/doc/src/documentation/plugins/tag/download.page +0 -60
- data/doc/src/documentation/plugins/tag/executecommand.page +0 -29
- data/doc/src/documentation/plugins/tag/htmlmetainfo.page +0 -32
- data/doc/src/documentation/plugins/tag/includefile.page +0 -30
- data/doc/src/documentation/plugins/tag/langbar.de.page +0 -6
- data/doc/src/documentation/plugins/tag/langbar.fr.page +0 -6
- data/doc/src/documentation/plugins/tag/langbar.page +0 -41
- data/doc/src/documentation/plugins/tag/menu.page +0 -78
- data/doc/src/documentation/plugins/tag/meta.page +0 -21
- data/doc/src/documentation/plugins/tag/news.page +0 -48
- data/doc/src/documentation/plugins/tag/relocatable.page +0 -46
- data/doc/src/documentation/plugins/tag/resource.page +0 -35
- data/doc/src/documentation/plugins/tag/sitemap.page +0 -35
- data/doc/src/documentation/plugins/tag/wikilink.page +0 -33
- data/doc/src/documentation/references/index.page +0 -34
- data/doc/src/documentation/references/meta_info_reference.page +0 -136
- data/doc/src/documentation/references/parameter_reference.page +0 -11
- data/doc/src/documentation/references/resource_reference.page +0 -18
- data/doc/src/documentation/references/sipttra_format.page +0 -241
- data/doc/src/documentation/references/webpage_format.page +0 -253
- data/doc/src/documentation/tutorial.page +0 -167
- data/doc/src/download.page +0 -74
- data/doc/src/examples/example_sites/index.page +0 -45
- data/doc/src/examples/example_sites/personal.zip +0 -0
- data/doc/src/examples/example_sites/photo_gallery.zip +0 -0
- data/doc/src/examples/gallery_styles/default/default.gallery +0 -78
- data/doc/src/examples/gallery_styles/default/gallery_gallery.template +0 -38
- data/doc/src/examples/gallery_styles/default/gallery_image.template +0 -30
- data/doc/src/examples/gallery_styles/default/gallery_main.template +0 -18
- data/doc/src/examples/gallery_styles/index.page +0 -22
- data/doc/src/examples/gallery_styles/slides/gallery_gallery.template +0 -62
- data/doc/src/examples/gallery_styles/slides/gallery_image.template +0 -53
- data/doc/src/examples/gallery_styles/slides/gallery_main.template +0 -32
- data/doc/src/examples/gallery_styles/slides/slides.gallery +0 -79
- 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 +0 -19
- data/doc/src/examples/sipttra_styles/default.page +0 -5
- data/doc/src/examples/sipttra_styles/default/css/sipttra.rcss +0 -71
- data/doc/src/examples/sipttra_styles/default/default.template +0 -16
- data/doc/src/examples/sipttra_styles/default/index.todo +0 -60
- data/doc/src/examples/sipttra_styles/default/js/sipttra.js +0 -7
- data/doc/src/examples/sipttra_styles/default/sipttra.template +0 -105
- data/doc/src/examples/sipttra_styles/index.page +0 -17
- data/doc/src/examples/website_styles/1024px.page +0 -5
- data/doc/src/examples/website_styles/andreas00.page +0 -5
- data/doc/src/examples/website_styles/andreas01.page +0 -5
- data/doc/src/examples/website_styles/andreas03.page +0 -5
- data/doc/src/examples/website_styles/andreas04.page +0 -5
- data/doc/src/examples/website_styles/andreas05.page +0 -5
- data/doc/src/examples/website_styles/andreas06.page +0 -5
- data/doc/src/examples/website_styles/andreas07.page +0 -5
- data/doc/src/examples/website_styles/andreas08.page +0 -5
- data/doc/src/examples/website_styles/andreas09.page +0 -5
- data/doc/src/examples/website_styles/default.page +0 -5
- data/doc/src/examples/website_styles/index.page +0 -76
- data/doc/src/examples/website_templates/default.page +0 -5
- data/doc/src/examples/website_templates/index.page +0 -24
- data/doc/src/examples/website_templates/personal_hp.page +0 -5
- data/doc/src/examples/website_templates/project.page +0 -5
- data/doc/src/features.page +0 -41
- 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 +0 -7132
- 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 +0 -32
- data/doc/src/js/sipttra.js +0 -7
- data/doc/src/news.page +0 -256
- data/doc/src/plugin.template +0 -10
- data/doc/src/project.todo +0 -144
- data/doc/src/sipttra.template +0 -105
- data/lib/webgen/composite.rb +0 -101
- data/lib/webgen/config.rb +0 -52
- data/lib/webgen/content.rb +0 -172
- data/lib/webgen/extcommand.rb +0 -23
- data/lib/webgen/gui/common.rb +0 -38
- data/lib/webgen/gui/main.rb +0 -219
- data/lib/webgen/gui/new_website_dlg.rb +0 -125
- data/lib/webgen/listener.rb +0 -105
- data/lib/webgen/plugin.rb +0 -578
- data/lib/webgen/plugins/contentconverters/default.rb +0 -40
- data/lib/webgen/plugins/contentconverters/haml.rb +0 -71
- data/lib/webgen/plugins/contentconverters/html.rb +0 -43
- data/lib/webgen/plugins/contentconverters/markdown.rb +0 -54
- data/lib/webgen/plugins/contentconverters/maruku.rb +0 -33
- data/lib/webgen/plugins/contentconverters/rdoc.rb +0 -54
- data/lib/webgen/plugins/contentconverters/textile.rb +0 -54
- data/lib/webgen/plugins/contentconverters/xmlbuilder.rb +0 -58
- data/lib/webgen/plugins/coreplugins/configuration.rb +0 -45
- data/lib/webgen/plugins/coreplugins/resourcemanager.rb +0 -307
- data/lib/webgen/plugins/filehandlers/copy.rb +0 -82
- data/lib/webgen/plugins/filehandlers/directory.rb +0 -126
- data/lib/webgen/plugins/filehandlers/filehandler.rb +0 -486
- data/lib/webgen/plugins/filehandlers/gallery.rb +0 -486
- data/lib/webgen/plugins/filehandlers/page.rb +0 -255
- data/lib/webgen/plugins/filehandlers/sipttra.rb +0 -73
- data/lib/webgen/plugins/filehandlers/template.rb +0 -115
- data/lib/webgen/plugins/htmlvalidators/default.rb +0 -39
- data/lib/webgen/plugins/htmlvalidators/xmllint.rb +0 -54
- data/lib/webgen/plugins/menustyles/default.rb +0 -80
- data/lib/webgen/plugins/menustyles/horizontal.rb +0 -85
- data/lib/webgen/plugins/menustyles/horizontal_dropdown.rb +0 -99
- data/lib/webgen/plugins/menustyles/section.rb +0 -68
- data/lib/webgen/plugins/menustyles/vertical.rb +0 -87
- data/lib/webgen/plugins/menustyles/vertical_dropdown.rb +0 -99
- data/lib/webgen/plugins/miscplugins/rendered_files.rb +0 -75
- data/lib/webgen/plugins/miscplugins/smileyreplacer.rb +0 -87
- data/lib/webgen/plugins/miscplugins/syntax_highlighter.rb +0 -72
- data/lib/webgen/plugins/miscplugins/treewalker.rb +0 -91
- data/lib/webgen/plugins/tags/block.rb +0 -65
- data/lib/webgen/plugins/tags/breadcrumbtrail.rb +0 -75
- data/lib/webgen/plugins/tags/customvar.rb +0 -54
- data/lib/webgen/plugins/tags/date.rb +0 -46
- data/lib/webgen/plugins/tags/download.rb +0 -155
- data/lib/webgen/plugins/tags/executecommand.rb +0 -69
- data/lib/webgen/plugins/tags/htmlmetainfo.rb +0 -27
- data/lib/webgen/plugins/tags/includefile.rb +0 -69
- data/lib/webgen/plugins/tags/langbar.rb +0 -55
- data/lib/webgen/plugins/tags/menu.rb +0 -111
- data/lib/webgen/plugins/tags/meta.rb +0 -53
- data/lib/webgen/plugins/tags/news.rb +0 -151
- data/lib/webgen/plugins/tags/relocatable.rb +0 -94
- data/lib/webgen/plugins/tags/sitemap.rb +0 -82
- data/lib/webgen/plugins/tags/tag_processor.rb +0 -279
- data/lib/webgen/plugins/tags/wikilink.rb +0 -62
- data/lib/webgen/rake/webgentask.rb +0 -161
- data/lib/webgen/sipttra_format.rb +0 -343
- data/lib/webgen/test.rb +0 -202
- data/test/fixtures/sample_site/src/chained.template +0 -3
- data/test/fixtures/sample_site/src/default.template +0 -3
- data/test/fixtures/sample_site/src/dir1/dir11/file111.de.page +0 -3
- data/test/fixtures/sample_site/src/dir1/dir11/file111.page +0 -3
- data/test/fixtures/sample_site/src/dir1/dir11/index.page +0 -3
- data/test/fixtures/sample_site/src/dir1/file11.page +0 -3
- data/test/fixtures/sample_site/src/dir2/file21.page +0 -3
- data/test/fixtures/sample_site/src/embedded.rhtml +0 -1
- data/test/fixtures/sample_site/src/file1.page +0 -8
- data/test/fixtures/sample_site/src/file2.de.page +0 -6
- data/test/fixtures/sample_site/src/index.de.page +0 -5
- data/test/fixtures/sample_site/src/index.en.page +0 -1
- data/test/fixtures/sample_site/src/invalid.template +0 -3
- data/test/fixtures/sample_site/src/test.jpg +0 -1
- data/test/fixtures/sample_site/src/test.template +0 -3
- data/test/fixtures/sample_site/src/test.todo +0 -7
- data/test/fixtures/tc_content/blocks.yaml +0 -40
- data/test/fixtures/tc_content/correct.yaml +0 -65
- data/test/fixtures/tc_content/incorrect.yaml +0 -42
- data/test/fixtures/tc_filehandler_filehandler/backing/metainfo.yaml +0 -9
- data/test/fixtures/tc_filehandler_filehandler/backing_empty/metainfo.yaml +0 -6
- data/test/fixtures/tc_filehandler_filehandler/sample_plugin.rb +0 -49
- data/test/fixtures/tc_filehandler_filehandler/unmodified +0 -0
- data/test/fixtures/tc_filehandler_gallery/test.gallery +0 -2
- data/test/fixtures/tc_filehandler_gallery/test1.gallery +0 -2
- 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 +0 -10
- data/test/fixtures/tc_menustyles_default/menustyle.rb +0 -7
- data/test/fixtures/tc_node/nodes.yaml +0 -64
- data/test/fixtures/tc_plugin/handlerplugin.rb +0 -15
- data/test/fixtures/tc_plugin/plugin1.rb +0 -35
- data/test/fixtures/tc_plugin/plugin2.rb +0 -8
- data/test/fixtures/tc_sipttra_format/test.sipttra +0 -46
- data/test/fixtures/tc_tags_includefile/testfile +0 -1
- data/test/fixtures/tc_tags_tag_processor/test_file1 +0 -1
- data/test/fixtures/tc_tags_tag_processor/testtag.rb +0 -17
- data/test/fixtures/tc_website/correct.yaml +0 -6
- data/test/fixtures/tc_website/incorrect_structure.yaml +0 -2
- data/test/fixtures/tc_website/incorrect_yaml.yaml +0 -5
- data/test/fixtures/tc_website/meta_info_test.yaml +0 -10
- data/test/fixtures/tc_website/testdir/README +0 -1
- data/test/fixtures/tc_website/testdir/falsedir/README +0 -1
- data/test/runtests.rb +0 -2
- data/test/unittests/tc_composite.rb +0 -82
- data/test/unittests/tc_config.rb +0 -18
- data/test/unittests/tc_content.rb +0 -96
- data/test/unittests/tc_contentconverters_default.rb +0 -13
- data/test/unittests/tc_contentconverters_html.rb +0 -16
- data/test/unittests/tc_contentconverters_markdown.rb +0 -22
- data/test/unittests/tc_contentconverters_rdoc.rb +0 -16
- data/test/unittests/tc_contentconverters_textile.rb +0 -22
- data/test/unittests/tc_contentconverters_xmlbuilder.rb +0 -22
- data/test/unittests/tc_filehandler_copy.rb +0 -65
- data/test/unittests/tc_filehandler_directory.rb +0 -134
- data/test/unittests/tc_filehandler_filehandler.rb +0 -294
- data/test/unittests/tc_filehandler_gallery.rb +0 -165
- data/test/unittests/tc_filehandler_page.rb +0 -183
- data/test/unittests/tc_filehandler_sipttra.rb +0 -26
- data/test/unittests/tc_filehandler_template.rb +0 -64
- data/test/unittests/tc_htmlvalidators_default.rb +0 -12
- data/test/unittests/tc_htmlvalidators_xmllint.rb +0 -19
- data/test/unittests/tc_languages.rb +0 -57
- data/test/unittests/tc_listener.rb +0 -72
- data/test/unittests/tc_menustyles_default.rb +0 -51
- data/test/unittests/tc_menustyles_horizontal.rb +0 -64
- data/test/unittests/tc_menustyles_horizontal_dropdown.rb +0 -18
- data/test/unittests/tc_menustyles_section.rb +0 -59
- data/test/unittests/tc_menustyles_vertical.rb +0 -79
- data/test/unittests/tc_menustyles_vertical_dropdown.rb +0 -18
- data/test/unittests/tc_node.rb +0 -205
- data/test/unittests/tc_plugin.rb +0 -221
- data/test/unittests/tc_resourcemanager.rb +0 -42
- data/test/unittests/tc_sipttra_format.rb +0 -58
- data/test/unittests/tc_smileyreplacer.rb +0 -25
- data/test/unittests/tc_syntax_highlighter.rb +0 -30
- data/test/unittests/tc_tags_block.rb +0 -27
- data/test/unittests/tc_tags_breadcrumbtrail.rb +0 -56
- data/test/unittests/tc_tags_customvar.rb +0 -24
- data/test/unittests/tc_tags_date.rb +0 -16
- data/test/unittests/tc_tags_download.rb +0 -32
- data/test/unittests/tc_tags_executecommand.rb +0 -37
- data/test/unittests/tc_tags_includefile.rb +0 -46
- data/test/unittests/tc_tags_langbar.rb +0 -42
- data/test/unittests/tc_tags_menu.rb +0 -50
- data/test/unittests/tc_tags_meta.rb +0 -19
- data/test/unittests/tc_tags_relocatable.rb +0 -66
- data/test/unittests/tc_tags_sitemap.rb +0 -33
- data/test/unittests/tc_tags_tag_processor.rb +0 -107
- data/test/unittests/tc_tags_wikilink.rb +0 -22
- data/test/unittests/tc_treewalker.rb +0 -51
- data/test/unittests/tc_website.rb +0 -188
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Basics
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2(#directories). The Needed Directories
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
webgen needs a special directory structure so that it can work correctly. Basically, you have a
|
|
9
|
-
website directory under which the following directories have to be:
|
|
10
|
-
|
|
11
|
-
* @src@: The source directory in which all the source files for the website are. The name of this
|
|
12
|
-
directory cannot be changed!
|
|
13
|
-
* @output@: This directory is created, if it does not exist, when webgen is run. All the output
|
|
14
|
-
files are put into this directory. The name of this directory and its location can be customized
|
|
15
|
-
using the parameter {param: Core/Configuration:outDir}.
|
|
16
|
-
* @plugin@: The extension directory. You can put self-written plugins into this directory so that
|
|
17
|
-
they can be used by webgen. All <notextile><tt>*.rb</tt></notextile> files in this directory and
|
|
18
|
-
its subdirectories are loaded as plugins. The name of this directory can't be customized, too!
|
|
19
|
-
|
|
20
|
-
The directory in which these directories are in is called the *website directory*.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
h2(#cmdline). The @webgen@ Command
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
The executable for webgen is called... webgen ;-) It uses a command style syntax (like Subversion's
|
|
27
|
-
@svn@ or Rubygem's @gem@ commands) through the "cmdparse":http://cmdparse.rubyforge.org library. To
|
|
28
|
-
get an overview of the possible commands run
|
|
29
|
-
|
|
30
|
-
<pre>
|
|
31
|
-
$ webgen help
|
|
32
|
-
</pre>
|
|
33
|
-
|
|
34
|
-
This will output something like this:
|
|
35
|
-
|
|
36
|
-
<pre>
|
|
37
|
-
Usage: webgen [options] COMMAND [options] [COMMAND [options] ...] [args]
|
|
38
|
-
|
|
39
|
-
Available commands:
|
|
40
|
-
check Checks things like validity of the config file or the availability of optional libraries
|
|
41
|
-
config Checks the validity of the configuration and outputs the used options (=default command)
|
|
42
|
-
libs Checks the availability of optional libraries used by plugins
|
|
43
|
-
create Creates the basic directories and files for webgen.
|
|
44
|
-
help Provide help for individual commands
|
|
45
|
-
run Runs webgen, ie. generates the HTML files (=default command)
|
|
46
|
-
show Shows various information
|
|
47
|
-
config Shows information like the parameters for all or the matched plugins
|
|
48
|
-
plugins Shows the available plugins
|
|
49
|
-
use Changes the used website or gallery styles
|
|
50
|
-
gallery_style Changes the used gallery style
|
|
51
|
-
website_style Changes the used website style
|
|
52
|
-
version Show the version of the program
|
|
53
|
-
|
|
54
|
-
Global options:
|
|
55
|
-
-d, --directory DIR The website directory, if none specified, current directory is used.
|
|
56
|
-
-V, --verbosity LEVEL The verbosity level (0-3)
|
|
57
|
-
-h, --help Show help
|
|
58
|
-
-v, --version Show the version of the program
|
|
59
|
-
</pre>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
As you can see, webgen supports many commands, from checking the validity of the configuration and
|
|
63
|
-
the available libraries to displaying the configuration values. However, the main command is the
|
|
64
|
-
@run@ command which does the actual website generation. This command uses the current working
|
|
65
|
-
directory as website directory if none was specified via the @-d@ option.
|
|
66
|
-
|
|
67
|
-
You can invoke a command by specifying it after the executable name. If we also think of the
|
|
68
|
-
executable @webgen@ as a command, then the options for a command are specified directly after the
|
|
69
|
-
command name and before the next command or any arguments. For example, all the following command
|
|
70
|
-
lines are valid:
|
|
71
|
-
|
|
72
|
-
<pre>
|
|
73
|
-
$ webgen
|
|
74
|
-
$ webgen run
|
|
75
|
-
$ webgen -d doc run
|
|
76
|
-
$ webgen -V 0 create -t project
|
|
77
|
-
$ webgen show config
|
|
78
|
-
$ webgen help create
|
|
79
|
-
$ webgen help show config
|
|
80
|
-
</pre>
|
|
81
|
-
|
|
82
|
-
The commands on the first and second line do the same because of the @run@ command being the default
|
|
83
|
-
command. The third command specifies a global option, as does the fourth. However, the fourth also
|
|
84
|
-
specifies a command specific option @-t@. The fifth command shows how nested commands are used; in
|
|
85
|
-
this case the @config@ command under the @show@ command is executed. The last two commands show how
|
|
86
|
-
the included @help@ command works: the sixth command shows the help for the @create@ command and the
|
|
87
|
-
last one shows it for the nested @show config@ command.
|
|
88
|
-
|
|
89
|
-
For more information on how the commands work have a look at the
|
|
90
|
-
"cmdparse":http://cmdparse.rubyforge.org documentation!
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
h2(#config). Configuration
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
webgen provides a default configuration out of the box. If you can live with that, you do not need
|
|
97
|
-
to write any configuration files. Because most people cannot, you can use your own configuration
|
|
98
|
-
file. The configuration file has to be written in YAML and is called @config.yaml@. webgen assumes
|
|
99
|
-
it to be in the website directory.
|
|
100
|
-
|
|
101
|
-
Each plugin can specify parameters which can be configured through the configuration file. You can
|
|
102
|
-
display a list of all available parameters by running
|
|
103
|
-
|
|
104
|
-
<pre>
|
|
105
|
-
$ webgen show config
|
|
106
|
-
</pre>
|
|
107
|
-
|
|
108
|
-
(This information is also provided on this website, have a look at the
|
|
109
|
-
<a href="{relocatable: plugins}">plugins section</a>!)
|
|
110
|
-
|
|
111
|
-
The list shows sorted by the plugin name the current values and the default values for each
|
|
112
|
-
parameter. Each parameter can be overridden in the configuration file by specifing the plugin name
|
|
113
|
-
as top level key and each parameter and value as a key/value pair. Therefore a configuration file
|
|
114
|
-
looks like this (this is the one for the webgen homepage):
|
|
115
|
-
|
|
116
|
-
<pre class="webgen-file">{includeFile: ../../config.yaml}</pre>
|
|
117
|
-
|
|
118
|
-
There is a special key for file handler plugins: @defaultMetaInfo@. It's value should be a hash with
|
|
119
|
-
the default meta information for nodes created by the plugin. The value is used to update the
|
|
120
|
-
correct part of the {param: Core/FileHandler:defaultMetaInfo} parameter *if and only if* no value
|
|
121
|
-
for the {param: Core/FileHandler:defaultMetaInfo} parameter has been set in the configuration file!
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
h2(#filetypes). File Types
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
webgen can handle different file types in the source directory through its plugin concept. The
|
|
128
|
-
{plugin: File} plugins are used for this task.
|
|
129
|
-
|
|
130
|
-
The most important files are the page and template files as they are used to define the content and
|
|
131
|
-
the layout of your website. Have a look at the
|
|
132
|
-
<a href="{relocatable:references/webpage_format.page}">WebPage Format</a> documentation to see how
|
|
133
|
-
these files look like and how they are structured. After that have a look at the documentation for
|
|
134
|
-
the plugins {plugin: File/PageHandler} and {plugin: File/TemplateHandler} as they are responsible
|
|
135
|
-
for handling the page and template files!
|
|
136
|
-
|
|
137
|
-
You can naturally use any other type of file in the webgen source directory. However, be aware that
|
|
138
|
-
some files may not be processed by webgen when no file handler plugin for them exist. For example,
|
|
139
|
-
there is currently no file handler plugin for @.svg@ files, so those files would be ignored. If you
|
|
140
|
-
just want to have files copied from the source to the output directory (like images or CSS files),
|
|
141
|
-
the {plugin: File/CopyHandler} plugin is what you need!
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
h2(#goingon). From here on...
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
Now that you know the basics, you can go on to the
|
|
148
|
-
<a href="{relocatable: tutorial.page}">tutorial</a> to create your first website with webgen!
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Extending webgen
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2. Extending webgen
|
|
6
|
-
|
|
7
|
-
h3. General
|
|
8
|
-
|
|
9
|
-
p={font-size: 150%; color: red}. *This part of the homepage is out of date and will be updated soon!*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
There is a logging mechanism available for informational and debugging purposes. Four different log
|
|
13
|
-
levels are available:
|
|
14
|
-
|
|
15
|
-
* debug
|
|
16
|
-
* info
|
|
17
|
-
* warn
|
|
18
|
-
* error
|
|
19
|
-
|
|
20
|
-
The methods are named after the log levels and can be invoked by using
|
|
21
|
-
@logger.{debug|info|warn|error}@. You need to provide a string as argument or a block which returns
|
|
22
|
-
a string.
|
|
23
|
-
|
|
24
|
-
h3. Normal plugins (new tags, file handlers, etc)
|
|
25
|
-
|
|
26
|
-
As webgen is plugin-based, it can be extended very easily. A simple example is shown in the
|
|
27
|
-
<a href="{relocatable: tutorial.page#website-plugin}">tutorial</a>.
|
|
28
|
-
|
|
29
|
-
If you want more sophisticated examples of plugins, have a look at webgen itself and the plugins
|
|
30
|
-
that get shipped with it. They can be found in the directory @lib/webgen/plugins/@!
|
|
31
|
-
|
|
32
|
-
h3. CLI Command Plugins
|
|
33
|
-
|
|
34
|
-
For this you need to write a new command class and put its file into the @plugin@ folder of the
|
|
35
|
-
website. Have a look at the "cmdparse API reference":http://cmdparse.rubyforge.org/rdoc/index.html
|
|
36
|
-
for information about how to write a command class.
|
|
37
|
-
|
|
38
|
-
There are basically two ways for a command plugin:
|
|
39
|
-
|
|
40
|
-
* Easiest one
|
|
41
|
-
|
|
42
|
-
You just declare a new class derived from @CmdParse::Command@ and include the
|
|
43
|
-
@Webgen::CommandPlugin@ module. After you have included this module, you can use all standard
|
|
44
|
-
plugin directives, like @summary@ or @add_param@. Also, this command gets automatically added to
|
|
45
|
-
the main @CommandParser@ class. Thus, the @initialize@ method must not take any arguments!
|
|
46
|
-
|
|
47
|
-
<pre>
|
|
48
|
-
class SimpleCommand < CmdParse::Command
|
|
49
|
-
|
|
50
|
-
include Webgen::CommandPlugin
|
|
51
|
-
|
|
52
|
-
summary "Describe simple command"
|
|
53
|
-
add_param 'firstParam', 45, 'Description of firstParam'
|
|
54
|
-
|
|
55
|
-
def initialize
|
|
56
|
-
super( 'simple', false )
|
|
57
|
-
self.short_desc = "This is a sample for a simple command."
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def usage; "Usage: #{@options.program_name} [global options] simple"; end
|
|
61
|
-
|
|
62
|
-
def execute( args )
|
|
63
|
-
# do something useful
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
end
|
|
67
|
-
</pre>
|
|
68
|
-
|
|
69
|
-
* Easy one
|
|
70
|
-
|
|
71
|
-
You only need to go this way when the @initialize@ method of your command class needs to
|
|
72
|
-
arguments!!
|
|
73
|
-
|
|
74
|
-
Like before, you declare your new command class. This time however, you need include the
|
|
75
|
-
@Webgen::PluginDefs@ module and set the constant @VIRTUAL@ to true. This prevents the plugin
|
|
76
|
-
system from automatically instantiating an object. You then need to instantiate an object and add
|
|
77
|
-
it to the main @CommandParser@ class. This can be done by calling the @add_cmdparser_command@ of
|
|
78
|
-
the configuration plugin.
|
|
79
|
-
|
|
80
|
-
<pre>
|
|
81
|
-
class OtherCommand < CmdParse::Command
|
|
82
|
-
|
|
83
|
-
include Webgen::PluginDefs
|
|
84
|
-
|
|
85
|
-
VIRTUAL = true
|
|
86
|
-
|
|
87
|
-
summary "Describe other simple command"
|
|
88
|
-
|
|
89
|
-
def initialize( arg )
|
|
90
|
-
super( 'otherSimple', false )
|
|
91
|
-
@arg = arg
|
|
92
|
-
self.short_desc = "This is a second sample for a simple command."
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
def usage; "Usage: #{@options.program_name} [global options] otherSimple"; end
|
|
96
|
-
|
|
97
|
-
def execute( args )
|
|
98
|
-
# do something useful
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
Webgen::Plugin['Configuration'].add_cmdparser_command( OtherCommand.new( 5 ) )
|
|
104
|
-
</pre>
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Howto...?
|
|
3
|
-
inMenu: true
|
|
4
|
-
|
|
5
|
-
howtos:
|
|
6
|
-
- - create a website?
|
|
7
|
-
- |
|
|
8
|
-
You can create the needed structure by hand (which would be not so much to do). However, it's
|
|
9
|
-
still easier using the @webgen@ command line tool:
|
|
10
|
-
|
|
11
|
-
webgen create -t project -s andreas07 my_site
|
|
12
|
-
|
|
13
|
-
This will create a webgen website in the directory @my_site@ using the specified template and
|
|
14
|
-
style.
|
|
15
|
-
|
|
16
|
-
- - use a website/gallery/sipttra style?
|
|
17
|
-
- |
|
|
18
|
-
Just use the @webgen@ command line tool:
|
|
19
|
-
|
|
20
|
-
webgen use website_style STYLE_NAME
|
|
21
|
-
webgen use gallery_style STYLE_NAME
|
|
22
|
-
webgen use sipttra_style STYLE_NAME
|
|
23
|
-
|
|
24
|
-
Be aware that destination files may be overwritten!
|
|
25
|
-
|
|
26
|
-
- - set plugin parameters?
|
|
27
|
-
- |
|
|
28
|
-
You can set plugin parameters for all plugins via the configuration file. For example, say you
|
|
29
|
-
want to set the {param: File/DefaultHandler:linkToCurrentPage} parameter to @true@, then you
|
|
30
|
-
would add the following to the configuration file:
|
|
31
|
-
|
|
32
|
-
File/DefaultHandler:
|
|
33
|
-
linkToCurrentPage: true
|
|
34
|
-
|
|
35
|
-
There is a second possibility for tags: you can set the parameters directly in the tag
|
|
36
|
-
definition, like this:
|
|
37
|
-
|
|
38
|
-
\{breadcrumbTrail: {omitLast: true, separator: ' | '}}
|
|
39
|
-
|
|
40
|
-
- - change the default language?
|
|
41
|
-
- |
|
|
42
|
-
To use, for example, German as the default language, put the following into the configuration file:
|
|
43
|
-
|
|
44
|
-
Core/Configuration:
|
|
45
|
-
lang: de
|
|
46
|
-
|
|
47
|
-
- - set a different content format for page files?
|
|
48
|
-
- |
|
|
49
|
-
If you want to change the default content format, you need to add the following to your
|
|
50
|
-
configuration file (assuming you didn't set the {param: Core/FileHandler:defaultMetaInfo} parameter):
|
|
51
|
-
|
|
52
|
-
File/PageHandler:
|
|
53
|
-
defaultMetaInfo:
|
|
54
|
-
blocks: [[content, FORMAT_NAME]]
|
|
55
|
-
|
|
56
|
-
This will set the default format to FORMAT_NAME.
|
|
57
|
-
|
|
58
|
-
If you just want to change the format for a block, you should do it like this:
|
|
59
|
-
|
|
60
|
-
<notextile><pre><code>--- content, FORMAT_NAME
|
|
61
|
-
This is the block
|
|
62
|
-
</code></pre></notextile>
|
|
63
|
-
|
|
64
|
-
- - set the default meta information for files created by a specific file handler?
|
|
65
|
-
- |
|
|
66
|
-
Use the configuration file! For example, to change the default content format
|
|
67
|
-
to markdown and @inMenu@ to @true@ for page files use the following in your configuration file:
|
|
68
|
-
|
|
69
|
-
File/PageHandler:
|
|
70
|
-
defaultMetaInfo:
|
|
71
|
-
blocks: [[content, markdown]]
|
|
72
|
-
inMenu: true
|
|
73
|
-
|
|
74
|
-
- - ignore files in the source directory?
|
|
75
|
-
- |
|
|
76
|
-
This can be done using the {param: Core/FileHandler:ignorePaths} parameter. For example, to
|
|
77
|
-
ignore all files starting in @core@, you would put the following in the configuration file:
|
|
78
|
-
|
|
79
|
-
Core/FileHandler:
|
|
80
|
-
ignorePaths: [**/core*]
|
|
81
|
-
|
|
82
|
-
Be aware that the parameter overwrites the default setting. For more information on which
|
|
83
|
-
path patterns are supported, have a look a the
|
|
84
|
-
<a href="{relocatable: plugins/core/filehandler.page#pathpattern}">path pattern documentation</a>!
|
|
85
|
-
|
|
86
|
-
- - change the output name format of page file?
|
|
87
|
-
- |
|
|
88
|
-
Set the {param: File/PageHandler:outputNameStyle} in the configuration file to globally change
|
|
89
|
-
how the output names for page files are constructed or use the @outputNameStyle@ meta
|
|
90
|
-
information to change it only for individual page files!
|
|
91
|
-
|
|
92
|
-
For more information have a look at the documentation of the
|
|
93
|
-
{param: File/PageHandler:outputNameStyle} parameter!
|
|
94
|
-
|
|
95
|
-
- - use embedded ruby in page/template files?
|
|
96
|
-
- |
|
|
97
|
-
Have a look at the <a href="{relocatable: references/webpage_format.page#proc-erb}">ERB section</a> of
|
|
98
|
-
the WebPage Format reference!
|
|
99
|
-
|
|
100
|
-
- - modify the template chain?
|
|
101
|
-
- |
|
|
102
|
-
First, have a look at the {plugin: File/TemplateHandler} documentation!
|
|
103
|
-
|
|
104
|
-
To stop the template chain at a specific template or even at the page file itself, specify a
|
|
105
|
-
null template in the meta information, like this:
|
|
106
|
-
|
|
107
|
-
template: ~
|
|
108
|
-
|
|
109
|
-
To nest templates, you just need to specify the template in the meta information section:
|
|
110
|
-
|
|
111
|
-
template: my_special.template
|
|
112
|
-
|
|
113
|
-
Be aware that if no @template@ meta information is specified for a page or template file, the
|
|
114
|
-
template handler automatically searches for a default template in directory and the parent
|
|
115
|
-
directories of the file!
|
|
116
|
-
|
|
117
|
-
- - localize a directory name?
|
|
118
|
-
- |
|
|
119
|
-
Just set the @directoryName@ meta information on the localized directory index files!
|
|
120
|
-
|
|
121
|
-
- - provide additional attributes on links to a page file?
|
|
122
|
-
- |
|
|
123
|
-
You can specify additional attributes for a page file using the @linkAttrs@ meta information.
|
|
124
|
-
Take the following page file:
|
|
125
|
-
|
|
126
|
-
<notextile><pre><code>---
|
|
127
|
-
title: Tutorial
|
|
128
|
-
inMenu: true
|
|
129
|
-
linkAttrs:
|
|
130
|
-
title: This is a rather large tutorial
|
|
131
|
-
accesskey: D
|
|
132
|
-
tabindex: 5
|
|
133
|
-
---
|
|
134
|
-
Yippieh, this is my tutorial!
|
|
135
|
-
</code></pre></notextile>
|
|
136
|
-
|
|
137
|
-
When a link to this page is created the specified attributes always get set on this link!
|
|
138
|
-
|
|
139
|
-
- - add page specific sidebar content?
|
|
140
|
-
- |
|
|
141
|
-
There are many ways to accomplish this, I will show only one way here using blocks. Add the
|
|
142
|
-
following to the sidebar in your @default.template@:
|
|
143
|
-
|
|
144
|
-
<% if node.node_info[:pagedata].blocks.has_key?( 'sidebar' ) %>
|
|
145
|
-
\{block: sidebar}
|
|
146
|
-
<% end %>
|
|
147
|
-
|
|
148
|
-
This will include the contents of the block @sidebar@ in the sidebar if such a block exists
|
|
149
|
-
for a page. Then just add a sidebar block to each page file which needs it. Following is such
|
|
150
|
-
a sample page file:
|
|
151
|
-
|
|
152
|
-
<notextile><pre><code>This is the main content block
|
|
153
|
-
--- sidebar
|
|
154
|
-
This is the sidebar block and everything in here goes to the sidebar!
|
|
155
|
-
</code></pre></notextile>
|
|
156
|
-
|
|
157
|
-
- - use global variables?
|
|
158
|
-
- |
|
|
159
|
-
First you need to set some global variables in your configuration file:
|
|
160
|
-
|
|
161
|
-
Core/Configuration:
|
|
162
|
-
customVars:
|
|
163
|
-
myVar: This is really nice!
|
|
164
|
-
myOtherVar: another content
|
|
165
|
-
|
|
166
|
-
Then you can use the {plugin: Tag/CustomVar} to output the variables:
|
|
167
|
-
|
|
168
|
-
\{customVar: myVar}
|
|
169
|
-
|
|
170
|
-
- - create XML output?
|
|
171
|
-
- |
|
|
172
|
-
This can be achieved manually (by setting the content format of the page file to @html@ and
|
|
173
|
-
then directly creating the XML elements) or by using the {plugin: ContentConverter/XmlBuilder}
|
|
174
|
-
plugin !
|
|
175
|
-
|
|
176
|
-
- - use emoticons instead of ASCII smileys?
|
|
177
|
-
- |
|
|
178
|
-
Either globally enable an emoticon pack in the configuration file, like this:
|
|
179
|
-
|
|
180
|
-
Misc/SmileyReplacer:
|
|
181
|
-
emoticonPack: crystal
|
|
182
|
-
|
|
183
|
-
Or enable smiley replacement only on a specific page file using the meta information, like
|
|
184
|
-
this:
|
|
185
|
-
|
|
186
|
-
emoticonPack: crystal
|
|
187
|
-
|
|
188
|
-
- - syntax highlight an included file?
|
|
189
|
-
- |
|
|
190
|
-
This can be done using the {plugin: Tag/IncludeFile} plugin. Make sure you have @coderay@
|
|
191
|
-
installed! Here is an example which includes a syntax highlighted ruby file:
|
|
192
|
-
|
|
193
|
-
\{includeFile: {filename: happy.rb, highlight: ruby}}
|
|
194
|
-
|
|
195
|
-
- - create a static menu?
|
|
196
|
-
- |
|
|
197
|
-
Have a look at the <a href="{relocatable: plugins/core/filehandler.page#metainfo-file}">meta information backing file</a> documentation!
|
|
198
|
-
|
|
199
|
-
You can use virtual nodes in the output backing section to define virtually any menu structure
|
|
200
|
-
you like, including things like having menu entries that point to the same page and links to
|
|
201
|
-
external pages!
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
h1. How to...?
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
This is a collection of some commonly asked questions on how to accomplish certain things with
|
|
208
|
-
webgen. If you have an idea for a new howto, don't hestitate to write me a
|
|
209
|
-
<a href="mailto:t_leitner@gmx.at">email</a>!
|
|
210
|
-
|
|
211
|
-
<notextile>
|
|
212
|
-
<ul>
|
|
213
|
-
<% node['howtos'].each_with_index do |howto, h_index| %>
|
|
214
|
-
<li><a href="javascript: toogle('howto-<%= h_index %>')"><%= howto[0] %></a>
|
|
215
|
-
<div id="howto-<%= h_index %>" style="display: none">
|
|
216
|
-
<%= @plugin_manager['ContentConverter/Textile'].call( howto[1].to_s ) %>
|
|
217
|
-
</div>
|
|
218
|
-
</li>
|
|
219
|
-
<% end %>
|
|
220
|
-
</ul>
|
|
221
|
-
</notextile>
|