gettalong-webgen 0.5.4.20080929
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +5 -0
- data/COPYING +10 -0
- data/GPL +340 -0
- data/Rakefile +324 -0
- data/THANKS +17 -0
- data/bin/webgen +10 -0
- data/data/webgen/resources.yaml +3 -0
- data/data/webgen/webgui/controller/main.rb +129 -0
- data/data/webgen/webgui/overrides/win32console.rb +0 -0
- data/data/webgen/webgui/public/css/jquery.autocomplete.css +50 -0
- data/data/webgen/webgui/public/css/ramaze_error.css +90 -0
- data/data/webgen/webgui/public/css/style.css +55 -0
- data/data/webgen/webgui/public/img/headerbg.jpg +0 -0
- data/data/webgen/webgui/public/img/webgen_logo.png +0 -0
- data/data/webgen/webgui/public/js/jquery.autocomplete.js +15 -0
- data/data/webgen/webgui/public/js/jquery.js +32 -0
- data/data/webgen/webgui/view/create_website.xhtml +22 -0
- data/data/webgen/webgui/view/error.xhtml +64 -0
- data/data/webgen/webgui/view/index.xhtml +22 -0
- data/data/webgen/webgui/view/manage_website.xhtml +18 -0
- data/data/webgen/webgui/view/page.xhtml +40 -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_skeleton/ext/init.rb +6 -0
- data/data/webgen/website_styles/1024px/README +13 -0
- data/data/webgen/website_styles/1024px/src/default.css +188 -0
- data/data/webgen/website_styles/1024px/src/default.template +60 -0
- data/data/webgen/website_styles/1024px/src/images/background.gif +0 -0
- data/data/webgen/website_styles/andreas00/README +13 -0
- data/data/webgen/website_styles/andreas00/src/default.css +290 -0
- data/data/webgen/website_styles/andreas00/src/default.template +60 -0
- data/data/webgen/website_styles/andreas00/src/images/bg.gif +0 -0
- data/data/webgen/website_styles/andreas00/src/images/front.jpg +0 -0
- data/data/webgen/website_styles/andreas00/src/images/menubg.gif +0 -0
- data/data/webgen/website_styles/andreas00/src/images/menubg2.gif +0 -0
- data/data/webgen/website_styles/andreas01/README +14 -0
- data/data/webgen/website_styles/andreas01/src/default.css +310 -0
- data/data/webgen/website_styles/andreas01/src/default.template +61 -0
- data/data/webgen/website_styles/andreas01/src/images/bg.gif +0 -0
- data/data/webgen/website_styles/andreas01/src/images/front.jpg +0 -0
- data/data/webgen/website_styles/andreas01/src/print.css +35 -0
- data/data/webgen/website_styles/andreas03/README +14 -0
- data/data/webgen/website_styles/andreas03/src/default.css +223 -0
- data/data/webgen/website_styles/andreas03/src/default.template +58 -0
- data/data/webgen/website_styles/andreas03/src/images/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/contbg.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/footerbg.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/gradient1.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/gradient2.png +0 -0
- data/data/webgen/website_styles/andreas04/README +15 -0
- data/data/webgen/website_styles/andreas04/src/default.css +290 -0
- data/data/webgen/website_styles/andreas04/src/default.template +81 -0
- data/data/webgen/website_styles/andreas04/src/images/blinkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas04/src/images/contentbg.png +0 -0
- data/data/webgen/website_styles/andreas04/src/images/entrybg.png +0 -0
- data/data/webgen/website_styles/andreas04/src/images/flash.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/flash2.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/globe.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/globebottom.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/linkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/menuhover.png +0 -0
- data/data/webgen/website_styles/andreas05/README +14 -0
- data/data/webgen/website_styles/andreas05/src/default.css +33 -0
- data/data/webgen/website_styles/andreas05/src/default.template +40 -0
- data/data/webgen/website_styles/andreas05/src/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas05/src/images/front.png +0 -0
- data/data/webgen/website_styles/andreas06/README +14 -0
- data/data/webgen/website_styles/andreas06/src/default.css +354 -0
- data/data/webgen/website_styles/andreas06/src/default.template +70 -0
- data/data/webgen/website_styles/andreas06/src/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/boxbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/greypx.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/header.jpg +0 -0
- data/data/webgen/website_styles/andreas06/src/images/innerbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/leaves.jpg +0 -0
- data/data/webgen/website_styles/andreas06/src/images/tabs.gif +0 -0
- data/data/webgen/website_styles/andreas07/README +15 -0
- data/data/webgen/website_styles/andreas07/src/browserfix.css +7 -0
- data/data/webgen/website_styles/andreas07/src/default.css +92 -0
- data/data/webgen/website_styles/andreas07/src/default.template +42 -0
- data/data/webgen/website_styles/andreas07/src/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas07/src/images/sidebarbg.gif +0 -0
- data/data/webgen/website_styles/andreas08/README +14 -0
- data/data/webgen/website_styles/andreas08/src/default.css +224 -0
- data/data/webgen/website_styles/andreas08/src/default.template +51 -0
- data/data/webgen/website_styles/andreas09/README +14 -0
- data/data/webgen/website_styles/andreas09/src/default.css +308 -0
- data/data/webgen/website_styles/andreas09/src/default.template +68 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/footerbg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover.jpg +0 -0
- data/data/webgen/website_styles/simple/README +6 -0
- data/data/webgen/website_styles/simple/src/default.css +84 -0
- data/data/webgen/website_styles/simple/src/default.template +36 -0
- data/data/webgen/website_templates/default/README +6 -0
- data/data/webgen/website_templates/default/src/index.page +8 -0
- data/data/webgen/website_templates/project/README +5 -0
- data/data/webgen/website_templates/project/src/about.page +12 -0
- data/data/webgen/website_templates/project/src/download.page +15 -0
- data/data/webgen/website_templates/project/src/features.page +8 -0
- data/data/webgen/website_templates/project/src/index.page +9 -0
- data/data/webgen/website_templates/project/src/screenshots.page +18 -0
- data/doc/contentprocessor.template +11 -0
- data/doc/contentprocessor/blocks.page +66 -0
- data/doc/contentprocessor/builder.page +80 -0
- data/doc/contentprocessor/erb.page +56 -0
- data/doc/contentprocessor/erubis.page +46 -0
- data/doc/contentprocessor/haml.page +47 -0
- data/doc/contentprocessor/maruku.page +41 -0
- data/doc/contentprocessor/rdiscount.page +37 -0
- data/doc/contentprocessor/rdoc.page +36 -0
- data/doc/contentprocessor/redcloth.page +39 -0
- data/doc/contentprocessor/sass.page +31 -0
- data/doc/contentprocessor/tags.page +73 -0
- data/doc/extensions.metainfo +29 -0
- data/doc/extensions.page +16 -0
- data/doc/extensions.template +17 -0
- data/doc/faq.page +214 -0
- data/doc/getting_started.page +134 -0
- data/doc/index.page +65 -0
- data/doc/manual.page +532 -0
- data/doc/reference_configuration.page +646 -0
- data/doc/reference_metainfo.page +213 -0
- data/doc/sourcehandler.template +21 -0
- data/doc/sourcehandler/copy.page +19 -0
- data/doc/sourcehandler/directory.page +27 -0
- data/doc/sourcehandler/feed.page +82 -0
- data/doc/sourcehandler/metainfo.page +41 -0
- data/doc/sourcehandler/page.page +30 -0
- data/doc/sourcehandler/sitemap.page +46 -0
- data/doc/sourcehandler/template.page +45 -0
- data/doc/sourcehandler/virtual.page +49 -0
- data/doc/tag.template +25 -0
- data/doc/tag/breadcrumbtrail.page +40 -0
- data/doc/tag/coderay.page +49 -0
- data/doc/tag/date.page +31 -0
- data/doc/tag/executecommand.page +26 -0
- data/doc/tag/includefile.page +32 -0
- data/doc/tag/langbar.page +22 -0
- data/doc/tag/menu.page +92 -0
- data/doc/tag/metainfo.page +29 -0
- data/doc/tag/relocatable.page +38 -0
- data/doc/tag/sitemap.page +31 -0
- data/doc/upgrading.page +139 -0
- data/doc/webgen_page_format.page +128 -0
- data/lib/webgen/blackboard.rb +73 -0
- data/lib/webgen/cache.rb +85 -0
- data/lib/webgen/cli.rb +118 -0
- data/lib/webgen/cli/create_command.rb +64 -0
- data/lib/webgen/cli/run_command.rb +20 -0
- data/lib/webgen/cli/utils.rb +86 -0
- data/lib/webgen/cli/webgui_command.rb +49 -0
- data/lib/webgen/common.rb +10 -0
- data/lib/webgen/common/sitemap.rb +76 -0
- data/lib/webgen/configuration.rb +147 -0
- data/lib/webgen/contentprocessor.rb +96 -0
- data/lib/webgen/contentprocessor/blocks.rb +46 -0
- data/lib/webgen/contentprocessor/builder.rb +26 -0
- data/lib/webgen/contentprocessor/context.rb +90 -0
- data/lib/webgen/contentprocessor/erb.rb +24 -0
- data/lib/webgen/contentprocessor/erubis.rb +40 -0
- data/lib/webgen/contentprocessor/haml.rb +25 -0
- data/lib/webgen/contentprocessor/maruku.rb +18 -0
- data/lib/webgen/contentprocessor/rdiscount.rb +15 -0
- data/lib/webgen/contentprocessor/rdoc.rb +17 -0
- data/lib/webgen/contentprocessor/redcloth.rb +15 -0
- data/lib/webgen/contentprocessor/sass.rb +18 -0
- data/lib/webgen/contentprocessor/tags.rb +134 -0
- data/lib/webgen/coreext.rb +10 -0
- data/lib/webgen/default_config.rb +198 -0
- data/lib/webgen/languages.rb +578 -0
- data/lib/webgen/loggable.rb +23 -0
- data/lib/webgen/logger.rb +78 -0
- data/lib/webgen/node.rb +347 -0
- data/lib/webgen/output.rb +37 -0
- data/lib/webgen/output/filesystem.rb +67 -0
- data/lib/webgen/page.rb +133 -0
- data/lib/webgen/path.rb +182 -0
- data/lib/webgen/source.rb +24 -0
- data/lib/webgen/source/filesystem.rb +58 -0
- data/lib/webgen/source/resource.rb +42 -0
- data/lib/webgen/source/stacked.rb +53 -0
- data/lib/webgen/sourcehandler.rb +202 -0
- data/lib/webgen/sourcehandler/base.rb +211 -0
- data/lib/webgen/sourcehandler/copy.rb +41 -0
- data/lib/webgen/sourcehandler/directory.rb +31 -0
- data/lib/webgen/sourcehandler/feed.rb +121 -0
- data/lib/webgen/sourcehandler/fragment.rb +71 -0
- data/lib/webgen/sourcehandler/metainfo.rb +117 -0
- data/lib/webgen/sourcehandler/page.rb +77 -0
- data/lib/webgen/sourcehandler/sitemap.rb +60 -0
- data/lib/webgen/sourcehandler/template.rb +68 -0
- data/lib/webgen/sourcehandler/virtual.rb +75 -0
- data/lib/webgen/tag.rb +23 -0
- data/lib/webgen/tag/base.rb +162 -0
- data/lib/webgen/tag/breadcrumbtrail.rb +71 -0
- data/lib/webgen/tag/coderay.rb +32 -0
- data/lib/webgen/tag/date.rb +18 -0
- data/lib/webgen/tag/executecommand.rb +29 -0
- data/lib/webgen/tag/includefile.rb +42 -0
- data/lib/webgen/tag/langbar.rb +52 -0
- data/lib/webgen/tag/menu.rb +186 -0
- data/lib/webgen/tag/metainfo.rb +25 -0
- data/lib/webgen/tag/relocatable.rb +53 -0
- data/lib/webgen/tag/sitemap.rb +42 -0
- data/lib/webgen/tree.rb +80 -0
- data/lib/webgen/version.rb +6 -0
- data/lib/webgen/webgentask.rb +148 -0
- data/lib/webgen/website.rb +214 -0
- data/lib/webgen/websiteaccess.rb +29 -0
- data/lib/webgen/websitemanager.rb +125 -0
- data/man/man1/webgen.1 +67 -0
- data/misc/default.css +360 -0
- data/misc/default.template +75 -0
- data/misc/htmldoc.metainfo +25 -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/setup.rb +1585 -0
- data/test/helper.rb +41 -0
- data/test/test_blackboard.rb +58 -0
- data/test/test_cache.rb +57 -0
- data/test/test_common_sitemap.rb +56 -0
- data/test/test_configuration.rb +66 -0
- data/test/test_contentprocessor.rb +31 -0
- data/test/test_contentprocessor_blocks.rb +34 -0
- data/test/test_contentprocessor_builder.rb +19 -0
- data/test/test_contentprocessor_context.rb +38 -0
- data/test/test_contentprocessor_erb.rb +20 -0
- data/test/test_contentprocessor_erubis.rb +47 -0
- data/test/test_contentprocessor_haml.rb +20 -0
- data/test/test_contentprocessor_maruku.rb +27 -0
- data/test/test_contentprocessor_rdiscount.rb +15 -0
- data/test/test_contentprocessor_rdoc.rb +16 -0
- data/test/test_contentprocessor_redcloth.rb +12 -0
- data/test/test_contentprocessor_sass.rb +20 -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 +339 -0
- data/test/test_output_filesystem.rb +58 -0
- data/test/test_page.rb +203 -0
- data/test/test_path.rb +131 -0
- data/test/test_source_filesystem.rb +59 -0
- data/test/test_source_resource.rb +26 -0
- data/test/test_source_stacked.rb +34 -0
- data/test/test_sourcehandler_base.rb +92 -0
- data/test/test_sourcehandler_copy.rb +45 -0
- data/test/test_sourcehandler_directory.rb +25 -0
- data/test/test_sourcehandler_feed.rb +74 -0
- data/test/test_sourcehandler_fragment.rb +67 -0
- data/test/test_sourcehandler_metainfo.rb +93 -0
- data/test/test_sourcehandler_page.rb +70 -0
- data/test/test_sourcehandler_sitemap.rb +47 -0
- data/test/test_sourcehandler_template.rb +63 -0
- data/test/test_sourcehandler_virtual.rb +56 -0
- data/test/test_tag_base.rb +82 -0
- data/test/test_tag_breadcrumbtrail.rb +89 -0
- data/test/test_tag_coderay.rb +30 -0
- data/test/test_tag_date.rb +16 -0
- data/test/test_tag_executecommand.rb +39 -0
- data/test/test_tag_includefile.rb +48 -0
- data/test/test_tag_langbar.rb +60 -0
- data/test/test_tag_menu.rb +195 -0
- data/test/test_tag_metainfo.rb +17 -0
- data/test/test_tag_relocatable.rb +57 -0
- data/test/test_tag_sitemap.rb +44 -0
- data/test/test_tree.rb +69 -0
- data/test/test_webgentask.rb +21 -0
- data/test/test_website.rb +96 -0
- data/test/test_websiteaccess.rb +23 -0
- data/test/test_websitemanager.rb +68 -0
- metadata +575 -0
@@ -0,0 +1,646 @@
|
|
1
|
+
---
|
2
|
+
title: Configuration Option Reference
|
3
|
+
in_menu: false
|
4
|
+
---
|
5
|
+
|
6
|
+
# Configuration Option Reference
|
7
|
+
|
8
|
+
This reference describes all available configurations that can be set via the configuration file
|
9
|
+
(or, if you want to have more control, via an extension file).
|
10
|
+
|
11
|
+
## General Options
|
12
|
+
|
13
|
+
* ### website.lang
|
14
|
+
|
15
|
+
Specifies the default language of the website. The default language is assigned, for example, to
|
16
|
+
page files for which a language is not explicitly specified.
|
17
|
+
|
18
|
+
* Syntax: `LANGUAGE` where `LANGUAGE` is a ISO-639-1/2 two or three letter language code
|
19
|
+
|
20
|
+
* Examples:
|
21
|
+
|
22
|
+
website.lang: deu
|
23
|
+
website.lang: fr
|
24
|
+
|
25
|
+
|
26
|
+
* ### website.link\_to\_current\_page
|
27
|
+
|
28
|
+
If this option is set to `true`, automatically generated links from a page to itself are
|
29
|
+
used. Otherwise, only the title of the page is shown.
|
30
|
+
|
31
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is `true` or `false`
|
32
|
+
|
33
|
+
* Examples:
|
34
|
+
|
35
|
+
website.link_to_current_page: false
|
36
|
+
|
37
|
+
|
38
|
+
* ### website.cache
|
39
|
+
|
40
|
+
Specifies the type and location of the cache. Two types are currently supported: `:file` and
|
41
|
+
`:string`. The file cache type stores the cache in a file relative to the website directory. The
|
42
|
+
string cache type stores the cache directly in the second part of the configuration option (this
|
43
|
+
is only useful when webgen is used as a library).
|
44
|
+
|
45
|
+
* Syntax: `[TYPE, LOCATION]` where `TYPE` is one of `:file` or `:string`
|
46
|
+
|
47
|
+
* Examples:
|
48
|
+
|
49
|
+
website.cache: [:file, my.cache]
|
50
|
+
|
51
|
+
|
52
|
+
## Commonly Used Options
|
53
|
+
|
54
|
+
* ### common.sitemap.honor\_in\_menu
|
55
|
+
|
56
|
+
Specifies whether the sitemap should only include nodes that have the meta information `in_menu`
|
57
|
+
set.
|
58
|
+
|
59
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
60
|
+
|
61
|
+
* Examples:
|
62
|
+
|
63
|
+
Sitemap with in-menu nodes: \{sitemap: {honor_in_menu: true}}
|
64
|
+
|
65
|
+
|
66
|
+
* ### common.sitemap.any\_lang
|
67
|
+
|
68
|
+
Specifies whether the sitemap should include nodes in any language or only those without a
|
69
|
+
language or with the language of the node in which the sitemap tag is used.
|
70
|
+
|
71
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
72
|
+
|
73
|
+
* Examples:
|
74
|
+
|
75
|
+
Sitemap with nodes in any language: \{sitemap: {any_lang: true}}
|
76
|
+
|
77
|
+
|
78
|
+
* ### common.sitemap.used\_kinds
|
79
|
+
|
80
|
+
Specifies the kind of nodes that should be used in the sitemap. This defaults to all nodes with
|
81
|
+
the kind `page`. If this is set to an empty array, any kind of node is used.
|
82
|
+
|
83
|
+
* Syntax: `[KIND, ...]` where `KIND` is the kind of node that should be used.
|
84
|
+
|
85
|
+
* Examples:
|
86
|
+
|
87
|
+
Sitemap with only asset nodes: \{sitemap: {used_kinds: [asset]}}
|
88
|
+
|
89
|
+
|
90
|
+
## Source and Output Specific Options
|
91
|
+
|
92
|
+
* ### sources
|
93
|
+
|
94
|
+
Specifies one or more sources from which paths are read. This can also be used, for example, to
|
95
|
+
additionally add other directories as source directories that may or may not be located in the
|
96
|
+
website directory.
|
97
|
+
|
98
|
+
* Syntax: `[[MOUNT POINT, NAME, ARG1, ARG2, ...], ...]` where `MOUNT POINT` is the path under
|
99
|
+
which the source should be mounted, `NAME` is the name of the source class (for example,
|
100
|
+
`Webgen::Source::FileSystem`) and `ARG1`, `ARG2` and so on are the parameters for the source
|
101
|
+
class. The supported parameters can be found in the documentation for each source class.
|
102
|
+
|
103
|
+
* Examples:
|
104
|
+
|
105
|
+
sources: [[/, Webgen::Source::FileSystem, src], [/, Webgen::Source::FileSystem, /mnt/pictures, **/*.jpg]
|
106
|
+
|
107
|
+
|
108
|
+
* ### output
|
109
|
+
|
110
|
+
Specifies the output class that should be used for writing out the generated paths.
|
111
|
+
|
112
|
+
* Syntax: `[NAME, ARG1, ARG2, ...]` where `NAME` is the name of the output class (for example,
|
113
|
+
`Webgen::Output::FileSystem`) and `ARG1`, `ARG2` and so on are the parameters for the output
|
114
|
+
class. The supported parameters can be found in the documentation for each output class.
|
115
|
+
|
116
|
+
* Examples:
|
117
|
+
|
118
|
+
output: [Webgen::Output::FileSystem, custom_out]
|
119
|
+
|
120
|
+
|
121
|
+
* ### sourcehandler.patterns
|
122
|
+
|
123
|
+
Specifies the path patterns that are used by the individual source handlers. This configuration
|
124
|
+
option is not normally set in the configuration file but in an extension file
|
125
|
+
(e.g. `ext/init.rb`) because otherwise the default entries would be overwritten.
|
126
|
+
|
127
|
+
* Syntax: `\{NAME: [PATTERN, PATTERN, ...], ...}` where `NAME` is the
|
128
|
+
name the name of a source handler and `PATTERN` are one or more path patterns.
|
129
|
+
|
130
|
+
* Examples (for `ext/init.rb`):
|
131
|
+
|
132
|
+
config.sourcehandler.patterns['Webgen::SourceHandler::Copy'] << '**/*.swf'
|
133
|
+
|
134
|
+
|
135
|
+
* ### sourcehandler.invoke
|
136
|
+
|
137
|
+
Specifies the invocation order of the various source handlers. This configuration option should
|
138
|
+
normally only be used by extensions to register their source handlers!
|
139
|
+
|
140
|
+
* Syntax: `\{ORDER: [NAME, ...], ...}` where `ORDER` is a number identifying the priority of the
|
141
|
+
invocation (source handlers with a lower `ORDER` setting are executed earlier than ones with a
|
142
|
+
higher `ORDER` setting) and `NAME` is the name of a source handler.
|
143
|
+
|
144
|
+
* Examples (for `ext/init.rb`):
|
145
|
+
|
146
|
+
config.sourcehandler.invoke[5] << 'Extension::MyNewSourceHandler'
|
147
|
+
|
148
|
+
|
149
|
+
* ### sourcehandler.casefold
|
150
|
+
|
151
|
+
Specifies whether path names should be considered case-sensitive (set to `false`) or
|
152
|
+
case-insensitive (set to `true`).
|
153
|
+
|
154
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
155
|
+
|
156
|
+
* Examples:
|
157
|
+
|
158
|
+
sourcehandler.casefold: true
|
159
|
+
|
160
|
+
|
161
|
+
* ### sourcehandler.use\_hidden\_files
|
162
|
+
|
163
|
+
Specifies whether hidden files (those starting with a dot) should be used.
|
164
|
+
|
165
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
166
|
+
|
167
|
+
* Examples:
|
168
|
+
|
169
|
+
sourcehandler.use_hidden_files: true
|
170
|
+
|
171
|
+
|
172
|
+
* ### sourcehandler.ignore
|
173
|
+
|
174
|
+
Specifies path patterns that should be ignored. All paths that match at least one of the
|
175
|
+
patterns are never used.
|
176
|
+
|
177
|
+
* Syntax: `[PATTERN, ...]` where `PATTERN` is a valid path pattern.
|
178
|
+
|
179
|
+
* Examples:
|
180
|
+
|
181
|
+
sourcehandler.ignore: [**/*~, **/CVS/**]
|
182
|
+
|
183
|
+
|
184
|
+
* ### sourcehandler.default\_lang\_in\_output\_path
|
185
|
+
|
186
|
+
Specifies whether output paths in the default language should have the language code in their
|
187
|
+
name.
|
188
|
+
|
189
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
190
|
+
|
191
|
+
* Examples:
|
192
|
+
|
193
|
+
sourcehandler.default_lang_in_output_path: true
|
194
|
+
|
195
|
+
|
196
|
+
* ### sourcehandler.default\_meta\_info
|
197
|
+
|
198
|
+
Specifies default meta information for all source handlers or for specific ones. The
|
199
|
+
configuration file provides a shortcut for setting meta information items using the special
|
200
|
+
`default_meta_info` key (see the examples).
|
201
|
+
|
202
|
+
* Syntax: `\{NAME: {MI_KEY: MI_VALUE, ...}, ...}` where `NAME` is either the name of a source
|
203
|
+
handler or the special key `:all` which sets default meta info for all source handlers.
|
204
|
+
|
205
|
+
* Examples:
|
206
|
+
|
207
|
+
default_meta_info:
|
208
|
+
:all:
|
209
|
+
output_path_style: [:parent, :cnbase, :lang, :ext]
|
210
|
+
Webgen::SourceHandler::Page:
|
211
|
+
in_menu: true
|
212
|
+
|
213
|
+
|
214
|
+
* ### sourcehandler.template.default\_template
|
215
|
+
|
216
|
+
Specifies the name of the default template file of a directory. This template is used as
|
217
|
+
fallback when no specific template is specified.
|
218
|
+
|
219
|
+
* Syntax: `PATH` where `PATH` is the absolute localized canonical name of the default template.
|
220
|
+
|
221
|
+
* Examples:
|
222
|
+
|
223
|
+
sourcehandler.template.default_template: other.template
|
224
|
+
|
225
|
+
|
226
|
+
## Content Processor Specific Options
|
227
|
+
|
228
|
+
* ### contentprocessor.map
|
229
|
+
|
230
|
+
This configuration option maps short names for content processor to their class names. The short
|
231
|
+
names are used, for example, in the procesing pipeline of a content block of a file in Webgen
|
232
|
+
Page Format. This configuration option is normally only used by extensions to register the short
|
233
|
+
name of a content processor!
|
234
|
+
|
235
|
+
* Syntax: `\{SHORT: NAME, ...}` where `SHORT` is the short name of the content processor class
|
236
|
+
`NAME`.
|
237
|
+
|
238
|
+
* Examples (for `ext/init.rb`):
|
239
|
+
|
240
|
+
config['contentprocessor.map']['newcp'] = 'Extension::MyNewContentProcessor'
|
241
|
+
|
242
|
+
|
243
|
+
* ### contentprocessor.erubis.use\_pi
|
244
|
+
|
245
|
+
Specifies whether Erubis should look for XML processing instructions or the standard ERB tags
|
246
|
+
when processing content.
|
247
|
+
|
248
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
249
|
+
|
250
|
+
* Examples:
|
251
|
+
|
252
|
+
contentprocessor.erubis.use_pi: true
|
253
|
+
|
254
|
+
|
255
|
+
* ### contentprocessor.erubis.options
|
256
|
+
|
257
|
+
This configuration option can be used to specify additional options that the Erubis processor
|
258
|
+
should use.
|
259
|
+
|
260
|
+
* Syntax: `\{KEY: VALUE, ...}` where `KEY` and `VALUE` are key-value pairs of options where
|
261
|
+
`KEY` needs to be a Symbol and not a String.
|
262
|
+
|
263
|
+
* Examples:
|
264
|
+
|
265
|
+
contentprocessor.erubis.options: {:trim: true}
|
266
|
+
|
267
|
+
|
268
|
+
* ### contentprocessor.tags.prefix
|
269
|
+
|
270
|
+
Specifies the optional prefix that is used for tag names to avoid name clashes when another
|
271
|
+
content processor uses similar markup.
|
272
|
+
|
273
|
+
* Syntax: `PREFIX` where `PREFIX` is the prefix name.
|
274
|
+
|
275
|
+
* Examples:
|
276
|
+
|
277
|
+
contentprocessor.tags.prefix: webgen
|
278
|
+
contentprocessor.tags.prefix: tag
|
279
|
+
|
280
|
+
|
281
|
+
* ### contentprocessor.tags.map
|
282
|
+
|
283
|
+
This configuration option maps short names for tag classes to tag class names. The short names
|
284
|
+
are used in page and template files to specify the tag. This configuration option is normally
|
285
|
+
only used by extensions to register the short name of a content processor.
|
286
|
+
|
287
|
+
* Syntax: `\{SHORT: NAME, ...}` where `SHORT` is the short name of the tag class `NAME`.
|
288
|
+
|
289
|
+
* Examples (for `ext/init.rb`):
|
290
|
+
|
291
|
+
config['contentprocessor.tags.map']['highlight'] = 'Extension::MyHighlightingTag'
|
292
|
+
|
293
|
+
|
294
|
+
## Tag Specific Options
|
295
|
+
|
296
|
+
These options are not normally set in the configuration file but given directly as options to the
|
297
|
+
respective tag classes. Therefore, all examples in this section show the use of these options in
|
298
|
+
files in Webgen Page Format.
|
299
|
+
|
300
|
+
* ### tag.breadcrumbtrail.separator
|
301
|
+
|
302
|
+
Specifies the string that should be used as separator between indivdual parts of the breadcrumb
|
303
|
+
trail.
|
304
|
+
|
305
|
+
* Syntax: `SEPARATOR` where `SEPARATOR` is a string (special HTML characters need to be properly
|
306
|
+
escaped)
|
307
|
+
|
308
|
+
* Examples:
|
309
|
+
|
310
|
+
Breadcrumb trail with different separator: \{breadcrumb_trail: {separator: ' --- '}}
|
311
|
+
|
312
|
+
|
313
|
+
* ### tag.breadcrumbtrail.omit\_index\_path
|
314
|
+
|
315
|
+
Specifies that the last part of the breadcrumb trail should be omitted if it is an index path.
|
316
|
+
|
317
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
318
|
+
|
319
|
+
* Examples:
|
320
|
+
|
321
|
+
Breadcrumb trail with index path omitted: \{breadcrumb_trail: {omit_index_path: true}}
|
322
|
+
|
323
|
+
|
324
|
+
* ### tag.breadcrumbtrail.start\_level
|
325
|
+
|
326
|
+
Specifies the level at which the breadcrumb trail starts. The default of 0 means to start a the
|
327
|
+
root directory. Setting this option to 1 starts the breadcrumb trail at the first level. If you
|
328
|
+
specify negative numbers, then everything is calculated from the end of the trail. Following is
|
329
|
+
a diagram showing the level numbers for a sample path:
|
330
|
+
|
331
|
+
0 1 2 3
|
332
|
+
/ dir1 / dir2 / myfile.html
|
333
|
+
-4 -3 -2 -1
|
334
|
+
|
335
|
+
Be aware that the you need to take the `tag.breadcrumbtrail.omit_index_path` option into
|
336
|
+
account when specifying the level number.
|
337
|
+
|
338
|
+
* Syntax: `INTEGER` where `INTEGER` is any integer number
|
339
|
+
|
340
|
+
* Examples:
|
341
|
+
|
342
|
+
Breadcrumb trail starting at level 2: \{breadcrumb_trail: {start_level: 2}}
|
343
|
+
|
344
|
+
|
345
|
+
* ### tag.breadcrumbtrail.end\_level
|
346
|
+
|
347
|
+
Specifies the level at which the breadcrumb trail ends. Have a look at the documentation for
|
348
|
+
`tag.breadcrumbtrail.start_level` for more information on the useable level numbers.
|
349
|
+
|
350
|
+
* Syntax: `INTEGER` where `INTEGER` is any integer number
|
351
|
+
|
352
|
+
* Examples:
|
353
|
+
|
354
|
+
Breadcrumb trail ending at level 2: \{breadcrumb_trail: {end_level: 2}}
|
355
|
+
|
356
|
+
|
357
|
+
* ### tag.coderay.lang
|
358
|
+
|
359
|
+
Specifies the language that should be used for syntax highlighting.
|
360
|
+
|
361
|
+
* Syntax: `LANG` where `LANG` is one of <%= (require 'coderay'; CodeRay::Scanners.list.map {|n| '`' + n + '`'}.join(', ')) %>.
|
362
|
+
|
363
|
+
* Examples:
|
364
|
+
|
365
|
+
highlighting some ruby code \{coderay:: ruby}puts 5 + 5{coderay}
|
366
|
+
|
367
|
+
|
368
|
+
* ### tag.coderay.process\_body
|
369
|
+
|
370
|
+
Specifies whether the body of the tag should be processed by the tags content processor first.
|
371
|
+
|
372
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
373
|
+
|
374
|
+
* Examples:
|
375
|
+
|
376
|
+
wrapping in a span: \{coderay:: {lang: ruby, process_body: false}}puts 5 + 5{coderay}
|
377
|
+
|
378
|
+
|
379
|
+
* ### tag.coderay.wrap
|
380
|
+
|
381
|
+
Specifies in which HTML element the highlighted code should be wrapped.
|
382
|
+
|
383
|
+
* Syntax: `WRAP` where `WRAP` is either `div` or `span`
|
384
|
+
|
385
|
+
* Examples:
|
386
|
+
|
387
|
+
wrapping in a span: \{coderay:: {lang: ruby, wrap: span}}puts 5 + 5{coderay}
|
388
|
+
|
389
|
+
|
390
|
+
* ### tag.coderay.line\_numbers
|
391
|
+
|
392
|
+
Specifies whether line numbers should be shown.
|
393
|
+
|
394
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
395
|
+
|
396
|
+
* Examples:
|
397
|
+
|
398
|
+
not showing line numbers: \{coderay:: {lang: ruby, line_numbers: false}}puts 5 + 5{coderay}
|
399
|
+
|
400
|
+
|
401
|
+
* ### tag.coderay.line\_number\_start
|
402
|
+
|
403
|
+
Specifies the line number that should be used for the first line.
|
404
|
+
|
405
|
+
* Syntax: `NUMBER` where `NUMBER` is an integer value.
|
406
|
+
|
407
|
+
* Examples:
|
408
|
+
|
409
|
+
starting with line 4: \{coderay:: {lang: ruby, line_number_start: 4}}puts 5 + 5{coderay}
|
410
|
+
|
411
|
+
|
412
|
+
* ### tag.coderay.bold\_every
|
413
|
+
|
414
|
+
Specifies the interval at which the line numbers should appear bold.
|
415
|
+
|
416
|
+
* Syntax: `NUMBER` where `NUMBER` is an integer value.
|
417
|
+
|
418
|
+
* Examples:
|
419
|
+
|
420
|
+
every other line bold: \{coderay:: {lang: ruby, bold_every: 2}}puts 5 + 5{coderay}
|
421
|
+
|
422
|
+
|
423
|
+
* ### tag.coderay.tab\_width
|
424
|
+
|
425
|
+
Specifies the number of spaces that should be used to replace tabulator characters.
|
426
|
+
|
427
|
+
* Syntax: `NUMBER` where `NUMBER` is an integer value.
|
428
|
+
|
429
|
+
* Examples:
|
430
|
+
|
431
|
+
tabulator == 4 spaces: \{coderay:: {lang: ruby, tab_width: 4}}puts 5 + 5{coderay}
|
432
|
+
|
433
|
+
|
434
|
+
* ### tag.date.format
|
435
|
+
|
436
|
+
Specifies the format that should be used for formatting the current date. The format string
|
437
|
+
needs to be in a format supported by Ruby's method
|
438
|
+
[Time#strftime](http://www.ruby-doc.org/core/classes/Time.html).
|
439
|
+
|
440
|
+
* Syntax: `FORMAT` where `FORMAT` is a string.
|
441
|
+
|
442
|
+
* Examples:
|
443
|
+
|
444
|
+
very short date format: \{date: {format: '%Y-%m-%d'}}
|
445
|
+
|
446
|
+
|
447
|
+
* ### tag.executecommand.command
|
448
|
+
|
449
|
+
Specifies the command that should be executed. This option is the default mandatory option for
|
450
|
+
Webgen::Tag::ExecuteCommand.
|
451
|
+
|
452
|
+
* Syntax: `COMMAND` where `COMMAND` is the to-be-executed command.
|
453
|
+
|
454
|
+
* Examples:
|
455
|
+
|
456
|
+
executing a simple command \{exeucte_cmd: echo hallo}
|
457
|
+
|
458
|
+
|
459
|
+
* ### tag.executecommand.process\_output
|
460
|
+
|
461
|
+
Specifies whether the output of the executed command should be further processed by the tags
|
462
|
+
content processor.
|
463
|
+
|
464
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
465
|
+
|
466
|
+
* Examples:
|
467
|
+
|
468
|
+
executing command without further processing \{execute_cmd: {command: 'echo hallo', process_output: false}}
|
469
|
+
|
470
|
+
|
471
|
+
* ### tag.executecommand.escape\_html
|
472
|
+
|
473
|
+
Specifies whether special HTML characters in the output of the executed command should be escaped.
|
474
|
+
|
475
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
476
|
+
|
477
|
+
* Examples:
|
478
|
+
|
479
|
+
executing command, output not escaped \{execute_cmd: {command: 'echo hallo', escape_html: false}}
|
480
|
+
|
481
|
+
|
482
|
+
* ### tag.includefile.filename
|
483
|
+
|
484
|
+
Specifies the name of the file that should be included. The filename needs to be relative to the
|
485
|
+
website directory or an absolute path. This option is the default mandatory option for
|
486
|
+
Webgen::Tag::IncludeFile.
|
487
|
+
|
488
|
+
* Syntax: `FILENAME` where `FILENAME` is the name of a file
|
489
|
+
|
490
|
+
* Examples:
|
491
|
+
|
492
|
+
including a file \{include_file: my_file.txt}
|
493
|
+
|
494
|
+
|
495
|
+
* ### tag.includefile.process\_output
|
496
|
+
|
497
|
+
Specifies whether the content of the file should be further processed by the tags content
|
498
|
+
processor.
|
499
|
+
|
500
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
501
|
+
|
502
|
+
* Examples:
|
503
|
+
|
504
|
+
including a file without further processing \{include_file: {filename: my_file.txt, process_output: false}}
|
505
|
+
|
506
|
+
|
507
|
+
* ### tag.includefile.escape\_html
|
508
|
+
|
509
|
+
Specifies whether special HTML characters in the content of the file should be escaped.
|
510
|
+
|
511
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
512
|
+
|
513
|
+
* Examples:
|
514
|
+
|
515
|
+
including a file without escaping \{include_file: {filename: my_file.txt, escape_html: false}}
|
516
|
+
|
517
|
+
|
518
|
+
* ### tag.langbar.separator
|
519
|
+
|
520
|
+
Specifies the string that should be used as separator between the individual language parts.
|
521
|
+
|
522
|
+
* Syntax: `SEPARATOR` where `SEPARATOR` is a string (special HTML characters need to be properly
|
523
|
+
escaped)
|
524
|
+
|
525
|
+
* Examples:
|
526
|
+
|
527
|
+
Langbar with another separator: \{langbar: {separator: ' --- '}}
|
528
|
+
|
529
|
+
|
530
|
+
* ### tag.langbar.show\_own\_lang
|
531
|
+
|
532
|
+
Specifies whether the link to the language of the current page should be displayed.
|
533
|
+
|
534
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
535
|
+
|
536
|
+
* Examples:
|
537
|
+
|
538
|
+
Langbar with current page's lang not shown: \{langbar: {show_own_lang: false}}
|
539
|
+
|
540
|
+
|
541
|
+
* ### tag.langbar.show\_single\_lang
|
542
|
+
|
543
|
+
Specifies whether the list should be displayed even if there are no translations of the page
|
544
|
+
(i.e. when there is only one page).
|
545
|
+
|
546
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
547
|
+
|
548
|
+
* Examples:
|
549
|
+
|
550
|
+
Langbar with single language not shown: \{langbar: {show_single_lang: false}}
|
551
|
+
|
552
|
+
|
553
|
+
* ### tag.menu.used\_nodes
|
554
|
+
|
555
|
+
Specifies the type of nodes that should be used for menu generation. If `all` is specified then
|
556
|
+
all available menu nodes are used, if `files` is specified then only menu nodes that represent
|
557
|
+
files or directories are used and if `fragments` is specified then only the fragment nodes of
|
558
|
+
the displayed file are used.
|
559
|
+
|
560
|
+
* Syntax: `TYPE` where `TYPE` is one of `all`, `files` or `fragments`
|
561
|
+
|
562
|
+
* Examples:
|
563
|
+
|
564
|
+
Show the fragment node menu: \{menu: {used_nodes: fragments}}
|
565
|
+
|
566
|
+
|
567
|
+
* ### tag.menu.start\_level
|
568
|
+
|
569
|
+
Specifies the start level for the menu. All nodes with a lower level than this number are not
|
570
|
+
shown in the menu.
|
571
|
+
|
572
|
+
* Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
|
573
|
+
|
574
|
+
* Examples:
|
575
|
+
|
576
|
+
Menu starting at level 2: \{menu: {start_level: 2}}
|
577
|
+
|
578
|
+
|
579
|
+
* ### tag.menu.min\_levels
|
580
|
+
|
581
|
+
Specifies the minimum number of levels that should always be shown. For example, if this is set
|
582
|
+
to `2` then two menu levels are always shown.
|
583
|
+
|
584
|
+
* Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
|
585
|
+
|
586
|
+
* Examples:
|
587
|
+
|
588
|
+
Menu that always shows at least 2 levels : \{menu: {min_levels: 2}}
|
589
|
+
|
590
|
+
|
591
|
+
* ### tag.menu.max\_levels
|
592
|
+
|
593
|
+
Specifies the maximum number of levels that should be shown even if there would be more. For
|
594
|
+
example, if this is set to `2` then there are only shown at most two menu levels.
|
595
|
+
|
596
|
+
* Syntax: `LEVEL` where `LEVEL` is a number that is greater or equal to one.
|
597
|
+
|
598
|
+
* Examples:
|
599
|
+
|
600
|
+
Menu that always shows at most 2 levels : \{menu: {max_levels: 2}}
|
601
|
+
|
602
|
+
|
603
|
+
* ### tag.menu.show\_current\_subtree\_only
|
604
|
+
|
605
|
+
Specifies whether only the current subtree (ie. the subtree in which the node is that is
|
606
|
+
displayed) should be shown in the menu or all subtrees. This option takes effect when there are
|
607
|
+
at least two menu levels visible.
|
608
|
+
|
609
|
+
* Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
|
610
|
+
|
611
|
+
* Examples:
|
612
|
+
|
613
|
+
Showing all subtrees: \{menu: {show_current_subtree_only: false}}
|
614
|
+
|
615
|
+
|
616
|
+
* ### tag.relocatable.path
|
617
|
+
|
618
|
+
The default mandatory configuration option for Tag::Relocatable that specifies the path that
|
619
|
+
should be made relocatable. This option is the default mandatory option for
|
620
|
+
Webgen::Tag::Relocatable.
|
621
|
+
|
622
|
+
* Syntax: `PATH` where `PATH` is a (localized) canonical name.
|
623
|
+
|
624
|
+
* Examples:
|
625
|
+
|
626
|
+
<a href="\{relocatable: ../features.html}">Some Path</a>
|
627
|
+
|
628
|
+
|
629
|
+
---
|
630
|
+
|
631
|
+
## Miscelleanous Configuration Options
|
632
|
+
|
633
|
+
* ### resources
|
634
|
+
|
635
|
+
A map from resource names to resource identifiers. Should only be used by extensions and not be
|
636
|
+
set in the configuration file.
|
637
|
+
|
638
|
+
* Syntax: `NAME` TODO
|
639
|
+
|
640
|
+
# All things regarding logging
|
641
|
+
config.logger.mask(nil, :doc => 'Only show logging events which match the regexp mask')
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|