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,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Core Plugins
|
|
3
|
-
directoryName: Core
|
|
4
|
-
---
|
|
5
|
-
h2(#Description). Description
|
|
6
|
-
|
|
7
|
-
The plugins in this namespace provide the core functionality for webgen. They allow webgen to
|
|
8
|
-
* handle resources
|
|
9
|
-
* read files from the source directory
|
|
10
|
-
* substitute tags in page files
|
|
11
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: ResourceManager
|
|
3
|
-
inMenu: true
|
|
4
|
-
template: /plugin.template
|
|
5
|
-
plugin: Core/ResourceManager
|
|
6
|
-
---
|
|
7
|
-
h2(#description). Description
|
|
8
|
-
|
|
9
|
-
The ResourceManager plugin provides access to the resources which are shipped with webgen, for
|
|
10
|
-
example, the emoticons. Furthermore, it allows the user to specify their own resources.
|
|
11
|
-
|
|
12
|
-
A resource can either be included directly which means that the content of the resource is written
|
|
13
|
-
into the HTML file. Or it can be referenced in which case only the path is written into the HTML
|
|
14
|
-
file and the content of the resource itself is written to its predefined output path. Be aware that
|
|
15
|
-
a resource is *only* written to its output path if it is referenced at least once (for example, by
|
|
16
|
-
the plugin {plugin: Tag/Resource})!
|
|
17
|
-
|
|
18
|
-
Speaking of the output path, each resource has four properties:
|
|
19
|
-
|
|
20
|
-
* *resoure name*:
|
|
21
|
-
It is unique among all resources and used to access the resource.
|
|
22
|
-
* *output path*:
|
|
23
|
-
This is the path relative to output directory where the resource will be written to if it is
|
|
24
|
-
referenced at least once.
|
|
25
|
-
* *type*:
|
|
26
|
-
There are two different types of resources: file resources and memory resources.
|
|
27
|
-
** A *file* resource references a file in the file system. The content of this type of resource
|
|
28
|
-
cannot be changed during a webgen run and this type mostly used for images and other binary files.
|
|
29
|
-
** A *memory* resource only exists during a webgen run and its content can be changed. This type of
|
|
30
|
-
resource is used, for example, by plugins to specify addditional CSS formatting rules or
|
|
31
|
-
Javascript code.
|
|
32
|
-
* *description*: A short description of the resource.
|
|
33
|
-
|
|
34
|
-
h2(#resources). Predefined Resources
|
|
35
|
-
|
|
36
|
-
A reason why webgen has a ResourceManager is the possibility to ship predefined resources with
|
|
37
|
-
webgen. These resources can be used by any website developed with webgen. The list of predefined
|
|
38
|
-
resources can be viewed on the
|
|
39
|
-
<a href="{relocatable: /documentation/references/resource_reference.page}">Resource Reference</a>
|
|
40
|
-
page.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: TagProcessor
|
|
3
|
-
inMenu: true
|
|
4
|
-
template: /plugin.template
|
|
5
|
-
plugin: Core/TagProcessor
|
|
6
|
-
---
|
|
7
|
-
h2(#description). Description
|
|
8
|
-
|
|
9
|
-
The TagProcessor plugin, apart from the {plugin: Core/FileHandler}, is the main workhorse. It is
|
|
10
|
-
responsible for parsing HTML content and replacing special constructs, so called tags, with dynamic
|
|
11
|
-
content. For more information on how these tags look like, how they are used and why they are
|
|
12
|
-
useful, have a look at the <a href="{relocatable: /documentation/references/webpage_format.page}">page file format description</a>!
|
|
13
|
-
|
|
14
|
-
Each tag has a unique name and an associated handler plugin. Therefore it is very easy to define new
|
|
15
|
-
tags. webgen already comes with many tag plugins that handle simple things, like including a file,
|
|
16
|
-
to advanced things, like generating a menu (the menus used on this homepage are generated
|
|
17
|
-
dynamically with webgen). These tag plugins reside in the {plugin: Tag} namespace.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: CopyHandler
|
|
3
|
-
inMenu: true
|
|
4
|
-
template: /plugin.template
|
|
5
|
-
plugin: File/CopyHandler
|
|
6
|
-
---
|
|
7
|
-
h2(#description). Description
|
|
8
|
-
|
|
9
|
-
This plugin has two operation modes:
|
|
10
|
-
|
|
11
|
-
* All files that match the {param: File/CopyHandler:erbPaths} parameter are processed with ERB and
|
|
12
|
-
then written out. The leading letter @r@ is stripped from the extension (e.g. @.rhtml@) to form
|
|
13
|
-
the output file name. During processing with ERB the current @node@ object is available. This
|
|
14
|
-
operation mode is useful, for example, for @.rhtml@ files (HTML with embedded ruby) or @.rcss@
|
|
15
|
-
files (CSS files with embedded ruby).
|
|
16
|
-
|
|
17
|
-
* All files that match the {param: File/CopyHandler:paths} parameter are copied from the source to
|
|
18
|
-
the output directory without modification. This is useful, for example, for CSS stylesheets,
|
|
19
|
-
javascript files and images.
|
|
20
|
-
|
|
21
|
-
When a file matches against both parameters, it is handled as if it matches only against {param:
|
|
22
|
-
File/CopyHandler:erbPaths}.
|
|
23
|
-
|
|
24
|
-
Also note that files are written only if the source file is newer than the output file! This means
|
|
25
|
-
that, for example, images are copied only during the first webgen run and not during the second if
|
|
26
|
-
the image files have not changed.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: DefaultHandler
|
|
3
|
-
directoryName: File
|
|
4
|
-
inMenu: true
|
|
5
|
-
omitIndexFileInBreadcrumbTrail: false
|
|
6
|
-
template: /plugin.template
|
|
7
|
-
plugin: File/DefaultHandler
|
|
8
|
-
---
|
|
9
|
-
h2(#description). Description
|
|
10
|
-
|
|
11
|
-
The DefaultHandler is the base plugin for all file handler plugins. It is used to hold the
|
|
12
|
-
parameters that apply to all file handler plugins and it provides default implementations for some
|
|
13
|
-
methods as well as the functionality to specify path patterns.
|
|
14
|
-
|
|
15
|
-
For information on how the files in the source directory are generally handled have a look at the
|
|
16
|
-
{plugin: Core/FileHandler#filehandling}.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: DirectoryHandler
|
|
3
|
-
inMenu: true
|
|
4
|
-
template: /plugin.template
|
|
5
|
-
plugin: File/DirectoryHandler
|
|
6
|
-
---
|
|
7
|
-
h2(#description). Description
|
|
8
|
-
|
|
9
|
-
The directory handler is used for handling directories, ie. it creates the target directories.
|
|
10
|
-
Additionally an index file for each directory can be specified. If it is specified, this file is
|
|
11
|
-
used instead of the plain directory index for displaying purposes. This means that when the
|
|
12
|
-
directory path is resolved (e.g. by the {plugin: Tag/Relocatable}) the index file is returned.
|
|
13
|
-
|
|
14
|
-
The name of the index file is specified with the @indexFile@ meta information on a directory node.
|
|
15
|
-
This meta information is set by default and can be overridden globally by using the special
|
|
16
|
-
@defaultMetaInfo@ param for the @DirectoryHandler@ in the
|
|
17
|
-
<a href="{relocatable: /documentation/basics.page#config}">configuration file</a> or by
|
|
18
|
-
setting it on individual directories using the
|
|
19
|
-
<a href="{relocatable: ../core/filehandler.page#metainfo-file}">meta information backing file</a>.
|
|
20
|
-
|
|
21
|
-
The title for a directory can be set via the @title@ meta information on the directory itself.
|
|
22
|
-
However, if the directory has an index file, the meta information @directoryName@ of the index file
|
|
23
|
-
is used for the directory title. This allows different directory names based on the current
|
|
24
|
-
language.
|
|
25
|
-
|
|
26
|
-
Normally, webgen shows a warning if it could not find the directory index file for a directory.
|
|
27
|
-
However, there are most certainly directories which should not have an index file, e.g. a directory
|
|
28
|
-
with only images. To prevent webgen from displaying warnings for such directories, you can set a
|
|
29
|
-
null index file using the meta information backing file:
|
|
30
|
-
|
|
31
|
-
<pre>
|
|
32
|
-
dirWithOnlyImages:
|
|
33
|
-
indexFile: ~
|
|
34
|
-
</pre>
|
|
35
|
-
|
|
36
|
-
This will prevent webgen from showing warnings because you explicitly define a null index file. This
|
|
37
|
-
can also be done globally in the configuration file!
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: GalleryHandler
|
|
3
|
-
inMenu: true
|
|
4
|
-
template: /plugin.template
|
|
5
|
-
plugin: File/GalleryHandler
|
|
6
|
-
---
|
|
7
|
-
h2(#description). Description
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
This file handler uses image gallery files to automatically build image galleries. These image
|
|
11
|
-
galleries are highly configurable and theme-able through the use of different gallery styles - have
|
|
12
|
-
a look at the <a href="{relocatable: /examples/gallery_styles}">examples section</a>!
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
h2(#structure). Structure of image galleries
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
An image gallery consists of three types of page files:
|
|
19
|
-
|
|
20
|
-
* *image pages*: An image page is created for each image. Normally the title, the unresized image,
|
|
21
|
-
the image description and possible other information as well as navigational links (link to the
|
|
22
|
-
next/previous image etc.) are displayed.
|
|
23
|
-
* *gallery pages*: A gallery page displays a list of images (number of images per gallery page is
|
|
24
|
-
customizable). If more images than the maximum number of images per gallery page exist, then two
|
|
25
|
-
or more gallery pages are created.
|
|
26
|
-
* *main page*: A main page is only created if two or more gallery pages exist and is used for
|
|
27
|
-
displaying links to the gallery pages.
|
|
28
|
-
|
|
29
|
-
All these pages are created automatically by the gallery handler, but they don't have any content;
|
|
30
|
-
everything is done by the templates of a gallery style. The parameters {param:
|
|
31
|
-
File/GalleryHandler:imagePageTemplate}, {param: File/GalleryHandler:galleryPageTemplate} and {param:
|
|
32
|
-
File/GalleryHandler:mainPageTemplate} define which templates should be used for image pages, gallery
|
|
33
|
-
pages and the main page. The default values can be overwritten in the gallery file!
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
h2(#gallery-styles). Gallery styles
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Gallery styles are used... to style image galleries ;-) A gallery style consists of templates and,
|
|
40
|
-
optionally, plugins. A minimal gallery style consists of the following files:
|
|
41
|
-
|
|
42
|
-
* @gallery_image.template@
|
|
43
|
-
* @gallery_gallery.template@
|
|
44
|
-
* @gallery_main.template@
|
|
45
|
-
|
|
46
|
-
To display all available gallery styles use the following command:
|
|
47
|
-
|
|
48
|
-
<pre>
|
|
49
|
-
$ wegben help use gallery_style
|
|
50
|
-
</pre>
|
|
51
|
-
|
|
52
|
-
To use a specific gallery style called STYLE issue the following command:
|
|
53
|
-
|
|
54
|
-
<pre>
|
|
55
|
-
$ wegben use gallery_style STYLE
|
|
56
|
-
</pre>
|
|
57
|
-
|
|
58
|
-
This copies all normal gallery style files from the gallery style to the source directory and all
|
|
59
|
-
plugins to the plugin directory, maybe overwritting files (you are asked before copying if you would
|
|
60
|
-
like to procede). However, this command is not able to delete previously copied gallery style files,
|
|
61
|
-
so you have to remove them yourself.
|
|
62
|
-
|
|
63
|
-
For information about how a gallery style can be created have a look at
|
|
64
|
-
<a href="{relocatable: /documentation/extending_webgen.page}">extending webgen section</a>!
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
h2(#file-format). Gallery File Format
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
A gallery file has YAML as file format and is easy to create. It consists of two sections which are
|
|
71
|
-
separated by a line consisting only of three dashes: the configuration section and the image
|
|
72
|
-
section.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
h3(#file-format-config-sec). The configuration section
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
The first section of a gallery file is the configuration section in which you define the basic
|
|
79
|
-
properties of your image gallery like the title or how many images should be displayed per page. By
|
|
80
|
-
using the name of a gallery handler parameter as key you can override its value. Additionally the
|
|
81
|
-
following keys are used by the gallery handler:
|
|
82
|
-
|
|
83
|
-
* *title*: The title of the gallery. If this key is not specified, the capitalized file name is used.
|
|
84
|
-
* *filename*: The base filename used for creating the page files. If not specified it is created from
|
|
85
|
-
the title.
|
|
86
|
-
* *lang*: The language used by the gallery. If not specified, the default language is used.
|
|
87
|
-
* *mainPageMetaInfo*: Used for setting additional meta information for the main page.
|
|
88
|
-
* *galleryPagesMetaInfo*: Used for setting additional meta information for the gallery pages.
|
|
89
|
-
* *imagePagesMetaInfo*: Used for setting additional meta information for all image pages.
|
|
90
|
-
* *layouter*: Plugin used for additional gallery tasks, has to be registered under
|
|
91
|
-
@GalleryLayouter/<layouter-name>@
|
|
92
|
-
* *thumbnailSize*: The size of the thumbnails, can also be set individually for each image.
|
|
93
|
-
* *thumbnailResizeMethod*: The method used for creating the thumbnails, can also be set individually
|
|
94
|
-
for each image.
|
|
95
|
-
|
|
96
|
-
For more information about the last two items have a look at {plugin: File/ThumbnailWriter}!
|
|
97
|
-
|
|
98
|
-
Two nearly always specified parameters should also be mentioned here: {param:
|
|
99
|
-
File/GalleryHandler:imagesPerPage} and {param: File/GalleryHandler:images}. The first specifies how
|
|
100
|
-
many images should be placed on a single gallery page. The second one specifies which images should
|
|
101
|
-
be used the whole image gallery. These images have to be somewhere in the website source directory!
|
|
102
|
-
You can/should not specify images outside the source directory as these images are not automatically
|
|
103
|
-
copied to the output directory and automatic thumbnail creation may not work correctly!
|
|
104
|
-
|
|
105
|
-
If you want to create a multi-lingual gallery, you need to create two gallery files which specify
|
|
106
|
-
the same @filename@ key and different @lang@ keys. It's best to first create one gallery file, fill
|
|
107
|
-
in all the information and then copy it and change the @filename@ and @lang@ keys as well as all the
|
|
108
|
-
other language specific information like titles and descriptions.
|
|
109
|
-
|
|
110
|
-
All other key-value pairs specified are not used by webgen. However, as layouter plugins have access
|
|
111
|
-
to the whole configuration section they may use their own configuration keys.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
h3(#file-format-image-sec). The image section
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
The second section is the image data section in which additional data can be set for images. It has
|
|
118
|
-
the image file paths as keys. These paths have to be relative to the gallery file! The following
|
|
119
|
-
keys are used and/or set by the gallery handler:
|
|
120
|
-
|
|
121
|
-
* *title*: The title of the image. If not set, a default value will be assigned.
|
|
122
|
-
* *template*: The template file for the image page. If not set, the value of the parameter {param:
|
|
123
|
-
File/GalleryHandler:imagePageTemplate} will be used.
|
|
124
|
-
* *orderInfo*: The images are sorted according to this key. If this key is not set, the title is
|
|
125
|
-
used; if this is also not set, the image file name is used for sorting.
|
|
126
|
-
* *thumbnail*: If this key is set for an image, the value is assumed to be the path to a thumbnail
|
|
127
|
-
for this image. Otherwise, it is set by the gallery handler and a thumbnail is created
|
|
128
|
-
automatically (if the {plugin: File/ThumbnailWriter} could be loaded).
|
|
129
|
-
* *thumbnailSize*: The size of the automatically created thumbnail in the format "WIDTHxHEIGHT"
|
|
130
|
-
where WIDTH and HEIGHT are numeric values specifying the width and the height. If not set, the
|
|
131
|
-
value from the configuration section is used. If that is also not set, a default value is used
|
|
132
|
-
(see {param: File/ThumbnailWriter:thumbnailSize}).
|
|
133
|
-
* *thumbnailResizeMethod*: The method used to create the automatic thumbnail. For more information
|
|
134
|
-
about the possible values have a look at {param: File/ThumbnailWriter:resizeMethod}. If
|
|
135
|
-
not set, the value from the configuration section is used, If that is also not set, a default
|
|
136
|
-
value is used (see {param: File/ThumbnailWriter:resizeMethod}).
|
|
137
|
-
* *exif*: If not set and the exif reading library is installed, it is assigned the exif information
|
|
138
|
-
of the image. The exif reading library can be installed using <code>gem install exifr</code>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
h2(#thumbnail-creation). Automatic thumbnail creation
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
The gallery handler is able to automatically create thumbnails for the images in the image gallery
|
|
145
|
-
if the {plugin: File/ThumbnailWriter} is available. If so, the @thumbnailSize@ and
|
|
146
|
-
@thumbnailResizeMethod@ keys described above are used to create the thumbnail.
|
|
147
|
-
|
|
148
|
-
If the plugin is not available, you either have to explicitly specify a thumbnail via the
|
|
149
|
-
@thumbnail@ key for an image or the @width@ and @height@ attributes of the HTML @img@ tag are used
|
|
150
|
-
to scale the full image to the thumbnail size.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
h2(#file-format-example). Example gallery file
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
The following example gallery file shows the most common used configuration options:
|
|
157
|
-
|
|
158
|
-
<pre>
|
|
159
|
-
title: Example Gallery
|
|
160
|
-
imagesPerPage: 32
|
|
161
|
-
images: example/**/*.jpg
|
|
162
|
-
|
|
163
|
-
mainPageMetaInfo:
|
|
164
|
-
inMenu: false
|
|
165
|
-
otherKey: value
|
|
166
|
-
|
|
167
|
-
galleryPagesMetaInfo:
|
|
168
|
-
orderInfo: 10
|
|
169
|
-
inMenu: true
|
|
170
|
-
\---
|
|
171
|
-
example/dir1/img1.jpg:
|
|
172
|
-
title: Test title
|
|
173
|
-
description: Long description of image
|
|
174
|
-
|
|
175
|
-
example/img2.jpg:
|
|
176
|
-
title: Title2 of pic
|
|
177
|
-
mykey: mydata
|
|
178
|
-
</pre>
|
|
179
|
-
|
|
180
|
-
First the title of the gallery is set and the {param: File/GalleryHandler:imagesPerPage} parameter
|
|
181
|
-
value is overridden. Then it is specified that all files with the extension @jpg@ under the
|
|
182
|
-
directory @example@ should be used for this image gallery.
|
|
183
|
-
|
|
184
|
-
The next two keys set the meta information for the main page and the gallery pages. Be aware that
|
|
185
|
-
the @orderInfo@ meta information is set for the gallery pages. This implies that the gallery handler
|
|
186
|
-
automatically increments the @orderInfo@ value for each gallery page sothat they are sorted and
|
|
187
|
-
displayed in the menu correctly.
|
|
188
|
-
|
|
189
|
-
The second section sets the meta information for the images of the gallery. All meta information set
|
|
190
|
-
for the images will be available to the image template.
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: PageHandler
|
|
3
|
-
inMenu: true
|
|
4
|
-
template: /plugin.template
|
|
5
|
-
plugin: File/PageHandler
|
|
6
|
-
---
|
|
7
|
-
h2(#description). Description
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Page files are used to specify the actual content for the website. They contain the content for a
|
|
11
|
-
web page and, optionally, meta information. For information about the format used for page files
|
|
12
|
-
have a look at the <a href="{relocatable: /documentation/references/webpage_format.page}">WebPage Format reference</a>.
|
|
13
|
-
The default values for the content block name and format specifier have been overwritten by setting
|
|
14
|
-
a default for the @blocks@ meta information!
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
h2(#conventions). Conventions
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
h3(#inputfile-naming). Page file naming
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
The filename of a page file should be in the following format sothat meta information can be
|
|
24
|
-
extracted correctly and that referencing a page file works correctly:
|
|
25
|
-
|
|
26
|
-
p=. <b>[orderInfo.]name[.lang].extension</b>
|
|
27
|
-
|
|
28
|
-
* @orderInfo@
|
|
29
|
-
|
|
30
|
-
This part is optional and has to consist purely of the digits 0 to 9. It's value is used for the
|
|
31
|
-
meta information @orderInfo@. If not specified, it defaults to the value zero.
|
|
32
|
-
|
|
33
|
-
* @lang@
|
|
34
|
-
|
|
35
|
-
This part is optional and has to be an "ISO-639-1/2":http://www.loc.gov/standards/iso639-2/
|
|
36
|
-
language identifier (two or three characters (a-z) long). If not specified, it is assumed that the
|
|
37
|
-
page file is written in the default language set via {param: Core/Configuration:lang}.
|
|
38
|
-
|
|
39
|
-
* @extension@
|
|
40
|
-
|
|
41
|
-
This has to be @page@ for now.
|
|
42
|
-
|
|
43
|
-
* @name@
|
|
44
|
-
|
|
45
|
-
This part is used on the one hand for the @title@ meta information (but with these
|
|
46
|
-
transformations: '_' and '-' become spaces). On the other hand, the standardized page and
|
|
47
|
-
localized page names are derived from it. @name@ must not contain any dots. Also: if two page
|
|
48
|
-
files have the same @name@ part, they should define the same content for different languages as
|
|
49
|
-
webgen consideres them as "one" page file in two languages. If the @name@ parts and the languages
|
|
50
|
-
are the same, webgen can't distinguish the two page files and raises an error.
|
|
51
|
-
|
|
52
|
-
Following are some examples of page file names:
|
|
53
|
-
|
|
54
|
-
<table class="examples">
|
|
55
|
-
<tr><th>Filename</th><th>Parsed meta information</th></tr>
|
|
56
|
-
<tr>
|
|
57
|
-
<td>@name.page@</td>
|
|
58
|
-
<td>title: Name, language: en, orderInfo: 0</td>
|
|
59
|
-
</tr>
|
|
60
|
-
<tr>
|
|
61
|
-
<td>@name.de.page@</td>
|
|
62
|
-
<td>title: Name, language: de, orderInfo: 0</td>
|
|
63
|
-
</tr>
|
|
64
|
-
<tr>
|
|
65
|
-
<td>@01.name_of-file.eo.page@</td>
|
|
66
|
-
<td>title: Name of file, language: de, orderInfo: 1</td>
|
|
67
|
-
</tr>
|
|
68
|
-
</table>
|
|
69
|
-
|
|
70
|
-
Notice: The first two examples define the same content for two different languages (en and de) as
|
|
71
|
-
they have the same @name@ part.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
h3(#outputfile-naming). Output file naming
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
The output name of a page file can be customized using the {param: File/PageHandler:outputNameStyle}
|
|
78
|
-
parameter (which can be overridden by setting the @outputNameStyle@ meta information). This allows
|
|
79
|
-
to change the output name so that, for example, Apache's built in "select HTML file by language"
|
|
80
|
-
magic can be utilized.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
h3(#pagename). Standardized page names for referencing page files
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
As described above the name part of the page file filename is used for creating the *standardized
|
|
87
|
-
page name* and the *standardized localized page name* as follows:
|
|
88
|
-
|
|
89
|
-
* standardized page name: <name part>.page
|
|
90
|
-
* standardized localized page name: <name part>.<language code>.page
|
|
91
|
-
|
|
92
|
-
When two page files have the same name part, they have a common standardized page name but different
|
|
93
|
-
standardized localized page names. As the output name of a page file can be customized, it is not
|
|
94
|
-
wise to reference a page file by its output file name. Use the standardized page names instead.
|
|
95
|
-
Therefore if you reference a page file using the standardized page name, you will always get the
|
|
96
|
-
page file in the current language. If you use the standardized localized page name, you will always
|
|
97
|
-
get the page file in the specified language. So, all in all, you can reference a page file by (in
|
|
98
|
-
order of preference): the standardized page name, the standardized local page name and the output
|
|
99
|
-
name.
|
|
100
|
-
|
|
101
|
-
These conventions are best shown using examples:
|
|
102
|
-
|
|
103
|
-
<table class="examples">
|
|
104
|
-
<tr><th>Filename</th><th>Standardized page name</th><th>Standardized localized page name</th></tr>
|
|
105
|
-
<tr>
|
|
106
|
-
<td>@hallo.page@</td>
|
|
107
|
-
<td>@hallo.page@</td>
|
|
108
|
-
<td>@hallo.en.page@ (if the default language is English)</td>
|
|
109
|
-
</tr>
|
|
110
|
-
<tr>
|
|
111
|
-
<td>@the_others.de.page@</td>
|
|
112
|
-
<td>@the_others.page@</td>
|
|
113
|
-
<td>@the_others.de.page@</td>
|
|
114
|
-
</tr>
|
|
115
|
-
<tr>
|
|
116
|
-
<td>@12.documentation.eo.page@</td>
|
|
117
|
-
<td>@documentation.page@</td>
|
|
118
|
-
<td>@documentation.eo.page@</td>
|
|
119
|
-
</tr>
|
|
120
|
-
</table>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
h2(#howto-metainfo). How meta information is set
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
As meta information can be defined in page files, the following sections explains in more detail
|
|
127
|
-
what is done in step 4 of the list from the section "Processing order" in {plugin:
|
|
128
|
-
Core/FileHandler#metainfo-processing}:
|
|
129
|
-
|
|
130
|
-
* Meta information from the filename
|
|
131
|
-
|
|
132
|
-
Meta information derived from the filename overrides the default meta information. This includes
|
|
133
|
-
the meta information @orderInfo@, @lang@ and @title@.
|
|
134
|
-
|
|
135
|
-
* Meta information from the meta information section of the page file
|
|
136
|
-
|
|
137
|
-
All meta information from this part set previously set meta information, especially the meta
|
|
138
|
-
information @lang@, @orderInfo@ and @title@!
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
h2(#fragment-nodes). Fragment Nodes
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
As a page file specifies the content of web page, it normally has sections, subsections and so on
|
|
145
|
-
(created by the @h1@ - @h6@ HTML tags). Nodes for these sections are created under the page file
|
|
146
|
-
node sothat they can be used later by webgen plugins. However, there are certain restrictions:
|
|
147
|
-
|
|
148
|
-
* Only sections of the block named 'content' (the default name for the main block) are added to the
|
|
149
|
-
page file node
|
|
150
|
-
* Only already existing sections _WITH_ an @id@ attribute are used. This means that sections without
|
|
151
|
-
and @id@ attribute and sections defined later via webgen tags or ERB are not used!
|
|
152
|
-
|
|
153
|
-
A plugin using these fragment nodes is {plugin: MenuStyle/Section} which displays an in-page content
|
|
154
|
-
menu.
|