glyph 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +19 -40
- data/benchmark.rb +1 -2
- data/book/config.yml +8 -8
- data/book/document.glyph +18 -19
- data/book/images/glyph/commands_tasks.png +0 -0
- data/book/lib/layouts/bookindex.glyph +113 -111
- data/book/lib/layouts/bookpage.glyph +112 -108
- data/book/lib/macros/reference.rb +2 -2
- data/book/lib/tasks/tasks.rake +1 -1
- data/book/text/acknowledgements.glyph +1 -0
- data/book/text/changelog.glyph +140 -112
- data/book/text/compiling/compiling.glyph +36 -24
- data/book/text/compiling/lite_mode.glyph +11 -11
- data/book/text/compiling/programmatic_usage.glyph +57 -57
- data/book/text/config/document.glyph +7 -1
- data/book/text/config/options.glyph +5 -3
- data/book/text/config/output.glyph +41 -8
- data/book/text/extending/bookmarks_headers.glyph +13 -11
- data/book/text/extending/command.glyph +1 -1
- data/book/text/extending/commands_tasks.glyph +2 -2
- data/book/text/extending/internals.glyph +29 -29
- data/book/text/extending/interpreting.glyph +48 -9
- data/book/text/extending/macro_def.glyph +80 -32
- data/book/text/extending/output_format.glyph +2 -2
- data/book/text/extending/placeholders.glyph +27 -15
- data/book/text/extending/validators.glyph +1 -1
- data/book/text/getting_started/configuration.glyph +1 -1
- data/book/text/getting_started/create_project.glyph +4 -5
- data/book/text/getting_started/structure.glyph +2 -2
- data/book/text/macros/macros_core.glyph +341 -199
- data/book/text/macros/macros_filters.glyph +1 -1
- data/book/text/macros/macros_inline.glyph +3 -3
- data/book/text/macros/macros_structure.glyph +1 -1
- data/book/text/ref_commands.glyph +98 -93
- data/book/text/snippets.glyph +18 -0
- data/book/text/stats/bookmarks.glyph +16 -16
- data/book/text/stats/links.glyph +23 -23
- data/book/text/stats/macros.glyph +14 -14
- data/book/text/stats/snippets.glyph +26 -26
- data/book/text/stats/stats.glyph +14 -15
- data/book/text/text_editing/attribute_intro.glyph +8 -8
- data/book/text/text_editing/code.glyph +16 -16
- data/book/text/text_editing/conditionals.glyph +12 -13
- data/book/text/text_editing/esc_quot.glyph +3 -3
- data/book/text/text_editing/evaluation.glyph +57 -3
- data/book/text/text_editing/inclusions.glyph +34 -25
- data/book/text/text_editing/macro_composition.glyph +28 -0
- data/book/text/text_editing/macro_intro.glyph +4 -4
- data/book/text/text_editing/section_aliases.glyph +23 -23
- data/book/text/text_editing/sections.glyph +22 -22
- data/book/text/text_editing/stylesheets.glyph +33 -33
- data/book/text/text_editing/topics.glyph +6 -6
- data/book/text/text_editing/xml_fallback.glyph +1 -1
- data/book/text/troubleshooting/errors_command.glyph +4 -4
- data/book/text/troubleshooting/errors_generic.glyph +16 -10
- data/book/text/troubleshooting/errors_macro.glyph +18 -21
- data/book/text/troubleshooting/errors_parser.glyph +7 -7
- data/config.yml +51 -29
- data/document.glyph +18 -18
- data/glyph.gemspec +39 -287
- data/layouts/web5/topic.glyph +1 -1
- data/lib/glyph.rb +42 -10
- data/lib/glyph/analyzer.rb +5 -2
- data/lib/glyph/bookmark.rb +3 -1
- data/lib/glyph/commands.rb +11 -9
- data/lib/glyph/commands/add.rb +3 -1
- data/lib/glyph/commands/compile.rb +10 -7
- data/lib/glyph/commands/config.rb +7 -5
- data/lib/glyph/commands/init.rb +2 -0
- data/lib/glyph/commands/outline.rb +2 -0
- data/lib/glyph/commands/stats.rb +3 -0
- data/lib/glyph/commands/todo.rb +2 -0
- data/lib/glyph/config.rb +2 -0
- data/lib/glyph/document.rb +34 -9
- data/lib/glyph/interpreter.rb +2 -0
- data/lib/glyph/macro.rb +97 -25
- data/lib/glyph/macro_validators.rb +9 -6
- data/lib/glyph/node.rb +3 -1
- data/lib/glyph/parser.rb +68 -33
- data/lib/glyph/reporter.rb +3 -1
- data/lib/glyph/syntax_node.rb +23 -28
- data/lib/glyph/system_extensions.rb +21 -0
- data/lib/glyph/utils.rb +24 -4
- data/macros/block.rb +111 -0
- data/macros/core.rb +163 -33
- data/macros/filters.rb +3 -2
- data/macros/inline.rb +97 -0
- data/macros/reps/html.rb +180 -0
- data/macros/reps/html5.rb +100 -0
- data/macros/reps/web.rb +4 -0
- data/macros/reps/web5.rb +4 -0
- data/macros/structure.rb +229 -0
- data/macros/xml.rb +29 -24
- data/spec/config.yml +7 -0
- data/spec/files/article.glyph +2 -2
- data/spec/files/web_doc.glyph +9 -5
- data/spec/lib/commands_spec.rb +13 -9
- data/spec/lib/config_spec.rb +2 -2
- data/spec/lib/document_spec.rb +10 -0
- data/spec/lib/glyph_spec.rb +30 -8
- data/spec/lib/macro_spec.rb +39 -4
- data/spec/lib/macro_validators_spec.rb +3 -4
- data/spec/lib/parser_spec.rb +7 -0
- data/spec/lib/reporter_spec.rb +1 -0
- data/spec/lib/syntax_node_spec.rb +40 -6
- data/spec/macros/core_spec.rb +154 -21
- data/spec/macros/filters_spec.rb +1 -1
- data/spec/macros/html5_spec.rb +4 -5
- data/spec/macros/macros_spec.rb +6 -7
- data/spec/macros/web5_spec.rb +3 -3
- data/spec/macros/web_spec.rb +10 -7
- data/spec/macros/xml_spec.rb +11 -2
- data/spec/spec_helper.rb +11 -5
- data/spec/tasks/generate_spec.rb +40 -5
- data/spec/tasks/load_spec.rb +1 -13
- data/styles/coderay.css +147 -38
- data/styles/default.css +19 -22
- data/styles/pagination.css +30 -30
- data/tasks/generate.rake +54 -18
- data/tasks/load.rake +9 -24
- data/tasks/project.rake +0 -2
- metadata +208 -207
- data/.gitignore +0 -7
- data/VERSION +0 -1
- data/book/snippets.yml +0 -18
- data/lib/glyph/macro_helpers.rb +0 -282
- data/macros/html/block.rb +0 -124
- data/macros/html/inline.rb +0 -42
- data/macros/html/structure.rb +0 -191
- data/macros/html5/block.rb +0 -69
- data/macros/html5/inline.rb +0 -24
- data/macros/html5/structure.rb +0 -140
@@ -29,9 +29,9 @@
|
|
29
29
|
|
30
30
|
ref_macro[
|
31
31
|
@n[link]
|
32
|
-
@desc[Creates an hyperlink (
|
33
|
-
@aliases[
|
34
|
-
@example[
|
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 (
|
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
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
40
|
-
|
41
|
-
|
44
|
+
default[document.glyph]
|
45
|
+
]
|
46
|
+
-o[format|
|
42
47
|
The format of the output file.
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
53
|
-
|
54
|
-
Gets or sets a configuration setting in the project or global configuration file (
|
55
|
-
|
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
|
-
|
60
|
-
|
63
|
+
]
|
64
|
+
options[
|
65
|
+
-o[global|
|
61
66
|
If specified, the global configuration file is processed instead of the project file.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
-
|
72
|
-
|
76
|
+
@title[help]
|
77
|
+
@id[c_help]
|
73
78
|
Prints information about all Glyph commands or about one specific command.
|
74
|
-
|
79
|
+
examples[
|
75
80
|
glyph help
|
76
81
|
glyph help compile
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
82
|
+
]
|
83
|
+
parameters[
|
84
|
+
-p[em[command]|A valid Glyph command.]
|
85
|
+
]
|
81
86
|
]
|
82
87
|
section[
|
83
|
-
|
84
|
-
|
88
|
+
@title[init]
|
89
|
+
@id[c_init]
|
85
90
|
Creates a new Glyph project in the current directory (if empty).
|
86
|
-
|
91
|
+
example[glyph init]
|
87
92
|
]
|
88
93
|
section[
|
89
|
-
|
90
|
-
|
94
|
+
@title[outline]
|
95
|
+
@id[c_outline]
|
91
96
|
Display an outline of the current document.
|
92
|
-
|
93
|
-
|
97
|
+
options[
|
98
|
+
-o[limit|
|
94
99
|
Only display headers until the specified level.
|
95
|
-
|
96
|
-
|
100
|
+
]
|
101
|
+
-o[ids|
|
97
102
|
Display section IDs.
|
98
|
-
|
99
|
-
|
103
|
+
]
|
104
|
+
-o[files|
|
100
105
|
Display file names.
|
101
|
-
|
102
|
-
|
106
|
+
]
|
107
|
+
-o[titles|
|
103
108
|
Display section titles.
|
104
|
-
|
105
|
-
|
106
|
-
|
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
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
glyph
|
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
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
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
|
-
|
136
|
-
|
140
|
+
@title[todo]
|
141
|
+
@id[c_todo]
|
137
142
|
Prints all the todo items saved using the %>[todo].
|
138
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
12
|
-
c_help
|
13
|
-
cfg_document
|
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
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
45
|
+
]
|
46
|
+
@remarks[
|
47
47
|
* Do not prepend the bookmark ID with @#@.
|
48
|
-
|
48
|
+
]
|
49
49
|
]
|
data/book/text/stats/links.glyph
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
stats_for[
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
- &\[
|
25
|
-
- &\[
|
26
|
-
- &\[
|
27
|
-
- &\[
|
28
|
-
- &\[
|
29
|
-
- &\[
|
30
|
-
- &\[
|
31
|
-
- &\[
|
32
|
-
- &\[
|
33
|
-
- &\[
|
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
|
-
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
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
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
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 =>[&[
|
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
|
]
|