glyph 0.4.2 → 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.
Files changed (132) hide show
  1. data/Rakefile +19 -40
  2. data/benchmark.rb +1 -2
  3. data/book/config.yml +8 -8
  4. data/book/document.glyph +18 -19
  5. data/book/images/glyph/commands_tasks.png +0 -0
  6. data/book/lib/layouts/bookindex.glyph +113 -111
  7. data/book/lib/layouts/bookpage.glyph +112 -108
  8. data/book/lib/macros/reference.rb +2 -2
  9. data/book/lib/tasks/tasks.rake +1 -1
  10. data/book/text/acknowledgements.glyph +1 -0
  11. data/book/text/changelog.glyph +140 -112
  12. data/book/text/compiling/compiling.glyph +36 -24
  13. data/book/text/compiling/lite_mode.glyph +11 -11
  14. data/book/text/compiling/programmatic_usage.glyph +57 -57
  15. data/book/text/config/document.glyph +7 -1
  16. data/book/text/config/options.glyph +5 -3
  17. data/book/text/config/output.glyph +41 -8
  18. data/book/text/extending/bookmarks_headers.glyph +13 -11
  19. data/book/text/extending/command.glyph +1 -1
  20. data/book/text/extending/commands_tasks.glyph +2 -2
  21. data/book/text/extending/internals.glyph +29 -29
  22. data/book/text/extending/interpreting.glyph +48 -9
  23. data/book/text/extending/macro_def.glyph +80 -32
  24. data/book/text/extending/output_format.glyph +2 -2
  25. data/book/text/extending/placeholders.glyph +27 -15
  26. data/book/text/extending/validators.glyph +1 -1
  27. data/book/text/getting_started/configuration.glyph +1 -1
  28. data/book/text/getting_started/create_project.glyph +4 -5
  29. data/book/text/getting_started/structure.glyph +2 -2
  30. data/book/text/macros/macros_core.glyph +341 -199
  31. data/book/text/macros/macros_filters.glyph +1 -1
  32. data/book/text/macros/macros_inline.glyph +3 -3
  33. data/book/text/macros/macros_structure.glyph +1 -1
  34. data/book/text/ref_commands.glyph +98 -93
  35. data/book/text/snippets.glyph +18 -0
  36. data/book/text/stats/bookmarks.glyph +16 -16
  37. data/book/text/stats/links.glyph +23 -23
  38. data/book/text/stats/macros.glyph +14 -14
  39. data/book/text/stats/snippets.glyph +26 -26
  40. data/book/text/stats/stats.glyph +14 -15
  41. data/book/text/text_editing/attribute_intro.glyph +8 -8
  42. data/book/text/text_editing/code.glyph +16 -16
  43. data/book/text/text_editing/conditionals.glyph +12 -13
  44. data/book/text/text_editing/esc_quot.glyph +3 -3
  45. data/book/text/text_editing/evaluation.glyph +57 -3
  46. data/book/text/text_editing/inclusions.glyph +34 -25
  47. data/book/text/text_editing/macro_composition.glyph +28 -0
  48. data/book/text/text_editing/macro_intro.glyph +4 -4
  49. data/book/text/text_editing/section_aliases.glyph +23 -23
  50. data/book/text/text_editing/sections.glyph +22 -22
  51. data/book/text/text_editing/stylesheets.glyph +33 -33
  52. data/book/text/text_editing/topics.glyph +6 -6
  53. data/book/text/text_editing/xml_fallback.glyph +1 -1
  54. data/book/text/troubleshooting/errors_command.glyph +4 -4
  55. data/book/text/troubleshooting/errors_generic.glyph +16 -10
  56. data/book/text/troubleshooting/errors_macro.glyph +18 -21
  57. data/book/text/troubleshooting/errors_parser.glyph +7 -7
  58. data/config.yml +51 -29
  59. data/document.glyph +18 -18
  60. data/glyph.gemspec +39 -287
  61. data/layouts/web5/topic.glyph +1 -1
  62. data/lib/glyph.rb +42 -10
  63. data/lib/glyph/analyzer.rb +5 -2
  64. data/lib/glyph/bookmark.rb +3 -1
  65. data/lib/glyph/commands.rb +11 -9
  66. data/lib/glyph/commands/add.rb +3 -1
  67. data/lib/glyph/commands/compile.rb +10 -7
  68. data/lib/glyph/commands/config.rb +7 -5
  69. data/lib/glyph/commands/init.rb +2 -0
  70. data/lib/glyph/commands/outline.rb +2 -0
  71. data/lib/glyph/commands/stats.rb +3 -0
  72. data/lib/glyph/commands/todo.rb +2 -0
  73. data/lib/glyph/config.rb +2 -0
  74. data/lib/glyph/document.rb +34 -9
  75. data/lib/glyph/interpreter.rb +2 -0
  76. data/lib/glyph/macro.rb +97 -25
  77. data/lib/glyph/macro_validators.rb +9 -6
  78. data/lib/glyph/node.rb +3 -1
  79. data/lib/glyph/parser.rb +68 -33
  80. data/lib/glyph/reporter.rb +3 -1
  81. data/lib/glyph/syntax_node.rb +23 -28
  82. data/lib/glyph/system_extensions.rb +21 -0
  83. data/lib/glyph/utils.rb +24 -4
  84. data/macros/block.rb +111 -0
  85. data/macros/core.rb +163 -33
  86. data/macros/filters.rb +3 -2
  87. data/macros/inline.rb +97 -0
  88. data/macros/reps/html.rb +180 -0
  89. data/macros/reps/html5.rb +100 -0
  90. data/macros/reps/web.rb +4 -0
  91. data/macros/reps/web5.rb +4 -0
  92. data/macros/structure.rb +229 -0
  93. data/macros/xml.rb +29 -24
  94. data/spec/config.yml +7 -0
  95. data/spec/files/article.glyph +2 -2
  96. data/spec/files/web_doc.glyph +9 -5
  97. data/spec/lib/commands_spec.rb +13 -9
  98. data/spec/lib/config_spec.rb +2 -2
  99. data/spec/lib/document_spec.rb +10 -0
  100. data/spec/lib/glyph_spec.rb +30 -8
  101. data/spec/lib/macro_spec.rb +39 -4
  102. data/spec/lib/macro_validators_spec.rb +3 -4
  103. data/spec/lib/parser_spec.rb +7 -0
  104. data/spec/lib/reporter_spec.rb +1 -0
  105. data/spec/lib/syntax_node_spec.rb +40 -6
  106. data/spec/macros/core_spec.rb +154 -21
  107. data/spec/macros/filters_spec.rb +1 -1
  108. data/spec/macros/html5_spec.rb +4 -5
  109. data/spec/macros/macros_spec.rb +6 -7
  110. data/spec/macros/web5_spec.rb +3 -3
  111. data/spec/macros/web_spec.rb +10 -7
  112. data/spec/macros/xml_spec.rb +11 -2
  113. data/spec/spec_helper.rb +11 -5
  114. data/spec/tasks/generate_spec.rb +40 -5
  115. data/spec/tasks/load_spec.rb +1 -13
  116. data/styles/coderay.css +147 -38
  117. data/styles/default.css +19 -22
  118. data/styles/pagination.css +30 -30
  119. data/tasks/generate.rake +54 -18
  120. data/tasks/load.rake +9 -24
  121. data/tasks/project.rake +0 -2
  122. metadata +208 -207
  123. data/.gitignore +0 -7
  124. data/VERSION +0 -1
  125. data/book/snippets.yml +0 -18
  126. data/lib/glyph/macro_helpers.rb +0 -282
  127. data/macros/html/block.rb +0 -124
  128. data/macros/html/inline.rb +0 -42
  129. data/macros/html/structure.rb +0 -191
  130. data/macros/html5/block.rb +0 -69
  131. data/macros/html5/inline.rb +0 -24
  132. data/macros/html5/structure.rb +0 -140
@@ -1,4 +1,4 @@
1
- rw:[filtered_section|
1
+ def:[filtered_section|
2
2
  ref_macro[
3
3
  @n[{{markup}}_section]
4
4
  @desc[Creates a section (see %>[section]) whose content can be formatted with {{markup}} markup.]
@@ -29,9 +29,9 @@
29
29
 
30
30
  ref_macro[
31
31
  @n[link]
32
- @desc[Creates an hyperlink (\.fmi[creating links|#links]).]
33
- @aliases[\.=>]
34
- @example[=\.=>[http://www.h3rald.com\|H3RALD.com]=]
32
+ @desc[Creates an hyperlink (\/fmi[creating links|#links]).]
33
+ @aliases[\/=>]
34
+ @example[=\/=>[http://www.h3rald.com\|H3RALD.com]=]
35
35
  @params[
36
36
  -p[0|A valid bookmark within the document or an URL.]
37
37
  -p[1|The text of the link &[opt].]
@@ -83,7 +83,7 @@ section[
83
83
 
84
84
  ref_macro[
85
85
  @n[style]
86
- @desc[Embeds the content of a CSS or Sass file within a @<style>@ tag (\.fmi[stylesheets|#stylesheets]).]
86
+ @desc[Embeds the content of a CSS or Sass file within a @<style>@ tag (\/fmi[stylesheets|#stylesheets]).]
87
87
  @example[=style[default.css]=]
88
88
  @params[-p[0|The stylesheet file to embed.]]
89
89
  ]
@@ -4,136 +4,141 @@ Glyph's command-line interface has been built using the =>[http://github.com/dav
4
4
  strong[glyph] em[global_options] strong[command] em[options] em[parameters]
5
5
 
6
6
  Where:
7
- * em[global_options] and _options_ are in the form: @-n@ _value_ or @--name=@\._value_, e.g. @-f pdf@ or @--format=pdf@
7
+ * em[global_options] and _options_ are in the form: @-n@ _value_ or @--name=@\/_value_, e.g. @-f pdf@ or @--format=pdf@
8
8
  * _parameters_ are separated by whitespaces, and can be wrapped in quotes.
9
9
  ]
10
10
  section[
11
- @title[Global Options]
12
- section[
13
- @title[code[-d], code[--debug]]
14
- @id[debug_switch]
15
- p[If specified, the command is executed in debug mode and additional diagnostic information is printed on the screen.]
16
- ]
11
+ @title[Global Options]
12
+ section[
13
+ @title[code[-d], code[--debug]]
14
+ @id[debug_switch]
15
+ p[If specified, the command is executed in debug mode and additional diagnostic information is printed on the screen.]
16
+ ]
17
+ section[
18
+ @title[code[-v], code[--version]]
19
+ @id[version_switch]
20
+ p[Prints the current version of Glyph, ignoring any other command or switches.]
21
+ ]
17
22
  ]
18
23
  section[
19
- @title[add]
20
- @id[c_add]
21
- p[Creates a new text file in the code[text/] folder.]
22
- example[glyph add introduction.textile]
23
- parameters[
24
- -p[em[file_name]|The name (or relative path) of the new file to be created.]
25
- ]
24
+ @title[add]
25
+ @id[c_add]
26
+ p[Creates a new text file in the code[text/] folder.]
27
+ example[glyph add introduction.textile]
28
+ parameters[
29
+ -p[em[file_name]|The name (or relative path) of the new file to be created.]
30
+ ]
26
31
  ]
27
32
  section[
28
- @title[compile]
29
- @id[c_compile]
30
- p[Compiles a Glyph document into an output file. If no options are specified, the code[document.glyph] file is used as source to produce a standalone HTML file.]
31
- example[glyph compile -f pdf]
32
- parameters[
33
- -p[em[source]|The source glyph file to compile em[(Optional)].]
34
- -p[em[destination]|The destination file em[(Optional)].]
35
- ]
36
- options[
37
- -o[source|
33
+ @title[compile]
34
+ @id[c_compile]
35
+ p[Compiles a Glyph document into an output file. If no options are specified, the code[document.glyph] file is used as source to produce a standalone HTML file.]
36
+ example[glyph compile -f pdf]
37
+ parameters[
38
+ -p[em[source]|The source glyph file to compile em[(Optional)].]
39
+ -p[em[destination]|The destination file em[(Optional)].]
40
+ ]
41
+ options[
42
+ -o[source|
38
43
  The source file to compile.
39
- default[document.glyph]
40
- ]
41
- -o[format|
44
+ default[document.glyph]
45
+ ]
46
+ -o[format|
42
47
  The format of the output file.
43
- default[html]
44
- values[html, pdf]
45
- ]
46
- -o[auto|
48
+ default[html]
49
+ values[html, pdf]
50
+ ]
51
+ -o[auto|
47
52
  If specified, enable =>[#auto_regeneration|auto regeneration] (requires the =>[http://rubygems.org/gems/directory_watcher|directory_watcher] gem to be installed).
48
- ]
49
- ]
53
+ ]
54
+ ]
50
55
  ]
51
56
  section[
52
- @title[config]
53
- @id[c_config]
54
- Gets or sets a configuration setting in the project or global configuration file (\.fmi[configuration files|#cfg]).
55
- examples[
57
+ @title[config]
58
+ @id[c_config]
59
+ Gets or sets a configuration setting in the project or global configuration file (\/fmi[configuration files|#cfg]).
60
+ examples[
56
61
  glyph config document.filename
57
62
  glyph config -g document.author "Fabio Cevasco"
58
- ]
59
- options[
60
- -o[global|
63
+ ]
64
+ options[
65
+ -o[global|
61
66
  If specified, the global configuration file is processed instead of the project file.
62
- default[false]
63
- ]
64
- ]
65
- parameters[
66
- -p[em[setting]|The name of a valid =>[#cfg_ref|configuration setting].]
67
- -p[em[value]|The new value of the configuration setting.]
68
- ]
67
+ default[false]
68
+ ]
69
+ ]
70
+ parameters[
71
+ -p[em[setting]|The name of a valid =>[#cfg_ref|configuration setting].]
72
+ -p[em[value]|The new value of the configuration setting.]
73
+ ]
69
74
  ]
70
75
  section[
71
- @title[help]
72
- @id[c_help]
76
+ @title[help]
77
+ @id[c_help]
73
78
  Prints information about all Glyph commands or about one specific command.
74
- examples[
79
+ examples[
75
80
  glyph help
76
81
  glyph help compile
77
- ]
78
- parameters[
79
- -p[em[command]|A valid Glyph command.]
80
- ]
82
+ ]
83
+ parameters[
84
+ -p[em[command]|A valid Glyph command.]
85
+ ]
81
86
  ]
82
87
  section[
83
- @title[init]
84
- @id[c_init]
88
+ @title[init]
89
+ @id[c_init]
85
90
  Creates a new Glyph project in the current directory (if empty).
86
- example[glyph init]
91
+ example[glyph init]
87
92
  ]
88
93
  section[
89
- @title[outline]
90
- @id[c_outline]
94
+ @title[outline]
95
+ @id[c_outline]
91
96
  Display an outline of the current document.
92
- options[
93
- -o[limit|
97
+ options[
98
+ -o[limit|
94
99
  Only display headers until the specified level.
95
- ]
96
- -o[ids|
100
+ ]
101
+ -o[ids|
97
102
  Display section IDs.
98
- ]
99
- -o[files|
103
+ ]
104
+ -o[files|
100
105
  Display file names.
101
- ]
102
- -o[titles|
106
+ ]
107
+ -o[titles|
103
108
  Display section titles.
104
- ]
105
- ]
106
- examples[
109
+ ]
110
+ ]
111
+ examples[
107
112
  glyph outline -it -l 1
108
113
  glyph outline -l 2
109
114
  glyph outline -f
110
- ]
115
+ ]
111
116
  ]
112
117
  section[
113
- @title[stats]
114
- @id[c_stats]
115
- rw:[stats_option|-o[{{0}}|If specified, general statistics about {{0}} are displayed (see =>[#stats_{{0}}]).]]
116
- rw:[stats_long_option|long_option[{{0}}|Display detailed statistics about the specified {{0}}.]]
117
- p[Displays project statistics (\.fmi[this command|#stats]).]
118
- examples[
119
- glyph stats -m
118
+ @title[stats]
119
+ @id[c_stats]
120
+ def:[stats_option|-o[{{0}}|If specified, general statistics about {{0}} are displayed (see =>[#stats_{{0}}]).]]
121
+ def:[stats_long_option|long_option[{{0}}|Display detailed statistics about the specified {{0}}.]]
122
+ p[Displays project statistics (\/fmi[this command|#stats]).]
123
+ examples[
124
+ glyph stats -m
120
125
  glyph stats --link=h3rald.com
121
- ]
122
- options[
123
- stats_option[bookmarks]
124
- stats_long_option[bookmark]
125
- -o[files|If specified, general statistics about project files are displayed.]
126
- stats_option[links]
127
- long_option[link|Display detailed statistics about all links whose target matches the specified regular expression.]
128
- stats_option[macros]
129
- stats_long_option[macro]
130
- stats_option[snippets]
131
- stats_long_option[snippet]
132
- ]
126
+ ]
127
+ options[
128
+ stats_option[bookmarks]
129
+ stats_long_option[bookmark]
130
+ -o[files|If specified, general statistics about project files are displayed.]
131
+ stats_option[links]
132
+ long_option[link|Display detailed statistics about all links whose target matches the specified regular expression.]
133
+ stats_option[macros]
134
+ stats_long_option[macro]
135
+ stats_option[snippets]
136
+ stats_long_option[snippet]
137
+ ]
133
138
  ]
134
139
  section[
135
- @title[todo]
136
- @id[c_todo]
140
+ @title[todo]
141
+ @id[c_todo]
137
142
  Prints all the todo items saved using the %>[todo].
138
- example[glyph todo]
143
+ example[glyph todo]
139
144
  ]
@@ -0,0 +1,18 @@
1
+ &:[glang|Glyph Language]
2
+ &:[macros|Glyph Macros]
3
+ &:[sq_esc|Square brackets must be escaped unless used as macro delimiters or within a quoting macro.]
4
+ &:[gcode|The following Glyph code:]
5
+ &:[htmlcode|Is translated into the following HTML code:]
6
+ &:[markups|Textile or Markdown]
7
+ &:[filter_by_ext|the $>[options.filters_by_file_extension] is @true@]
8
+ &:[called_on_files|If &[filter_by_ext], this macro is called automatically on =>[#m_include|included] files]
9
+ &:[only_after_declaration|can only be used _after_ its declaration]
10
+ &:[coderay|=>[http://coderay.rubychan.de/|Coderay]]
11
+ &:[uv|=>[http://ultraviolet.rubyforge.org/|Ultraviolet]]
12
+ &:[rubydoc|http://rubydoc.info/gems/glyph]
13
+ &:[unsafe|This macro cannot be used in =>[#modes|safe mode].]
14
+ &:[bin_params|-p[0|The first expression to test]-p[1|The second expression to test]]
15
+ &:[img_file|The name of the image file (relative to the code[images/] folder).]
16
+ &:[img_attrs|Any attribute supported by the =>[http://www.w3schools.com/tags/tag_IMG.asp|img tag].]
17
+ &:[opt|em[(optional)]]
18
+ &:[calibre|=>[http://calibre-ebook.com/|Calibre]]
@@ -1,16 +1,16 @@
1
1
  stats_for[
2
- @title[all bookmarks]
3
- @object[all bookmarks]
4
- @command[--bookmarks]
5
- @example[
2
+ @title[all bookmarks]
3
+ @object[all bookmarks]
4
+ @command[--bookmarks]
5
+ @example[
6
6
  ===== Bookmarks
7
7
  -- Total Bookmarks: 241
8
8
  -- Total Referenced Bookmarks: 89
9
9
  -- Total Unreferenced Bookmarks: 155
10
10
  -- Bookmarks:
11
- attribute_intro auto_regeneration c_add c_compile c_config
12
- c_help c_init c_outline c_todo cfg
13
- cfg_document cfg_filters cfg_ref cmd_ref compile
11
+ attribute_intro auto_regeneration c_add c_compile c_config
12
+ c_help c_init c_outline c_todo cfg
13
+ cfg_document cfg_filters cfg_ref cmd_ref compile
14
14
  \[...\]
15
15
  -- Referenced Bookmarks:
16
16
  - attribute_intro (1)
@@ -27,23 +27,23 @@ stats_for[
27
27
  h_111 h_112 h_114 h_115 h_117
28
28
  \[...\]
29
29
  ]
30
- @remarks[
30
+ @remarks[
31
31
  * All the automatically-generated bookmarks (like headers, starting with @h_@) are included as well.
32
- ]
32
+ ]
33
33
  ]
34
34
  stats_for[
35
- @title[a single bookmark]
36
- @object[a single bookmark (e.g. code[yardoc])]
37
- @command[--bookmark=c_config]
38
- @example[
35
+ @title[a single bookmark]
36
+ @object[a single bookmark (e.g. code[rubydoc])]
37
+ @command[--bookmark=c_config]
38
+ @example[
39
39
  ===== Bookmark 'c_config' (header)
40
40
  -- Defined in: text/ref_commands.glyph
41
41
  -- Referenced in:
42
42
  - text/changelog.glyph (2)
43
43
  - text/getting_started/configuration.glyph (1)
44
44
  - text/troubleshooting/errors_command.glyph (3)
45
- ]
46
- @remarks[
45
+ ]
46
+ @remarks[
47
47
  * Do not prepend the bookmark ID with @#@.
48
- ]
48
+ ]
49
49
  ]
@@ -1,8 +1,8 @@
1
1
  stats_for[
2
- @title[all links]
3
- @object[all links]
4
- @command[--links]
5
- @example[
2
+ @title[all links]
3
+ @object[all links]
4
+ @command[--links]
5
+ @example[
6
6
  ===== Links
7
7
  -- Total Internal Links: 89
8
8
  -- Internal Links
@@ -21,30 +21,30 @@ stats_for[
21
21
  \[...\]
22
22
  -- Total External Links: 95
23
23
  -- External Links
24
- - &\[yardoc\]/Glyph
25
- - &\[yardoc\]/Glyph/Document
26
- - &\[yardoc\]/Glyph/Interpreter
27
- - &\[yardoc\]/Glyph/Macro
28
- - &\[yardoc\]/Glyph/Macro/Validators
29
- - &\[yardoc\]/Glyph/Macro:update_source
30
- - &\[yardoc\]/Glyph/MacroNode
31
- - &\[yardoc\]/Glyph/Parser
32
- - &\[yardoc\]/Glyph/SyntaxNode
33
- - &\[yardoc\]/Macro
24
+ - &\[rubydoc\]/Glyph
25
+ - &\[rubydoc\]/Glyph/Document
26
+ - &\[rubydoc\]/Glyph/Interpreter
27
+ - &\[rubydoc\]/Glyph/Macro
28
+ - &\[rubydoc\]/Glyph/Macro/Validators
29
+ - &\[rubydoc\]/Glyph/Macro:update_source
30
+ - &\[rubydoc\]/Glyph/MacroNode
31
+ - &\[rubydoc\]/Glyph/Parser
32
+ - &\[rubydoc\]/Glyph/SyntaxNode
33
+ - &\[rubydoc\]/Macro
34
34
  - http://code.google.com/p/wkhtmltopdf/
35
35
  - http://coderay.rubychan.de/
36
36
  - http://coderay.rubychan.de/doc/classes/CodeRay/Encoders/HTML.html
37
37
  \[...\]
38
38
  ]
39
- @remarks[
39
+ @remarks[
40
40
  * The only criteria used to determine if a link is internal is whether it starts with a @#@ or not.
41
- ]
41
+ ]
42
42
  ]
43
43
  stats_for[
44
- @title[links matching a regular expression]
45
- @object[links matching a regular expression (e.g. code[/c_/])]
46
- @command[--link=c_]
47
- @example[
44
+ @title[links matching a regular expression]
45
+ @object[links matching a regular expression (e.g. code[/c_/])]
46
+ @command[--link=c_]
47
+ @example[
48
48
  ===== Links matching /c_/
49
49
  -- Total Links: 8
50
50
  -- Link Targets:
@@ -83,8 +83,8 @@ stats_for[
83
83
  - #esc_quot (2)
84
84
  - text/extending/macro_def.glyph (1)
85
85
  - text/text_editing/macro_intro.glyph (1)
86
- ]
87
- @remarks[
86
+ ]
87
+ @remarks[
88
88
  * No distinction between external and internal targets is made.
89
- ]
89
+ ]
90
90
  ]
@@ -1,8 +1,8 @@
1
1
  stats_for[
2
- @title[all macros]
3
- @object[all macros]
4
- @command[--macros]
5
- @example[
2
+ @title[all macros]
3
+ @object[all macros]
4
+ @command[--macros]
5
+ @example[
6
6
  ===== Macros
7
7
  -- Total Macro Instances: 2497
8
8
  -- Total Macro Definitions: 65
@@ -37,17 +37,17 @@ stats_for[
37
37
  textile title toc todo values
38
38
  \|xml\|
39
39
  ]
40
- @remarks[
40
+ @remarks[
41
41
  * Only macro _definitions_ (not their _aliases_) are displayed, both default and user-defined.
42
42
  * The @\|xml\|@ macro is a special macro used if the $>[options.xml_fallback] is enabled.
43
43
  * There's no distinction between macros defined by the user and macros defined by Glyph itself.
44
- ]
44
+ ]
45
45
  ]
46
46
  stats_for[
47
- @title[a single macro]
48
- @object[a single macro (e.g. code[note])]
49
- @command[--macro=note]
50
- @example[
47
+ @title[a single macro]
48
+ @object[a single macro (e.g. code[note])]
49
+ @command[--macro=note]
50
+ @example[
51
51
  ===== Macro 'note'
52
52
  -- Total Instances: 18
53
53
  -- Occurrences:
@@ -64,10 +64,10 @@ stats_for[
64
64
  - text/text_editing/raw_html.glyph (1)
65
65
  - text/text_editing/section_aliases.glyph (1)
66
66
  - text/text_editing/xml_fallback.glyph (2)
67
- ]
68
- @remarks[
67
+ ]
68
+ @remarks[
69
69
  * All the instances of the specified macro definition _and all its aliases_ are collected, regardless whether a definition or an alias is specified.
70
- * If you use custom macros, make sure they call the =>[&[yardoc]/Glyph/Macro:update_source|Macro#update_source] appropriately method if necessary.
70
+ * If you use custom macros, make sure they call the =>[&[rubydoc]/Glyph/Macro:update_source|Macro#update_source] appropriately method if necessary.
71
71
  * If macros are used within =>[#rewriting|rewritten] macros, they'll be also listed in each file where the rewritten macro is used.
72
- ]
72
+ ]
73
73
  ]