From c0ed95b9f61b481af32d7b4beea1c89d364cad93 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 16 Dec 2024 16:02:57 +0100 Subject: shiboken/Documentation: Remove more C++ -specific sections from the WebXML module descriptions Complements 9bd0967d9b3f38ea7959fb00aa28a5ee1a1d0932. Task-number: PYSIDE-1106 Pick-to: 6.8 Change-Id: I414d4bf672a61f4e54720ea7ef6f6706a4e09329 Reviewed-by: Shyamnath Premnadh --- sources/shiboken6/ApiExtractor/classdocumentation.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sources/shiboken6/ApiExtractor/classdocumentation.cpp') diff --git a/sources/shiboken6/ApiExtractor/classdocumentation.cpp b/sources/shiboken6/ApiExtractor/classdocumentation.cpp index 941d25f06..54f721315 100644 --- a/sources/shiboken6/ApiExtractor/classdocumentation.cpp +++ b/sources/shiboken6/ApiExtractor/classdocumentation.cpp @@ -300,10 +300,13 @@ QString webXmlModuleDescription(const QString &fileName, QString *errorMessage) QByteArray text = file.readAll(); file.close(); - removeSection("building-with-cmake"_ba, &text); - removeSection("building-with-qmake"_ba, &text); - removeSection("reference"_ba, &text); - removeSection("using-the-module"_ba, &text); + static const QByteArrayList cppSectionIds{ + "api-reference"_ba, "building-with-cmake"_ba, "building-with-qmake"_ba, + "c-api"_ba, "c-classes"_ba, "examples"_ba, "qml-api"_ba, "reference"_ba, + "reference-and-examples"_ba, "using-the-module"_ba + }; + for (const auto &cppSectionId : cppSectionIds) + removeSection(cppSectionId, &text); QBuffer buffer(&text); buffer.open(QIODevice::ReadOnly); -- cgit v1.2.3