webgen 0.5.10 → 0.5.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/ChangeLog +487 -0
  2. data/Rakefile +13 -28
  3. data/VERSION +1 -1
  4. data/bin/webgen +1 -2
  5. data/data/webgen/passive_sources/templates/atom_feed.template +1 -0
  6. data/data/webgen/website_bundles/style/andreas07/src/default.css +2 -2
  7. data/data/webgen/website_skeleton/config.yaml +22 -5
  8. data/doc/contentprocessor.template +2 -2
  9. data/doc/contentprocessor/blocks.page +4 -4
  10. data/doc/contentprocessor/builder.page +2 -3
  11. data/doc/contentprocessor/erb.page +1 -1
  12. data/doc/contentprocessor/erubis.page +5 -5
  13. data/doc/contentprocessor/fragments.page +5 -4
  14. data/doc/contentprocessor/haml.page +2 -3
  15. data/doc/contentprocessor/head.page +16 -6
  16. data/doc/contentprocessor/kramdown.page +49 -0
  17. data/doc/contentprocessor/less.page +34 -0
  18. data/doc/contentprocessor/maruku.page +6 -3
  19. data/doc/contentprocessor/rdiscount.page +3 -3
  20. data/doc/contentprocessor/rdoc.page +1 -1
  21. data/doc/contentprocessor/redcloth.page +1 -1
  22. data/doc/contentprocessor/sass.page +1 -1
  23. data/doc/contentprocessor/tags.page +2 -2
  24. data/doc/contentprocessor/tidy.page +2 -2
  25. data/doc/extensions.page +1 -2
  26. data/doc/extensions.template +5 -5
  27. data/doc/getting_started.page +16 -12
  28. data/doc/index.page +21 -21
  29. data/doc/manual.page +109 -61
  30. data/doc/reference_configuration.page +63 -38
  31. data/doc/reference_metainfo.page +68 -45
  32. data/doc/reference_website_styles.page +5 -1
  33. data/doc/source/filesystem.page +4 -4
  34. data/doc/source/tararchive.page +4 -4
  35. data/doc/sourcehandler.template +2 -2
  36. data/doc/sourcehandler/feed.page +3 -4
  37. data/doc/sourcehandler/metainfo.page +1 -1
  38. data/doc/sourcehandler/page.page +3 -3
  39. data/doc/sourcehandler/sitemap.page +2 -3
  40. data/doc/sourcehandler/template.page +2 -2
  41. data/doc/sourcehandler/virtual.page +5 -5
  42. data/doc/tag.template +1 -1
  43. data/doc/tag/coderay.page +2 -2
  44. data/doc/tag/includefile.page +1 -1
  45. data/doc/tag/langbar.page +4 -1
  46. data/doc/tag/menu.page +3 -3
  47. data/doc/tag/relocatable.page +1 -1
  48. data/doc/upgrading.page +30 -31
  49. data/doc/webgen_page_format.page +6 -6
  50. data/lib/webgen/cache.rb +4 -5
  51. data/lib/webgen/cli/utils.rb +18 -7
  52. data/lib/webgen/cli/webgui_command.rb +4 -2
  53. data/lib/webgen/common.rb +10 -0
  54. data/lib/webgen/configuration.rb +1 -3
  55. data/lib/webgen/contentprocessor.rb +4 -2
  56. data/lib/webgen/contentprocessor/blocks.rb +1 -0
  57. data/lib/webgen/contentprocessor/builder.rb +3 -9
  58. data/lib/webgen/contentprocessor/erb.rb +3 -9
  59. data/lib/webgen/contentprocessor/erubis.rb +3 -9
  60. data/lib/webgen/contentprocessor/haml.rb +10 -11
  61. data/lib/webgen/contentprocessor/head.rb +64 -0
  62. data/lib/webgen/contentprocessor/kramdown.rb +26 -0
  63. data/lib/webgen/contentprocessor/kramdown/html.rb +32 -0
  64. data/lib/webgen/contentprocessor/less.rb +35 -0
  65. data/lib/webgen/contentprocessor/maruku.rb +14 -0
  66. data/lib/webgen/contentprocessor/tags.rb +25 -7
  67. data/lib/webgen/default_config.rb +9 -3
  68. data/lib/webgen/node.rb +92 -0
  69. data/lib/webgen/output.rb +3 -1
  70. data/lib/webgen/source/resource.rb +2 -1
  71. data/lib/webgen/source/tararchive.rb +3 -2
  72. data/lib/webgen/sourcehandler.rb +8 -4
  73. data/lib/webgen/sourcehandler/base.rb +1 -2
  74. data/lib/webgen/sourcehandler/feed.rb +1 -1
  75. data/lib/webgen/sourcehandler/virtual.rb +1 -0
  76. data/lib/webgen/tag/base.rb +1 -1
  77. data/lib/webgen/tag/langbar.rb +5 -2
  78. data/lib/webgen/version.rb +1 -1
  79. data/lib/webgen/website.rb +7 -8
  80. data/misc/default.template +1 -1
  81. data/misc/htmldoc.virtual +13 -1
  82. data/test/test_contentprocessor.rb +1 -1
  83. data/test/test_contentprocessor_blocks.rb +16 -1
  84. data/test/test_contentprocessor_erb.rb +1 -1
  85. data/test/test_contentprocessor_fragments.rb +1 -1
  86. data/test/test_contentprocessor_haml.rb +2 -2
  87. data/test/test_contentprocessor_head.rb +54 -8
  88. data/test/test_contentprocessor_kramdown.rb +50 -0
  89. data/test/test_contentprocessor_less.rb +40 -0
  90. data/test/test_contentprocessor_tags.rb +8 -0
  91. data/test/test_node.rb +102 -41
  92. data/test/test_source_tararchive.rb +5 -1
  93. data/test/test_sourcehandler_feed.rb +5 -2
  94. data/test/test_sourcehandler_virtual.rb +5 -0
  95. data/test/test_tag_langbar.rb +2 -3
  96. metadata +22 -16
  97. data/lib/webgen/deprecated.rb +0 -87
@@ -60,7 +60,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
60
60
  website.lang: de
61
61
 
62
62
 
63
- * ### website.link\_to\_current\_page
63
+ * ### website.link_to_current_page
64
64
 
65
65
  If this option is set to `true`, automatically generated links from a page to itself are
66
66
  used. Otherwise, only the title of the page is shown.
@@ -92,7 +92,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
92
92
 
93
93
  ## Commonly Used Options
94
94
 
95
- * ### common.sitemap.honor\_in\_menu
95
+ * ### common.sitemap.honor_in_menu
96
96
 
97
97
  Specifies whether the sitemap should only include nodes that have the meta information `in_menu`
98
98
  set.
@@ -110,7 +110,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
110
110
  Sitemap with in-menu nodes: \{sitemap: {honor_in_menu: true}}
111
111
 
112
112
 
113
- * ### common.sitemap.any\_lang
113
+ * ### common.sitemap.any_lang
114
114
 
115
115
  Specifies whether the sitemap should include nodes in any language or only those without a
116
116
  language or with the language of the node in which the sitemap tag is used.
@@ -128,7 +128,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
128
128
  Sitemap with nodes in any language: \{sitemap: {any_lang: true}}
129
129
 
130
130
 
131
- * ### common.sitemap.used\_kinds
131
+ * ### common.sitemap.used_kinds
132
132
 
133
133
  Specifies the kind of nodes that should be used in the sitemap. This defaults to all nodes with
134
134
  the kind `page`. If this is set to an empty array, any kind of node is used.
@@ -169,7 +169,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
169
169
  source/filesystem.html}) for more examples!
170
170
 
171
171
 
172
- * ### passive\_sources
172
+ * ### passive_sources
173
173
 
174
174
  Specifies one or more sources which are not actively used during the node creation time, ie. no
175
175
  nodes are created from these sources by default. Instead, they lie dormant until later and are
@@ -205,7 +205,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
205
205
  output: [Webgen::Output::FileSystem, custom_out]
206
206
 
207
207
 
208
- * ### output.do\_deletion
208
+ * ### output.do_deletion
209
209
 
210
210
  Specifies whether the output class should delete generated paths once the source paths are not
211
211
  available anymore.
@@ -274,7 +274,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
274
274
  sourcehandler.casefold: true
275
275
 
276
276
 
277
- * ### sourcehandler.use\_hidden\_files
277
+ * ### sourcehandler.use_hidden_files
278
278
 
279
279
  Specifies whether hidden files (those starting with a dot) should be used.
280
280
 
@@ -301,7 +301,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
301
301
  sourcehandler.ignore: [**/*~, **/CVS/**]
302
302
 
303
303
 
304
- * ### sourcehandler.default\_lang\_in\_output\_path
304
+ * ### sourcehandler.default_lang_in_output_path
305
305
 
306
306
  Specifies whether output paths in the default language should have the language code in their
307
307
  name.
@@ -315,7 +315,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
315
315
  sourcehandler.default_lang_in_output_path: true
316
316
 
317
317
 
318
- * ### sourcehandler.default\_meta\_info
318
+ * ### sourcehandler.default_meta_info
319
319
 
320
320
  Specifies default meta information for all source handlers or for specific ones. The
321
321
  configuration file provides a shortcut for setting meta information items using the special
@@ -335,7 +335,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
335
335
  in_menu: true
336
336
 
337
337
 
338
- * ### sourcehandler.template.default\_template
338
+ * ### sourcehandler.template.default_template
339
339
 
340
340
  Specifies the name of the default template file of a directory. This template is used as
341
341
  fallback when no specific template is specified.
@@ -372,7 +372,7 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
372
372
  config['contentprocessor.map']['newcp'] = ['Extension::MyNewContentProcessor', :binary]
373
373
 
374
374
 
375
- * ### contentprocessor.erubis.use\_pi
375
+ * ### contentprocessor.erubis.use_pi
376
376
 
377
377
  Specifies whether Erubis should look for XML processing instructions or the standard ERB tags
378
378
  when processing content.
@@ -401,7 +401,37 @@ configuration options) and/or how to use it in a webgen tag (for tag configurati
401
401
  contentprocessor.erubis.options: {:trim: true}
402
402
 
403
403
 
404
- * ### contentprocessor.redcloth.hard\_breaks
404
+ * ### contentprocessor.kramdown.handle_links
405
+
406
+ This configuration option can be used to specify whether all links generated via kramdown syntax
407
+ should be automatically run through the [relocatable tag]({relocatable: tag/relocatable.html}).
408
+ This saves some typing and makes the document more robust since all links are automatically
409
+ checked and warnings displayed if the link target is not found.
410
+
411
+ * Syntax: `BOOLEAN` where `BOOLEAN` is either `true` or `false`.
412
+
413
+ <%= show_default['contentprocessor.kramdown.handle_links'] %>
414
+
415
+ * Example for setting the option in the configuration file:
416
+
417
+ contentprocessor.kramdown.handle_links: false
418
+
419
+
420
+ * ### contentprocessor.kramdown.options
421
+
422
+ This configuration option can be used to specify processing and converting options for
423
+ kramdown.
424
+
425
+ * Syntax: `\{KEY: VALUE, ...}` where `KEY` and `VALUE` are key-value pairs of kramdown options
426
+
427
+ <%= show_default['contentprocessor.kramdown.options'] %>
428
+
429
+ * Example for setting the option in the configuration file:
430
+
431
+ contentprocessor.kramdown.options: {:auto_ids: false}
432
+
433
+
434
+ * ### contentprocessor.redcloth.hard_breaks
405
435
 
406
436
  Specifies whether hard breaks (i.e. single newlines) in paragraphs are converted to HTML break
407
437
  tags.
@@ -500,7 +530,7 @@ shows how to set the option in the configuration file.
500
530
  Breadcrumb trail with different separator: \{breadcrumb_trail: {separator: ' --- '}}
501
531
 
502
532
 
503
- * ### tag.breadcrumbtrail.omit\_index\_path
533
+ * ### tag.breadcrumbtrail.omit_index_path
504
534
 
505
535
  Specifies that the last part of the breadcrumb trail should be omitted if it is an index path.
506
536
 
@@ -517,7 +547,7 @@ shows how to set the option in the configuration file.
517
547
  Breadcrumb trail with index path omitted: \{breadcrumb_trail: {omit_index_path: true}}
518
548
 
519
549
 
520
- * ### tag.breadcrumbtrail.start\_level
550
+ * ### tag.breadcrumbtrail.start_level
521
551
 
522
552
  Specifies the level at which the breadcrumb trail starts. The default of 0 means to start a the
523
553
  root directory. Setting this option to 1 starts the breadcrumb trail at the first level. If you
@@ -544,7 +574,7 @@ shows how to set the option in the configuration file.
544
574
  Breadcrumb trail starting at level 2: \{breadcrumb_trail: {start_level: 2}}
545
575
 
546
576
 
547
- * ### tag.breadcrumbtrail.end\_level
577
+ * ### tag.breadcrumbtrail.end_level
548
578
 
549
579
  Specifies the level at which the breadcrumb trail ends. Have a look at the documentation for
550
580
  `tag.breadcrumbtrail.start_level` for more information on the useable level numbers.
@@ -579,7 +609,7 @@ shows how to set the option in the configuration file.
579
609
  highlighting some ruby code \{coderay:: ruby}puts 5 + 5{coderay}
580
610
 
581
611
 
582
- * ### tag.coderay.process\_body
612
+ * ### tag.coderay.process_body
583
613
 
584
614
  Specifies whether the body of the tag should be processed by the tags content processor first.
585
615
 
@@ -613,7 +643,7 @@ shows how to set the option in the configuration file.
613
643
  wrapping in a span: \{coderay:: {lang: ruby, wrap: span}}puts 5 + 5{coderay}
614
644
 
615
645
 
616
- * ### tag.coderay.line\_numbers
646
+ * ### tag.coderay.line_numbers
617
647
 
618
648
  Specifies whether line numbers should be shown.
619
649
 
@@ -630,7 +660,7 @@ shows how to set the option in the configuration file.
630
660
  not showing line numbers: \{coderay:: {lang: ruby, line_numbers: false}}puts 5 + 5{coderay}
631
661
 
632
662
 
633
- * ### tag.coderay.line\_number\_start
663
+ * ### tag.coderay.line_number_start
634
664
 
635
665
  Specifies the line number that should be used for the first line.
636
666
 
@@ -647,7 +677,7 @@ shows how to set the option in the configuration file.
647
677
  starting with line 4: \{coderay:: {lang: ruby, line_number_start: 4}}puts 5 + 5{coderay}
648
678
 
649
679
 
650
- * ### tag.coderay.bold\_every
680
+ * ### tag.coderay.bold_every
651
681
 
652
682
  Specifies the interval at which the line numbers should appear bold.
653
683
 
@@ -664,7 +694,7 @@ shows how to set the option in the configuration file.
664
694
  every other line bold: \{coderay:: {lang: ruby, bold_every: 2}}puts 5 + 5{coderay}
665
695
 
666
696
 
667
- * ### tag.coderay.tab\_width
697
+ * ### tag.coderay.tab_width
668
698
 
669
699
  Specifies the number of spaces that should be used to replace tabulator characters.
670
700
 
@@ -740,7 +770,7 @@ shows how to set the option in the configuration file.
740
770
  executing a simple command \{exeucte_cmd: echo hallo}
741
771
 
742
772
 
743
- * ### tag.executecommand.process\_output
773
+ * ### tag.executecommand.process_output
744
774
 
745
775
  Specifies whether the output of the executed command should be further processed by the tags
746
776
  content processor.
@@ -758,7 +788,7 @@ shows how to set the option in the configuration file.
758
788
  executing command without further processing \{execute_cmd: {command: 'echo hallo', process_output: false}}
759
789
 
760
790
 
761
- * ### tag.executecommand.escape\_html
791
+ * ### tag.executecommand.escape_html
762
792
 
763
793
  Specifies whether special HTML characters in the output of the executed command should be escaped.
764
794
 
@@ -790,7 +820,7 @@ shows how to set the option in the configuration file.
790
820
  including a file \{include_file: my_file.txt}
791
821
 
792
822
 
793
- * ### tag.includefile.process\_output
823
+ * ### tag.includefile.process_output
794
824
 
795
825
  Specifies whether the content of the file should be further processed by the tags content
796
826
  processor.
@@ -808,7 +838,7 @@ shows how to set the option in the configuration file.
808
838
  including a file without further processing \{include_file: {filename: my_file.txt, process_output: false}}
809
839
 
810
840
 
811
- * ### tag.includefile.escape\_html
841
+ * ### tag.includefile.escape_html
812
842
 
813
843
  Specifies whether special HTML characters in the content of the file should be escaped.
814
844
 
@@ -843,7 +873,7 @@ shows how to set the option in the configuration file.
843
873
  Langbar with another separator: \{langbar: {separator: ' --- '}}
844
874
 
845
875
 
846
- * ### tag.langbar.show\_own\_lang
876
+ * ### tag.langbar.show_own_lang
847
877
 
848
878
  Specifies whether the link to the language of the current page should be displayed.
849
879
 
@@ -860,7 +890,7 @@ shows how to set the option in the configuration file.
860
890
  Langbar with current page's lang not shown: \{langbar: {show_own_lang: false}}
861
891
 
862
892
 
863
- * ### tag.langbar.show\_single\_lang
893
+ * ### tag.langbar.show_single_lang
864
894
 
865
895
  Specifies whether the list should be displayed even if there are no translations of the page
866
896
  (i.e. when there is only one page).
@@ -878,7 +908,7 @@ shows how to set the option in the configuration file.
878
908
  Langbar with single language not shown: \{langbar: {show_single_lang: false}}
879
909
 
880
910
 
881
- * ### tag.langbar.lang\_names
911
+ * ### tag.langbar.lang_names
882
912
 
883
913
  This configuration option can be used to specify the language names that should be displayed
884
914
  instead of the language codes.
@@ -929,7 +959,7 @@ shows how to set the option in the configuration file.
929
959
  You will find more info on the \{link: {path: docu.html, attr: {title: DocuPage}}} page!
930
960
 
931
961
 
932
- * ### tag.menu.used\_nodes
962
+ * ### tag.menu.used_nodes
933
963
 
934
964
  Specifies the type of nodes that should be used for menu generation. If `all` is specified then
935
965
  all available menu nodes are used, if `files` is specified then only menu nodes that represent
@@ -949,7 +979,7 @@ shows how to set the option in the configuration file.
949
979
  Show the fragment node menu: \{menu: {used_nodes: fragments}}
950
980
 
951
981
 
952
- * ### tag.menu.start\_level
982
+ * ### tag.menu.start_level
953
983
 
954
984
  Specifies the start level for the menu. All nodes with a lower level than this number are not
955
985
  shown in the menu.
@@ -967,7 +997,7 @@ shows how to set the option in the configuration file.
967
997
  Menu starting at level 2: \{menu: {start_level: 2}}
968
998
 
969
999
 
970
- * ### tag.menu.min\_levels
1000
+ * ### tag.menu.min_levels
971
1001
 
972
1002
  Specifies the minimum number of levels that should always be shown. For example, if this is set
973
1003
  to `2` then two menu levels are always shown.
@@ -985,7 +1015,7 @@ shows how to set the option in the configuration file.
985
1015
  Menu that always shows at least 2 levels : \{menu: {min_levels: 2}}
986
1016
 
987
1017
 
988
- * ### tag.menu.max\_levels
1018
+ * ### tag.menu.max_levels
989
1019
 
990
1020
  Specifies the maximum number of levels that should be shown even if there would be more. For
991
1021
  example, if this is set to `2` then there are only shown at most two menu levels.
@@ -1003,7 +1033,7 @@ shows how to set the option in the configuration file.
1003
1033
  Menu that always shows at most 2 levels : \{menu: {max_levels: 2}}
1004
1034
 
1005
1035
 
1006
- * ### tag.menu.show\_current\_subtree\_only
1036
+ * ### tag.menu.show_current_subtree_only
1007
1037
 
1008
1038
  Specifies whether only the current subtree (ie. the subtree in which the node is that is
1009
1039
  displayed) should be shown in the menu or all subtrees. This option takes effect when there are
@@ -1173,7 +1203,7 @@ shows how to set the option in the configuration file.
1173
1203
  {tikz}
1174
1204
 
1175
1205
 
1176
- * ### tag.tikz.img\_attr
1206
+ * ### tag.tikz.img_attr
1177
1207
 
1178
1208
  Specifies additional HTML attributes that should be set on the generated `img` tag.
1179
1209
 
@@ -1205,8 +1235,3 @@ shows how to set the option in the configuration file.
1205
1235
 
1206
1236
  # All things regarding logging
1207
1237
  config.logger.mask(nil, :doc => 'Only show logging events which match the regexp mask')
1208
-
1209
-
1210
-
1211
-
1212
-
@@ -16,129 +16,152 @@ follows the same pattern:
16
16
 
17
17
  ### author
18
18
 
19
- {:miref}
20
19
  * String: `Thomas Leitner`
21
20
  * Any
21
+ {:miref}
22
22
 
23
23
  Sets the author of the path. This information is used, for example, by Webgen::SourceHandler::Feed.
24
24
 
25
- ### author\_url
25
+ ### author_url
26
26
 
27
- {:miref}
28
27
  * String: `http://webgen.rubyforge.org`
29
28
  * Any where `author` is also set
29
+ {:miref}
30
30
 
31
31
  Sets the homepage of the author of the path. This information is used, for example, by
32
32
  Webgen::SourceHandler::Feed and normally only when `author` is also set.
33
33
 
34
34
  ### blocks
35
35
 
36
- {:miref}
37
36
  * Hash of Hashes: `\{default: {pipeline:textile}, 1: {name: content, pipeline:maruku,erb,tags}}`
38
37
  * Files in Webgen Page Format
38
+ {:miref}
39
39
 
40
40
  Specifies the default names and additional options for the blocks. The special key `default` is used
41
41
  to set default options for all blocks. Specific options for (or the name of) a block can be set by
42
42
  using the block index as key (numbering starts from one).
43
43
 
44
- ### change\_freq
44
+ ### change_freq
45
45
 
46
- {:miref}
47
46
  * String: `hourly`
48
47
  * Any
48
+ {:miref}
49
49
 
50
50
  Sets the change frequency of the page. This information is used, for example, by the sitemap source
51
51
  handler. You can use the following values for this key: `hourly, daily, weekly, monthly, yearly,
52
52
  never`.
53
53
 
54
- ### created\_at
54
+ ### created_at
55
55
 
56
- {:miref}
57
56
  * Time: `2008-08-14 10:25:34 +02:00`
58
57
  * Any
58
+ {:miref}
59
59
 
60
60
  Sets the time when the path was created. This information cannot automatically be derived for paths
61
61
  provided by Webgen::Source::FileSystem, so this has to be set manually.
62
62
 
63
63
  > Note that the value needs to be a valid [YAML timestamp](http://yaml.org/type/timestamp.html) and
64
64
  > needs to include the time part.
65
- {.information}
65
+ {:.information}
66
66
 
67
67
  ### draft
68
68
 
69
- {:miref}
70
69
  * Boolean: `true`
71
70
  * Any
71
+ {:miref}
72
72
 
73
73
  If this meta information is set on a path, no node will be created from it. This is useful to add
74
74
  content to a website which should only be used later on.
75
75
 
76
- ### fragments\_in\_menu
76
+ ### fragments_in_menu
77
77
 
78
- {:miref}
79
78
  * Boolean: `false`
80
79
  * Page files
80
+ {:miref}
81
81
 
82
82
  Specifies if the fragment nodes of the page file should be in the menu.
83
83
 
84
- ### index\_path
84
+ ### index_path
85
85
 
86
- {:miref}
87
86
  * String: `myindex.html`
88
87
  * Directories
88
+ {:miref}
89
89
 
90
90
  Sets the directory index path for the directory overriding the default value.
91
91
 
92
- ### in\_menu
92
+ ### in_menu
93
93
 
94
- {:miref}
95
94
  * Boolean: `true`
96
95
  * Any
96
+ {:miref}
97
97
 
98
98
  Specifies if the path should appear in menus.
99
99
 
100
100
  ### kind
101
101
 
102
- {:miref}
103
102
  * String: `page`
104
103
  * Any
104
+ {:miref}
105
105
 
106
106
  Specifies the kind of the path. Some source handlers define a default value for this meta
107
107
  information for nodes created by them.
108
108
 
109
109
  ### lang
110
110
 
111
- {:miref}
112
111
  * String: `de`
113
112
  * Any
113
+ {:miref}
114
114
 
115
115
  Sets the language for the path. Has to be a valid ISO-639-1/2 character code for the language. This
116
116
  meta information needs to be set before a node gets created.
117
117
 
118
- ### link\_attrs
118
+ ### link
119
+
120
+ * Hash: `\{next: next_doc.html, prev: prev_doc.html}`
121
+ * Page files
122
+
123
+ Specifies additional information, for example, about the position of the page file regarding other
124
+ files. A sample usage would be to express that the page file is logically followed or preceded by
125
+ certain page file.
126
+
127
+ The value needs to be hash and its keys need to be [link types] except for the special `javascript`
128
+ and `css` keys (which will be discussed below). The link type is used to specify the relation of the
129
+ page to the linked file. The value can either be a string which is interpreted as a path to the
130
+ internal or external file; or a hash with arbitrary key-value pairs (use lower case key names) but
131
+ it should include at least a `href` key to specify the path to the internal or external file; or an
132
+ array containing strings or hashes to specify more than one linked file for a given link type.
133
+
134
+ The special keys `javascript` and `css` may have an array of strings or a string as value which are
135
+ interpreted as path to javascript/CSS files that should be included.
136
+
137
+ This information is used by [`ContentProcessor::Head`](contentprocessor/head.html) to insert the
138
+ approriate tags in the head section of an HTML document.
139
+
140
+ [link types]: http://www.w3.org/TR/html401/types.html#type-links
141
+
142
+ ### link_attrs
119
143
 
120
- {:miref}
121
144
  * Hash: `\{title: Hallo, class: extra}`
122
145
  * Any
146
+ {:miref}
123
147
 
124
148
  Specifies additional attribute-value pairs (in form of a Hash) that should be added to a link to the
125
149
  path.
126
150
 
127
151
  ### meta
128
152
 
129
- {:miref}
130
153
  * Hash: `\{author: Thomas Leitner, generator: My program}`
131
154
  * Page files
155
+ {:miref}
132
156
 
133
157
  Specifies names and values for `<meta>` HTML tags. These key-value pairs are then properly escaped
134
- and inserted into the output file by [`ContentProcessor::Head`]({relocatable:
135
- contentprocessor/head.html}).
158
+ and inserted into the output file by [`ContentProcessor::Head`](contentprocessor/head.html).
136
159
 
137
- ### modified\_at
160
+ ### modified_at
138
161
 
139
- {:miref}
140
162
  * Time: `2008-08-14 10:25:34 +02:00`
141
163
  * Any
164
+ {:miref}
142
165
 
143
166
  Sets the time when the path was last modified. This information is automatically set for paths
144
167
  provided by Webgen::Source::FileSystem (the file modification is used) but can be overridden by
@@ -147,66 +170,66 @@ meta information.
147
170
 
148
171
  > Note that the value needs to be a valid [YAML timestamp](http://yaml.org/type/timestamp.html) and
149
172
  > needs to include the time part.
150
- {.information}
173
+ {:.information}
151
174
 
152
- ### no\_output
175
+ ### no_output
153
176
 
154
- {:miref}
155
177
  * Boolean: `true`
156
178
  * Any
179
+ {:miref}
157
180
 
158
181
  Specifies whether an output path for the node should be written or not. This differs from `draft`
159
182
  that a node for the path gets created nonetheless.
160
183
 
161
- ### omit\_index\_path
184
+ ### omit_index_path
162
185
 
163
- {:miref}
164
186
  * Boolean: `false`
165
187
  * Index paths
188
+ {:miref}
166
189
 
167
190
  Controls whether the index path should appear in a breadcrumb trail despite the setting of the
168
191
  `tag.breadcrumbtrail.omit_index_path` option.
169
192
 
170
- ### output\_path\_style
193
+ ### output_path_style
171
194
 
172
- {:miref}
173
195
  * Array: `[:parent, :basename, [., :lang], .html]`
174
196
  * Any
197
+ {:miref}
175
198
 
176
199
  Sets a custom output path style for the specified path. The basename is substituted for the value
177
- `:basename` and the language for the value `:lang`. Strings are used verbatim. If `:lang` is specified
178
- in a sub-array, the whole sub-array is omitted, if the configuration option
200
+ `:basename` and the language for the value `:lang`. Strings are used verbatim. If `:lang` is
201
+ specified in a sub-array, the whole sub-array is omitted, if the configuration option
179
202
  `sourcehandler.default_lang_in_output_path` is false. For more and detailed information, have look
180
- at the [output path creation section]({relocatable: manual.html#source-output}) of the manual!
203
+ at the [output path creation section](manual.html#source-output) of the manual!
181
204
 
182
205
  > This meta information has to be set BEFORE a node gets created. Setting this value is therefore
183
206
  > only useful, for example, in the `paths` block of a meta information backing file.
184
- {.important}
207
+ {:.important}
185
208
 
186
209
  ### priority
187
210
 
188
- {:miref}
189
211
  * Float: `0.5`
190
212
  * Any
213
+ {:miref}
191
214
 
192
215
  Specifies the priority of this file in respect to all the other files of the website. This
193
216
  information is used, for example, by the sitemap source handler.
194
217
 
195
- ### routed\_title
218
+ ### routed_title
196
219
 
197
- {:miref}
198
220
  * String: `Image Directory`
199
221
  * Any
222
+ {:miref}
200
223
 
201
224
  Only used if set on a directory index path; specifies the title of the directory for which it is the
202
225
  index path. If this meta information is not specified, the title of the directory will be used
203
226
  instead.
204
227
 
205
- ### sort\_info
228
+ ### sort_info
206
229
 
207
- {:miref}
208
230
  * Integer or String: `15`
209
231
  * Any
232
+ {:miref}
210
233
 
211
234
  Sets the sort information for the path. Any String or Integer value can be used here. When two nodes
212
235
  are compared using this information and both have Integers, then an Integer comparision is
@@ -216,26 +239,26 @@ Setting a String value is useful, for example, for specifying dates as sort info
216
239
 
217
240
  ### template
218
241
 
219
- {:miref}
220
242
  * String or null: `my.template` or `~`
221
243
  * Page/Template files
244
+ {:miref}
222
245
 
223
246
  Sets the template for the page/template file overriding the default value. If set to null
224
247
  (i.e. `~`), no template is used for the page/template file!
225
248
 
226
249
  ### title
227
250
 
228
- {:miref}
229
251
  * String: `New Title`
230
252
  * Any
253
+ {:miref}
231
254
 
232
255
  Sets the title for the path.
233
256
 
234
- ### used\_nodes
257
+ ### used_nodes
235
258
 
236
- {:miref}
237
259
  * Array: `[*.en.html, test.de.html]`
238
260
  * Any
261
+ {:miref}
239
262
 
240
263
  The value of this meta information needs to be an array of alcn patterns. All nodes that match at
241
264
  least one of the patterns are considered to be dependencies of the node. Therefore if any of these