From 93d1721bd1acc3460f8e538712f5031d54304066 Mon Sep 17 00:00:00 2001
From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Sun, 14 Jan 2024 14:54:03 +0100
Subject: [PATCH] doc: add generated index to table of contents

Show the index in the navigation sidebar.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 doc/genindex.rst | 4 ++++
 doc/index.rst    | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 doc/genindex.rst

diff --git a/doc/genindex.rst b/doc/genindex.rst
new file mode 100644
index 0000000000..2e452cb8f5
--- /dev/null
+++ b/doc/genindex.rst
@@ -0,0 +1,4 @@
+.. SPDX-License-Identifier: GPL-2.0-or-later
+
+Index
+=====
diff --git a/doc/index.rst b/doc/index.rst
index 57b42c68e4..43398627d8 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -99,4 +99,7 @@ Chromium OS-specific doc
 Indices and tables
 ==================
 
-* :ref:`genindex`
+.. toctree::
+   :maxdepth: 1
+
+   genindex
-- 
2.39.5