From 987588f2d40207b81a83004a9f5f266899098bca Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Mon, 19 Dec 2022 15:23:29 +0000 Subject: [PATCH] Fix toctree in docs --- docs/index.rst | 50 +++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 545dc316..2f712348 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,41 +9,37 @@ How the documentation is structured Documentation is split into four categories, also accessible from links in the side-bar. -.. rst-class:: columns +.. grid:: 4 -`tutorials` -~~~~~~~~~~~ + .. grid-item-card:: :material-regular:`person;4em` + :link: tutorials + :link-type: doc -.. include:: tutorials.rst - :start-after: ========= + Tutorials -.. rst-class:: columns + .. grid-item-card:: :material-regular:`code;4em` + :link: how-to + :link-type: doc -`how-to` -~~~~~~~~ + How-To -.. include:: how-to.rst - :start-after: ============= + .. grid-item-card:: :material-regular:`person;4em` + :link: explanations + :link-type: doc -.. rst-class:: columns + Explanations -`explanations` -~~~~~~~~~~~~~~ + .. grid-item-card:: :material-regular:`code;4em` + :link: reference + :link-type: doc -.. include:: explanations.rst - :start-after: ============ + Reference -.. rst-class:: columns -`reference` -~~~~~~~~~~~ +.. toctree:: + :hidden: -.. include:: reference.rst - :start-after: ========= - -.. rst-class:: endcolumns - -About the documentation -~~~~~~~~~~~~~~~~~~~~~~~ - -`Why is the documentation structured this way? `_ + tutorials + how-to + explanations + reference