From c404f5d4f0993e9d75a4de5a91280e9cb2419281 Mon Sep 17 00:00:00 2001 From: Jonathan Corbet Date: Thu, 19 Jan 2023 17:03:05 -0700 Subject: docs: Add more information to the HTML sidebar Add a new sidebar template that creates a more RTD-like "fisheye" view of the current place in the document hierarchy. It is far from ideal, but some readers may find it better for navigating through the documentation as a whole. Add some CSS trickery as well to make the table of contents less intrusive when viewing the pages on a small screen. Reviewed-by: Akira Yokosawa Reviewed-by: David Gow --- Documentation/sphinx/templates/kernel-toc.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Documentation/sphinx/templates/kernel-toc.html (limited to 'Documentation/sphinx') diff --git a/Documentation/sphinx/templates/kernel-toc.html b/Documentation/sphinx/templates/kernel-toc.html new file mode 100644 index 000000000000..426312af8a8e --- /dev/null +++ b/Documentation/sphinx/templates/kernel-toc.html @@ -0,0 +1,16 @@ +{# SPDX-License-Identifier: GPL-2.0 #} +{# Create a local TOC the kernel way #} +

+

Contents

+ + + +
+{{ toctree(maxdepth=3) }} +
+{# hacky script to try to position the left column #} + -- cgit v1.2.3