[PATCH RFC 1/2] docs: media: Create separate documentation folder for media

From: Sebastian Fricke
Date: Wed May 29 2024 - 12:23:25 EST


The media subsystem currently only maintains a set of Kernel API
documentations, with the intent of adding guides for the subsystem a
separate location is required. Create an empty folder with an index and
embed it into the subsystem listing.

Signed-off-by: Sebastian Fricke <sebastian.fricke@xxxxxxxxxxxxx>
---
Documentation/media/index.rst | 19 +++++++++++++++++++
Documentation/subsystem-apis.rst | 1 +
2 files changed, 20 insertions(+)

diff --git a/Documentation/media/index.rst b/Documentation/media/index.rst
new file mode 100644
index 000000000000..d056a9e99dca
--- /dev/null
+++ b/Documentation/media/index.rst
@@ -0,0 +1,19 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=============================
+Media Subsystem Documentation
+=============================
+
+.. toctree::
+ :maxdepth: 2
+
+ ../userspace-api/media/index
+ ../driver-api/media/index.rst
+ ../admin-guide/media/index
+
+.. only:: subproject and html
+
+ Indices
+ =======
+
+ * :ref:`genindex`
diff --git a/Documentation/subsystem-apis.rst b/Documentation/subsystem-apis.rst
index 74af50d2ef7f..5a1d90fd1af6 100644
--- a/Documentation/subsystem-apis.rst
+++ b/Documentation/subsystem-apis.rst
@@ -33,6 +33,7 @@ Human interfaces
input/index
hid/index
sound/index
+ media/index
gpu/index
fb/index
leds/index

--
2.25.1