]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: ABI: move README contents to the top
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 11 Feb 2025 05:57:57 +0000 (06:57 +0100)
committerJonathan Corbet <corbet@lwn.net>
Thu, 13 Feb 2025 16:47:44 +0000 (09:47 -0700)
The ABI documentation looks a little bit better if it starts
with the contents of the README is placed at the beginning.

Move it to the beginning of the ABI chapter. While here, improve
the README text and change the title that will be shown at the
html/pdf output to be coherent with both ABI file contents and
with the generated documentation output.

Suggested-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20250211055809.1898623-1-mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/ABI/README
Documentation/admin-guide/abi-readme-file.rst [deleted file]
Documentation/admin-guide/abi.rst
scripts/lib/abi/abi_parser.py

index 8bac9cb09a6de7a50f596abab38318368e592128..ef0e6d11e919c80190286e1f522d9bcb4fd91017 100644 (file)
@@ -1,4 +1,5 @@
-This directory attempts to document the ABI between the Linux kernel and
+This part of the documentation inside Documentation/ABI directory
+attempts to document the ABI between the Linux kernel and
 userspace, and the relative stability of these interfaces.  Due to the
 everchanging nature of Linux, and the differing maturity levels, these
 interfaces should be used by userspace programs in different ways.
diff --git a/Documentation/admin-guide/abi-readme-file.rst b/Documentation/admin-guide/abi-readme-file.rst
deleted file mode 100644 (file)
index 6172e4c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0
-
-ABI README
-==========
-
-.. kernel-abi:: README
index 15a2dcb1388ca2f6bf6fdf080d0cdc12816df418..c6039359e5853eeedcba82f01f2c9a1f5617a8ab 100644 (file)
@@ -4,6 +4,8 @@
 Linux ABI description
 =====================
 
+.. kernel-abi:: README
+
 ABI symbols
 -----------
 
@@ -21,7 +23,6 @@ ABI files
 .. toctree::
    :maxdepth: 2
 
-   abi-readme-file
    abi-stable-files
    abi-testing-files
    abi-obsolete-files
index f08de6d3bf7c164d26879a09788942c4e665ba07..66a738013ce13329658dc01928340bf6a19f0a88 100644 (file)
@@ -266,7 +266,7 @@ class AbiParser:
     def parse_readme(self, nametag, fname):
         """Parse ABI README file"""
 
-        nametag["what"] = ["ABI file contents"]
+        nametag["what"] = ["Introduction"]
         nametag["path"] = "README"
         with open(fname, "r", encoding="utf8", errors="backslashreplace") as fp:
             for line in fp: