From 4f83d48b28b417a16d7caa834a9248b1bd50cdb8 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 24 Apr 2021 00:19:32 -0700 Subject: Auto generate interactive table of contents for user-guide. (#1818) --- docs/_layouts/user-guide.html | 202 +++++++++++++++++++++++++++++++++++------- 1 file changed, 169 insertions(+), 33 deletions(-) (limited to 'docs/_layouts/user-guide.html') diff --git a/docs/_layouts/user-guide.html b/docs/_layouts/user-guide.html index 765ddc40a..ad4ad2cd9 100644 --- a/docs/_layouts/user-guide.html +++ b/docs/_layouts/user-guide.html @@ -11,57 +11,193 @@ {% seo %} -
-
-
-
- {% include user-guide-toc.html %} -
-
-
- {{ content }} -
+
+
+ {% include_relative user-guide-toc.html %} +
+
+
+
+
+ {% include anchor_headings.html html=content anchorBody="" %} +
-
- {% if site.github.is_project_page %} - {{ site.title | default: site.github.repository_name }} is maintained by {{ site.github.owner_name }}
- {% endif %} - This page was generated by GitHub Pages. -
-
+
+ {% if site.github.is_project_page %} + {{ site.title | default: site.github.repository_name }} is maintained by {{ site.github.owner_name }}
+ {% endif %} + This page was generated by GitHub Pages. +
-
+ + + {% if site.google_analytics %}