From: Holger Schurig Date: Thu, 25 Jun 2009 13:00:55 +0000 (+0200) Subject: doc: fix ancestry of some pages X-Git-Url: https://oss.titaniummirror.com/gitweb?a=commitdiff_plain;h=dc5e4e61670ef58263654e8d5e66472cac05d256;p=webber.git doc: fix ancestry of some pages --- diff --git a/in/functions.md b/in/functions.md index 9970a64..d45b2c8 100644 --- a/in/functions.md +++ b/in/functions.md @@ -1,5 +1,5 @@ title: Functions -parent: Home +parent: Webber ctime: 2009-06-26 = Calling functions = @@ -48,7 +48,7 @@ page, you'll get a "`(mtime, ctime, title, link)`" tuple back. Defined in [[hierarchy.py|hierarchy]], where you find an example. -== get_sidemenu == +== get_sidemenu(root) == Returns a menu for the current page. For each page in this menu you'll get back a "`(level, part_of_path, is_current, title, link)`" tuple. @@ -56,6 +56,18 @@ get back a "`(level, part_of_path, is_current, title, link)`" tuple. Defined in [[hierarchy.py|hierarchy]], where you find an example. +== get_sitemap(home, show_orphans) == + +Returns all pages as "`(level, title, link)`" tuples. + +You'll need to specify "`root`" if your top-most page is a different one. + +To put pages into the sitemap that are outside the parent/child relationships, +specify "`True`" for "`show_orphans`". + +Defined in [[hierarchy.py|hierarchy]], where you find an example. + + == func == A sample function in the [[skeleton.py|skeleton]]. See below. diff --git a/in/macros.md b/in/macros.md index dfa5da8..97f0202 100644 --- a/in/macros.md +++ b/in/macros.md @@ -1,5 +1,5 @@ title: Macros -parent: Home +parent: Webber ctime: 2009-06-26 = Calling macros = diff --git a/in/pageformat.md b/in/pageformat.md index c41526b..c244f89 100644 --- a/in/pageformat.md +++ b/in/pageformat.md @@ -1,5 +1,5 @@ title: Page format -parent: Home +parent: Webber ctime: 2009-06-26 Every page contains a header, then a blank line, and then the text that diff --git a/in/templates.md b/in/templates.md index 41bd4de..dd7ba74 100644 --- a/in/templates.md +++ b/in/templates.md @@ -1,5 +1,5 @@ title: Templates -parent: Home +parent: Webber ctime: 2009-06-26 TODO