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,253 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: WebPage Format
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
h1. The WebPage Format
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
The WebPage Format is a custom format designed for page and template files. It consists of one or
|
|
10
|
-
more blocks of data, is very simple and easy to use.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
h2(#structure). Structure
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
A file using the WebPage Format consists of one or more blocks which are the smallest units
|
|
17
|
-
recongnized. Blocks are separated from each other through a line containing only three dashes. This
|
|
18
|
-
is illustrated in the following examples which are all valid files in WebPage Format:
|
|
19
|
-
|
|
20
|
-
<pre>
|
|
21
|
-
Here is a block!
|
|
22
|
-
</pre>
|
|
23
|
-
|
|
24
|
-
<pre>
|
|
25
|
-
This is one block of the file
|
|
26
|
-
\---
|
|
27
|
-
This is another block.
|
|
28
|
-
</pre>
|
|
29
|
-
|
|
30
|
-
<pre>
|
|
31
|
-
Block 1
|
|
32
|
-
\--- block2
|
|
33
|
-
Block 2
|
|
34
|
-
\--- block3
|
|
35
|
-
Block 3...
|
|
36
|
-
</pre>
|
|
37
|
-
|
|
38
|
-
If you want to use three dashes in a block but you don't want to end the block, you have to escape
|
|
39
|
-
them with a backslash character, like this:
|
|
40
|
-
|
|
41
|
-
<pre>
|
|
42
|
-
Block 1
|
|
43
|
-
\\---
|
|
44
|
-
still Block 1
|
|
45
|
-
\--- block2
|
|
46
|
-
Block 2
|
|
47
|
-
</pre>
|
|
48
|
-
|
|
49
|
-
All of the above examples show one kind of block, the content block. However, there may also be
|
|
50
|
-
another type of block: the meta information block. Following is a short description of both kinds,
|
|
51
|
-
starting with the meta information block.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
h3(#metainfo-block). Meta Information Block
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Each file in WebPage Format can have zero or one meta information blocks. This block is specified at
|
|
58
|
-
the beginning of the file. To tell the parser that the first block is the meta information block and
|
|
59
|
-
not a content block, you have to start the file with three dashes:
|
|
60
|
-
|
|
61
|
-
<pre>
|
|
62
|
-
\---
|
|
63
|
-
title: The title set by Meta info
|
|
64
|
-
\---
|
|
65
|
-
This is the content of the file
|
|
66
|
-
</pre>
|
|
67
|
-
|
|
68
|
-
The above defines a meta information block and a content block. The meta information block has to be
|
|
69
|
-
in YAML format and should contain key-value pairs of meta information. YAML is a simple markup
|
|
70
|
-
language designed for ease of use. For more information about YAML, have a look at
|
|
71
|
-
"www.yaml.org":http://www.yaml.org!
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
h3(#content-blocks). Content Blocks
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
A content block is used to provide content in a specific format. Each file in WebPage Format needs
|
|
78
|
-
to have at least one content block which may be empty. However, it can have as many content blocks
|
|
79
|
-
as necessary. Each content block needs to have a unique name and a format specifier.
|
|
80
|
-
|
|
81
|
-
The name uniquely identifies a content block and is used to access it. The format specifier defines
|
|
82
|
-
in which format the content block was written. The important thing is that all the formats can be
|
|
83
|
-
converted into HTML/XML! There are several different formats available - have a look a the {plugin:
|
|
84
|
-
ContentConverter} section.
|
|
85
|
-
|
|
86
|
-
There may also be defaults for the two identifiers but they can be overwritten. There are two ways
|
|
87
|
-
to do this:
|
|
88
|
-
|
|
89
|
-
* you either specify the name and format of the block on the line with the three dashes
|
|
90
|
-
* or you use the special meta information block to define the names and formats of all blocks.
|
|
91
|
-
|
|
92
|
-
The following example uses the first technique to override the name and/or the format:
|
|
93
|
-
|
|
94
|
-
<pre>
|
|
95
|
-
1. content block of the file
|
|
96
|
-
\--- sidebar, markdown
|
|
97
|
-
2. content block of the file
|
|
98
|
-
\--- other
|
|
99
|
-
3. content block of the file
|
|
100
|
-
</pre>
|
|
101
|
-
|
|
102
|
-
The first block has no identifieres set (there is no line with three dashes and the identifieres).
|
|
103
|
-
Therefore the default values for both are used: @content@ is the default block name and @default@ is
|
|
104
|
-
the default format specifier. However, these defaults can be overridden by the plugins.
|
|
105
|
-
|
|
106
|
-
The second block is named @sidebar@ and uses the format @markdown@. As you see, first the name of
|
|
107
|
-
the block is specified and then, separated by a comma, the format specifier. The format identifier
|
|
108
|
-
can be omitted as shown for the third block, the default value is then used.
|
|
109
|
-
|
|
110
|
-
You can also set the name and format of the content blocks by using the special @blocks@ meta
|
|
111
|
-
information. It is an array of arrays and each sub-array contains, in this order, the name of the
|
|
112
|
-
block and its format. The above example can therefore also be written like this:
|
|
113
|
-
|
|
114
|
-
<pre>
|
|
115
|
-
\---
|
|
116
|
-
blocks: [[content,default], [sidebar, markdown], [other, ~]]
|
|
117
|
-
\---
|
|
118
|
-
1. content block of the file
|
|
119
|
-
\---
|
|
120
|
-
2. content block of the file
|
|
121
|
-
\---
|
|
122
|
-
3. content block of the file
|
|
123
|
-
</pre>
|
|
124
|
-
|
|
125
|
-
With everything said above the example should be clear except maybe for the last sub-array. The
|
|
126
|
-
first entry specifies the name, @other@, and the second the format, @~@. The tilde has a special
|
|
127
|
-
meaning in YAML format, namely null or empty. This means that we want to use the default format for
|
|
128
|
-
the last block.
|
|
129
|
-
|
|
130
|
-
The *default name* for a block is @content@ and is used if no explicit name is given on the line
|
|
131
|
-
with the three dashes or in the blocks meta information at the correct index. The precedence is
|
|
132
|
-
(from high to low): --- line, blocks meta information, default value.
|
|
133
|
-
|
|
134
|
-
The *default format* for a block is @default@ and the rules stated above for the block name apply to
|
|
135
|
-
the default format as well.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
h2(#tags). webgen Tags
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
Tags are used to generate content. During processing of a file in WebPage Format so called 'tags'
|
|
142
|
-
are replaced with dynamic content. For example, the menu you can see to the left was generated by a
|
|
143
|
-
tag. This makes it easier to add or remove menu items. If the menu was not generated, you would have
|
|
144
|
-
to change every file which uses the menu.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
h3(#tags-usage). Usage
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Tags are defined by a special markup code. A tag has the following structure:
|
|
151
|
-
|
|
152
|
-
<pre>\{tagname: {parameters}}</pre>
|
|
153
|
-
|
|
154
|
-
Every time a tag is found in a file, the registered plugin for the tag is called. The plugin returns
|
|
155
|
-
a string which is put into the output file instead of the tag. The output a tag plugin can produce
|
|
156
|
-
ranges from something simple to something complex. For example, the {plugin: Tag/Meta} plugin copies
|
|
157
|
-
any additional meta information specified in the file verbatim into the correct place in the output
|
|
158
|
-
file. And in contrast, the {plugin: Tag/Menu} plugin generates a whole menu tree.
|
|
159
|
-
|
|
160
|
-
If you want to use the markup code used for tags, you need to escape the tag with a backslash, like
|
|
161
|
-
this:
|
|
162
|
-
|
|
163
|
-
<pre>\\\{tagname: {parameters}}</pre>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
h3(#tags-params). Parameters
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
A tag can have zero or more parameters some of which are mandatory. You can see the supported
|
|
170
|
-
parameters (and if they are mandatory) for each tag on the tag's plugin page. The default mandatory
|
|
171
|
-
parameter can be specified in a special way, see the examples below. The format used for parsing the
|
|
172
|
-
parameters is YAML.
|
|
173
|
-
|
|
174
|
-
Here some examples with tags and parameters:
|
|
175
|
-
|
|
176
|
-
<table class="examples">
|
|
177
|
-
<tr>
|
|
178
|
-
<th>Usage</th><th>Output</th>
|
|
179
|
-
</tr>
|
|
180
|
-
<tr>
|
|
181
|
-
<td>@\{tagname: }@</td>
|
|
182
|
-
<td>No parameters specified</td>
|
|
183
|
-
</tr>
|
|
184
|
-
<tr>
|
|
185
|
-
<td>@\{tagname: test.html}@</td>
|
|
186
|
-
<td>The default mandatory parameter is set to @test.html@. This form can only be used if there is only one mandatory parameter</td>
|
|
187
|
-
</tr>
|
|
188
|
-
<tr>
|
|
189
|
-
<td>@\{tagname: {param1: value1, param2: value2}}@</td>
|
|
190
|
-
<td>Two parameters (param1 and param2) specified</td>
|
|
191
|
-
</tr>
|
|
192
|
-
</table>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
h2(#processing). Processing
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
There is a well defined procesing order for files in WebPage Format:
|
|
199
|
-
|
|
200
|
-
* After reading in the file, it is split into the blocks.
|
|
201
|
-
* Each content block is converted to HTML (depends on the format specifier) and the HTML sections
|
|
202
|
-
are resolved (caveat: only those with an @id@ attribute)
|
|
203
|
-
* When writing out the file, the converted content is first processed with ERB (if specified to do
|
|
204
|
-
so),
|
|
205
|
-
* then webgen tags are replaced and,
|
|
206
|
-
* finally, the result is written.
|
|
207
|
-
|
|
208
|
-
The first two steps happen when the file is read and the last three when the file is written.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
h3(#proc-html). Converting to HTML
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
The conversion of a content block to HTML is done via the {plugin: ContentConverter} plugins. Each
|
|
215
|
-
plugin is able to convert a special marked-up text to HTML.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
h3(#proc-erb). Evaluating ERB Tags
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
The evaluation of ERB (embedded ruby) tags is optional and only done if the meta information
|
|
222
|
-
@useERB@ is set to @true@. The use of ERB allows to add dynamic content without using webgen tags.
|
|
223
|
-
Following is an example of a file which uses ERB:
|
|
224
|
-
|
|
225
|
-
<notextile>
|
|
226
|
-
<pre>
|
|
227
|
-
\---
|
|
228
|
-
title: Test page with ERB
|
|
229
|
-
useERB: true
|
|
230
|
-
\---
|
|
231
|
-
This page has the following meta info items:
|
|
232
|
-
<% node.meta_info.each do |key, value| %>
|
|
233
|
-
* <%=key %>: <%=value %>
|
|
234
|
-
<% end %>
|
|
235
|
-
</pre>
|
|
236
|
-
</notextile>
|
|
237
|
-
|
|
238
|
-
This would output all meta information for the file. There are some objects available which you can
|
|
239
|
-
use in your ERB code:
|
|
240
|
-
|
|
241
|
-
* @node@: the node for the current file (normally a page file)
|
|
242
|
-
* @ref_node@: the reference node, i.e. the node in which the content will be embedded (normally a
|
|
243
|
-
template file)
|
|
244
|
-
|
|
245
|
-
*Caveat*: you may need to ensure that the ERB start and end tags are not processed by the content
|
|
246
|
-
converter. For example, with Textile you may need to surround the ERB code with <textile>
|
|
247
|
-
tags!
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
h3(#proc-tags). Evaluating webgen Tags
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
Tags have already been mentioned in the <a href="{relocatable: '#tags'}">webgen tags</a> section.
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Tutorial
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h1(#website-creation). Tutorial
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
This short tutorial shows you how to create a website with webgen.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
h2(#website-structure). Creating the Basic Directories
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
First, you need to create the basic directories. You can either do this by hand or you can let
|
|
15
|
-
webgen do this:
|
|
16
|
-
|
|
17
|
-
<pre>
|
|
18
|
-
$ webgen create sample_site
|
|
19
|
-
</pre>
|
|
20
|
-
|
|
21
|
-
webgen created the @sample_site@ directory which holds all directories necessary for running webgen.
|
|
22
|
-
|
|
23
|
-
The @create@ command also accepts two options: one for a website template and one for a website
|
|
24
|
-
style:
|
|
25
|
-
|
|
26
|
-
* A *website template* defines a structure for your website. For example, the @project@ template
|
|
27
|
-
defines several pages including a features and about page.
|
|
28
|
-
* A *website style* defines the look and feel of your website. webgen comes with some predefined
|
|
29
|
-
styles which you can use (most of them are converted open source web design styles).
|
|
30
|
-
|
|
31
|
-
You can change the website style later by using the @use website_style@ command for @webgen@, for
|
|
32
|
-
example:
|
|
33
|
-
|
|
34
|
-
<pre>
|
|
35
|
-
$ webgen use website_style default
|
|
36
|
-
</pre>
|
|
37
|
-
|
|
38
|
-
Existing files may be overwritten by this command (after asking). However, this command is not able
|
|
39
|
-
to delete previously copied website style files, so you have to remove them yourself!
|
|
40
|
-
|
|
41
|
-
Have a look at the <a href="{relocatable: /examples}">examples</a> sections to see demonstrations
|
|
42
|
-
for all shipped website templates and styles!
|
|
43
|
-
|
|
44
|
-
Now you can run webgen to create your website. There are two possibilities:
|
|
45
|
-
|
|
46
|
-
* Either change into the @sample_site@ directory and run webgen there, like this
|
|
47
|
-
<pre>
|
|
48
|
-
$ cd sample_site
|
|
49
|
-
sample_site $ webgen
|
|
50
|
-
</pre>
|
|
51
|
-
* Or you can run webgen like this
|
|
52
|
-
<pre>
|
|
53
|
-
$ webgen -d sample_site
|
|
54
|
-
</pre>
|
|
55
|
-
|
|
56
|
-
Easy! webgen has parsed the @src@ directory and has created the HTML output. However, as we did not
|
|
57
|
-
write any content yet, there is not much to see (only the default page). So let's do that now!
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
h2(#website-content). Adding Content to the Website
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
When using the @create@ command, webgen does not only create the needed directories but it also
|
|
64
|
-
provides you with some default files, you should have at least the following ones:
|
|
65
|
-
|
|
66
|
-
* @src/default.template@: The default template for the new website.
|
|
67
|
-
* @src/default.css@: The default css file for the new website.
|
|
68
|
-
* @src/index.page@: The index page for the root directory of the website.
|
|
69
|
-
|
|
70
|
-
The basic scaffolding is already in place, we only have to change @index.page@ and add other page
|
|
71
|
-
files. Just open the file @index.page@ in your favorite text editor and change its content. After
|
|
72
|
-
that we create a new file, @hello.page@, with the following content:
|
|
73
|
-
|
|
74
|
-
<pre>
|
|
75
|
-
\---
|
|
76
|
-
title: Sample hello page
|
|
77
|
-
inMenu: true
|
|
78
|
-
\---
|
|
79
|
-
This is a sample page with the title "{title:}" and it is in the menu!!!
|
|
80
|
-
</pre>
|
|
81
|
-
|
|
82
|
-
After that, run webgen and then open @output/index.html@ to view your website.
|
|
83
|
-
|
|
84
|
-
Then just add page files and other content to your website and let it grow!
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
h2(#website-metainfo). Using Tags and Meta Information in Pages
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Meta information is specified at the beginning of a page file. Have a look at the
|
|
91
|
-
<a href="{relocatable: /documentation/references/webpage_format.page}">WebPage Format reference</a>
|
|
92
|
-
to see how that is done in detail!
|
|
93
|
-
|
|
94
|
-
We are now going to use meta information to customize our website! Open the file @default.template@
|
|
95
|
-
and add this before the </body> tag:
|
|
96
|
-
|
|
97
|
-
<pre>
|
|
98
|
-
File last changed on \{filemdate: }!
|
|
99
|
-
</pre>
|
|
100
|
-
|
|
101
|
-
The part @\{filemdate: }@ is called a tag. Tags are implemented using plugins and they can be used to
|
|
102
|
-
insert dynamic content when webgen is run. For example, the menu on the page is generated with the
|
|
103
|
-
@\{menu: }@ tag! If webgen sees a tag during the processing of a page for which no tag plugin
|
|
104
|
-
exists, it looks at the meta information of the page. If there is a meta information entry with the
|
|
105
|
-
tag name, it uses that content instead. We will use that now!
|
|
106
|
-
|
|
107
|
-
Open the file @hello.page@ and add the following meta information:
|
|
108
|
-
|
|
109
|
-
<pre>
|
|
110
|
-
filemdate: 10.4.2005
|
|
111
|
-
</pre>
|
|
112
|
-
|
|
113
|
-
so that @hello.page@ looks like this:
|
|
114
|
-
|
|
115
|
-
<pre>
|
|
116
|
-
\---
|
|
117
|
-
title: Sample hello page
|
|
118
|
-
inMenu: true
|
|
119
|
-
filemdate: 10.4.2005
|
|
120
|
-
\---
|
|
121
|
-
This is a sample page with the title "{title:}" and it is in the menu!!!
|
|
122
|
-
</pre>
|
|
123
|
-
|
|
124
|
-
Run webgen and view the output! The tag @\{filemdate: }@ got substituted by the value specified in
|
|
125
|
-
the meta information. As we have not put any meta information in the @index.page@ file, a warning is
|
|
126
|
-
issued when webgen is run and no date is shown on the page!
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
h2(#website-plugin). Writing a Simple Plugin
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Because we are not quite happy with our basic file modification time tag, we are going to write a
|
|
133
|
-
simple tag plugin.
|
|
134
|
-
|
|
135
|
-
Create the file @plugin/filemdate.rb@ with the following content:
|
|
136
|
-
|
|
137
|
-
<pre>
|
|
138
|
-
class FileMDateTag < Tags::DefaultTag
|
|
139
|
-
|
|
140
|
-
infos( :name => 'Custom/FileMDate',
|
|
141
|
-
:summary => "Puts the modification time of the file on the page" )
|
|
142
|
-
|
|
143
|
-
register_tag 'filemdate'
|
|
144
|
-
|
|
145
|
-
def process_tag( tag, chain )
|
|
146
|
-
return File.mtime( chain.last.node_info[:src] ).to_s
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
end
|
|
150
|
-
</pre>
|
|
151
|
-
|
|
152
|
-
That's all! The new plugin gets loaded when webgen starts and it is used when the tag @filemdate@ is
|
|
153
|
-
encountered. We can now safely remove the @filemdate@ meta info from the file @hello.page@ although
|
|
154
|
-
you can leave it there - it won't do any harm.
|
|
155
|
-
|
|
156
|
-
Again, just run webgen and view the output!
|
|
157
|
-
|
|
158
|
-
For more information on how to write plugins have a look at the
|
|
159
|
-
<a href="{relocatable: extending_webgen.page}">extending webgen section</a>!
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
h2(#website-conclusio). Conclusion
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
You have just created a simple static website using webgen. For further information on how to
|
|
166
|
-
procede from here have a look at the <a href="{relocatable: plugins}">plugins section</a> and the
|
|
167
|
-
other documentation.
|
data/doc/src/download.page
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Download & Installation
|
|
3
|
-
inMenu: true
|
|
4
|
-
---
|
|
5
|
-
h2(#download). Download
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
The newest version of webgen can be downloaded from Rubyforge.
|
|
9
|
-
|
|
10
|
-
Homepage: "webgen.rubyforge.org":http://webgen.rubyforge.org
|
|
11
|
-
|
|
12
|
-
Download: "http://rubyforge.org/frs/?group_id=296":http://rubyforge.org/frs/?group_id=296
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
h2(#deps). Dependencies
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* "cmdparse":http://cmdparse.rubyforge.org version 2.0.0 or higher
|
|
19
|
-
|
|
20
|
-
* "RedCloth":http://redcloth.rubyforge.org version 2.0.10 or higher for Textile support (needed for examples
|
|
21
|
-
and included website templates)
|
|
22
|
-
|
|
23
|
-
* [optional] "BlueCloth":http://www.deveiate.org version 1.0.0 or higher if you want Markdown
|
|
24
|
-
support
|
|
25
|
-
|
|
26
|
-
* [optional] "RMagick":http://rmagick.rubyforge.org/ version 1.7.1 or higher if you want automatic
|
|
27
|
-
thumbnail creation for image galleries
|
|
28
|
-
|
|
29
|
-
* [optional] "builder":http://builder.rubyforge.org/ version 2.0.0 or higher if you want programatic
|
|
30
|
-
HTML/XML file generation
|
|
31
|
-
|
|
32
|
-
* [optional] "exifr":http://exifr.rubyforge.org/ version 0.10 or higher if you want to be able to
|
|
33
|
-
have EXIF information available for image galleries
|
|
34
|
-
|
|
35
|
-
* [optional] "coderay":http://coderay.rubychan.de/ version 0.7.4.215 or higher if you want syntax
|
|
36
|
-
highlighting to be available for certain plugins
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
All the optional libraries can be installed via Rubygems (which I recommend). You can check the
|
|
40
|
-
availability of the libraries by executing
|
|
41
|
-
|
|
42
|
-
$ webgen check libs
|
|
43
|
-
|
|
44
|
-
The output tells you whether webgen has been able to load the optional libraries or not!
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
h2(#installation). Installation
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
The easiest way to install webgen is via Rubygems
|
|
51
|
-
|
|
52
|
-
$ gem install webgen
|
|
53
|
-
|
|
54
|
-
However, you can also use the included @setup.rb@ installation method:
|
|
55
|
-
|
|
56
|
-
$ ruby setup.rb config
|
|
57
|
-
$ ruby setup.rb setup
|
|
58
|
-
$ ruby setup.rb install
|
|
59
|
-
|
|
60
|
-
Or all commands together via
|
|
61
|
-
|
|
62
|
-
$ rake install
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
The above listed methods also work when installing on Windows (preferred way is via Rubygems).
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
--- sidebar, textile
|
|
71
|
-
|
|
72
|
-
<h1>Information</h1>
|
|
73
|
-
|
|
74
|
-
webgen has been tested on Linux and on Windows XP with Ruby 1.8.4.
|