From c0bb74c47a89cf39374b79c1a9a27e50bc362a08 Mon Sep 17 00:00:00 2001
From: Jason Kridner <jkridner@beagleboard.org>
Date: Wed, 28 Sep 2022 00:11:08 -0400
Subject: [PATCH] Fix some refs and toc stuff

---
 boards/beaglebone/index.rst | 10 ----------
 boards/index.rst            |  5 +++++
 books/index.rst             |  4 ++--
 3 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/boards/beaglebone/index.rst b/boards/beaglebone/index.rst
index 3b5920c9..679d03fa 100644
--- a/boards/beaglebone/index.rst
+++ b/boards/beaglebone/index.rst
@@ -28,13 +28,3 @@ of your screen.
 * :ref:`beaglebone-ai-home`
 * :ref:`bbai64-home`
 
-
-.. toctree::
-   :maxdepth: 1
-   :hidden:
-
-   /boards/beaglebone/black/index
-   /boards/beaglebone/blue/index
-   /boards/beaglebone/ai/index
-   /boards/beaglebone/ai-64/index
-
diff --git a/boards/index.rst b/boards/index.rst
index 519d98e1..26ab4b70 100644
--- a/boards/index.rst
+++ b/boards/index.rst
@@ -22,8 +22,13 @@ started.
 
 .. toctree::
    :maxdepth: 1
+   :hidden:
 
    /boards/beaglebone/index
+   /boards/beaglebone/black/index
+   /boards/beaglebone/blue/index
+   /boards/beaglebone/ai/index
+   /boards/beaglebone/ai-64/index
    /boards/pocketbeagle/original/index
    /boards/capes/index
    /boards/beagleconnect/index
diff --git a/books/index.rst b/books/index.rst
index 4640aed0..b31ab04b 100644
--- a/books/index.rst
+++ b/books/index.rst
@@ -5,10 +5,10 @@ Books
 
 This is a collection of open-source books written to help Beagle developers.
 
-`BeagleBone Cookbook <beaglebone-cookbook>`__ is a great introduction to programming
+:ref:`BeagleBone Cookbook <beaglebone-cookbook>`__ is a great introduction to programming
 a BeagleBone using Linux from userspace, mostly using Python or JavaScript.
 
-`PRU Cookbook <pru-cookbook>`__ provides numerous examples on using the incredible
+:ref:`PRU Cookbook <pru-cookbook>`__ provides numerous examples on using the incredible
 ultra-low-latency microcontrollers inside the processors used on BeagleBone boards
 that are a big part of what has made BeagleBone such a popular platform.
 
-- 
GitLab