diff options
| author | Scott Bahling <sbahling@mudgum.net> | 2013-03-19 18:25:18 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@mudgum.net> | 2013-03-19 18:25:18 +0100 |
| commit | ae99cfbd9a0372b577a23636f0677f266a559c5f (patch) | |
| tree | 0ea33cec22901661a433402941286cafe7895641 /panfry/cli.py | |
| parent | 59e2443d531ace2005de5a9e830e063d79808427 (diff) | |
| download | panfry-ae99cfbd9a0372b577a23636f0677f266a559c5f.tar.gz panfry-ae99cfbd9a0372b577a23636f0677f266a559c5f.tar.xz panfry-ae99cfbd9a0372b577a23636f0677f266a559c5f.zip | |
Implement full table of contents generation
By default panfry now generates a full table of contents
navigation for split page documents. This means the TOC
navitation has links to all pages and page sections.
Simple, page only level table of contents can be switched
on by passing the --simple-toc option.
Diffstat (limited to 'panfry/cli.py')
| -rwxr-xr-x | panfry/cli.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/panfry/cli.py b/panfry/cli.py index 363bbcc..9beae43 100755 --- a/panfry/cli.py +++ b/panfry/cli.py @@ -79,6 +79,12 @@ Args: css file for html pages. Includes full path relative to html directory. + simple_toc: + flags: [--simple-toc] + action: store_true + default: False + help: 'Do not generate full level table of contents' + Parser: help: @@ -94,6 +100,7 @@ Subparsers: - src_path - pub_path - templates_path + - simple_toc - css """ |
