Sha256: bcc80ac7309e903cd7529509c483bfdf4ec79430e6623b7ec7cad63c9011078e

Contents?: true

Size: 1.96 KB

Versions: 2

Compression:

Stored size: 1.96 KB

Contents

def:[stats_for|
  section[
    @title[Displaying stats about {{title}}]
    txt[To display statistics about {{object}}, execute code[glyph stats {{command}}]. Glyph displays something like this:]
    highlight[=html|
{{example}}
    =]
    section[
      @title[Remarks]
      txt[
{{remarks}}
      ]
    ]
  ]
]
p[Glyph includes a #>[stats] that can be used to display useful statistics about your Glyph project. If you try running Glyph's command help, you'll see that this command can take quite a few options:
]
highlight[html|
$ glyph help stats
Glyph v0.5.0

stats \[options\] 
    Display statistics

Options:
    -b, --bookmarks - Display stats about bookmarks
    --bookmark=arg  - Display stats about a single bookmark
    -f, --files     - Display stats about project files
    -l, --links     - Display stats about links
    --link=arg      - Display stats about links matching a regular expression
    -m, --macros    - Display stats about macros
    --macro=arg     - Display stats about a single macro
    -s, --snippets  - Display stats about snippets
    --snippet=arg   - Display stats about a single snippet
]
txt[
If no options are specified, the command returns a summary containing different element totals, i.e.:
* The files used in the project
* Macro definitions and instances
* Snippets
* Bookmarks
* Links and references

Example:
]
highlight[=html|
=====================================
Glyph - Statistics
=====================================

===== Files
-- Total Files: 50
-- /text    -- 46
-- /images  -- 3
-- /styles  -- 0
-- /layouts -- 0
-- /lib     -- 1

===== Macros
-- Total Macro Instances: 2950
-- Total Macro Definitions: 22
-- Total Macro Aliases: 57
-- Total Used Macro Definitions: 60

===== Snippets
-- Total Snippets: 21
-- Total Used Snippets: 21
-- Total Unused Snippets: 0

===== Bookmarks
-- Total Bookmarks: 221
-- Total Referenced Bookmarks: 87
-- Total Unreferenced Bookmarks: 135

===== Links
-- Total Internal Links: 87
-- Total External Links: 97
=]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glyph-0.5.1 book/text/stats/stats.glyph
glyph-0.5.0 book/text/stats/stats.glyph