Glyph - Link Statistics

Displaying stats about all links

To display statistics about all links, execute glyph stats --links. Glyph displays something like this:

 1===== Links
 2-- Total Internal Links: 89
 3-- Internal Links
 4   - #attribute_intro 
 5   - #auto_regeneration 
 6   - #c_add 
 7   - #c_compile 
 8   - #c_config 
 9   - #c_init 
10   - #c_outline 
11   - #c_stats 
12   - #c_todo 
13   - #cfg 
14   - #cfg_document 
15   - #cfg_filters 
16[...]
17-- Total External Links: 95
18-- External Links
19   - &[rubydoc]/Glyph 
20   - &[rubydoc]/Glyph/Document 
21   - &[rubydoc]/Glyph/Interpreter 
22   - &[rubydoc]/Glyph/Macro 
23   - &[rubydoc]/Glyph/Macro/Validators 
24   - &[rubydoc]/Glyph/Macro:update_source 
25   - &[rubydoc]/Glyph/MacroNode 
26   - &[rubydoc]/Glyph/Parser 
27   - &[rubydoc]/Glyph/SyntaxNode 
28   - &[rubydoc]/Macro 
29   - http://code.google.com/p/wkhtmltopdf/ 
30   - http://coderay.rubychan.de/ 
31   - http://coderay.rubychan.de/doc/classes/CodeRay/Encoders/HTML.html 
32[...]

Remarks

  • The only criteria used to determine if a link is internal is whether it starts with a # or not.

Displaying stats about links matching a regular expression

To display statistics about links matching a regular expression (e.g. /c_/), execute glyph stats --link=c_. Glyph displays something like this:

 1===== Links matching /c_/
 2-- Total Links: 8
 3-- Link Targets:
 4   - #c_add 
 5   - #c_compile 
 6   - #c_config 
 7   - #c_init 
 8   - #c_outline 
 9   - #c_stats 
10   - #c_todo 
11   - #esc_quot 
12-- Details:
13   - #c_add (2)
14     - text/troubleshooting/errors_command.glyph (1)
15     - text/troubleshooting/errors_generic.glyph (1)
16   - #c_compile (10)
17     - text/changelog.glyph (1)
18     - text/compiling/compiling.glyph (2)
19     - text/compiling/lite_mode.glyph (1)
20     - text/compiling/programmatic_usage.glyph (2)
21     - text/getting_started/create_project.glyph (1)
22     - text/ref_config.glyph (1)
23     - text/troubleshooting/errors_command.glyph (2)
24   - #c_config (6)
25     - text/changelog.glyph (2)
26     - text/getting_started/configuration.glyph (1)
27     - text/troubleshooting/errors_command.glyph (3)
28   - #c_init (1)
29     - text/troubleshooting/errors_generic.glyph (1)
30   - #c_outline (1)
31     - text/changelog.glyph (1)
32   - #c_stats (1)
33     - text/stats/stats.glyph (1)
34   - #c_todo (1)
35     - text/macros/macros_inline.glyph (1)
36   - #esc_quot (2)
37     - text/extending/macro_def.glyph (1)
38     - text/text_editing/macro_intro.glyph (1)

Remarks

  • No distinction between external and internal targets is made.