From ae99cfbd9a0372b577a23636f0677f266a559c5f Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Tue, 19 Mar 2013 18:25:18 +0100 Subject: 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. --- panfry/cli.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'panfry/cli.py') 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 """ -- cgit v1.2.3