doc: fix sphinx config for rtd
authorKent Gibson <warthog618@gmail.com>
Fri, 5 Jul 2024 02:17:50 +0000 (10:17 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 5 Jul 2024 07:41:02 +0000 (09:41 +0200)
Generating the latest documentation on readthedocs is broken as the
index.html generated by Doxygen is now being overwritten by one
generated by Sphinx.

Make Sphinx generate a differently named root page that does not
conflict with the index.html generated by Doxygen.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240705021750.43197-1-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
sphinx/conf.py
sphinx/contents.rst [new file with mode: 0644]
sphinx/index.rst [deleted file]

index 51ae3e9fa176b9922612c6b8df7d4aedf25ad1a1..043dc79063a1544ef2e353f223da450547a27cd9 100644 (file)
@@ -53,6 +53,8 @@ exclude_patterns = []
 
 # -- Options for HTML output -------------------------------------------------
 
+root_doc = 'contents'
+
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 #
diff --git a/sphinx/contents.rst b/sphinx/contents.rst
new file mode 100644 (file)
index 0000000..c26d068
--- /dev/null
@@ -0,0 +1,24 @@
+..
+   SPDX-License-Identifier: LGPL-2.1-or-later
+   SPDX-FileCopyrightText: 2022 Kent Gibson <warthog618@gmail.com>
+
+..
+   This file is part of libgpiod.
+
+   libgpiod documentation master file.
+
+Welcome to libgpiod's documentation!
+====================================
+
+.. toctree::
+   :maxdepth: 2
+   :caption: Contents:
+
+
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
diff --git a/sphinx/index.rst b/sphinx/index.rst
deleted file mode 100644 (file)
index c26d068..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-..
-   SPDX-License-Identifier: LGPL-2.1-or-later
-   SPDX-FileCopyrightText: 2022 Kent Gibson <warthog618@gmail.com>
-
-..
-   This file is part of libgpiod.
-
-   libgpiod documentation master file.
-
-Welcome to libgpiod's documentation!
-====================================
-
-.. toctree::
-   :maxdepth: 2
-   :caption: Contents:
-
-
-
-Indices and tables
-==================
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`