[lxc-devel] [linuxcontainers.org/master] Added a Table-of-Content to getting-started-cli.md
toby63 on Github
lxc-bot at linuxcontainers.org
Tue Jun 2 20:44:36 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 497 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200602/ac7d7011/attachment.bin>
-------------- next part --------------
From bb025e5825c12f2bfcbab04a34612220d9c0fb55 Mon Sep 17 00:00:00 2001
From: Tobias Gerold <tobias at g3ro.eu>
Date: Tue, 2 Jun 2020 22:36:50 +0200
Subject: [PATCH] Added a Table-of-Content to getting-started-cli.md
Signed-off-by: Tobias Gerold <tobias at g3ro.eu>
---
content/lxd/getting-started-cli.md | 3 +++
generate | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/content/lxd/getting-started-cli.md b/content/lxd/getting-started-cli.md
index 6df020d..e3f9c2a 100644
--- a/content/lxd/getting-started-cli.md
+++ b/content/lxd/getting-started-cli.md
@@ -1,3 +1,6 @@
+#####Contents
+
+[TOC]
# Installation
## Choose your release
diff --git a/generate b/generate
index ab62ea5..a50bf74 100755
--- a/generate
+++ b/generate
@@ -158,7 +158,8 @@ def md2html(content):
# Using toc extension to generate HTML anchors for paragraphs
anchors = markdown.extensions.toc.TocExtension(
- permalink=1)
+ permalink=1,
+ toc_depth="1-4")
# adds tables
tables = markdown.extensions.tables.TableExtension(
More information about the lxc-devel
mailing list