From d9fc5a22b5a3c2910628bb746d5b2360648791fd Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 16 Feb 2020 23:39:23 +0100 Subject: [PATCH] add documentation for toc and toc-tree shortcode --- exampleSite/content/shortcodes/toc-tree.md | 9 +++++++++ exampleSite/content/shortcodes/toc.md | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 exampleSite/content/shortcodes/toc-tree.md create mode 100644 exampleSite/content/shortcodes/toc.md diff --git a/exampleSite/content/shortcodes/toc-tree.md b/exampleSite/content/shortcodes/toc-tree.md new file mode 100644 index 0000000..873dae1 --- /dev/null +++ b/exampleSite/content/shortcodes/toc-tree.md @@ -0,0 +1,9 @@ +The toc-tree shortcode will generate a Table of Content from a section filetree of your content directory. The root of the resulting ToC will be the page on which you define the shortcode. + +```tpl +{{}} +``` + +## Example + +As said, the root will be the site on which the shortcode was used, you can see a demo including nesting in the [ToC Tree](/toc-tree) section. diff --git a/exampleSite/content/shortcodes/toc.md b/exampleSite/content/shortcodes/toc.md new file mode 100644 index 0000000..8932fe0 --- /dev/null +++ b/exampleSite/content/shortcodes/toc.md @@ -0,0 +1,17 @@ +Simple wrapper to generate a page Table of Content from a shortcode. + +```tpl +{{}} +``` + +{{< toc >}} + +## Level 1 + +## Level 2 + +### Level 2.1 + +### Level 2.2 + +