From c16db0935f97ab492b3f0a5097c0b680d7341ce5 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 13 Jul 2023 05:20:44 +0200 Subject: [PATCH] Fix `doc_status.py` trying to get removed `version` tag from XML This also runs `doc_status.py` on CI to catch potential future regressions. --- .github/workflows/static_checks.yml | 1 + doc/tools/doc_status.py | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index 6133780688a..b47ef135a28 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -86,6 +86,7 @@ jobs: - name: Documentation checks run: | + doc/tools/doc_status.py doc/classes modules/*/doc_classes platform/*/doc_classes doc/tools/make_rst.py --dry-run --color doc/classes modules platform - name: Style checks via clang-format (clang_format.sh) diff --git a/doc/tools/doc_status.py b/doc/tools/doc_status.py index 376addcff06..717a468b36f 100755 --- a/doc/tools/doc_status.py +++ b/doc/tools/doc_status.py @@ -383,12 +383,6 @@ for file in input_file_list: tree = ET.parse(file) doc = tree.getroot() - if "version" not in doc.attrib: - print('Version missing from "doc"') - sys.exit(255) - - version = doc.attrib["version"] - if doc.attrib["name"] in class_names: continue class_names.append(doc.attrib["name"])