From 19d7731a63e136c75913aaa7f83b2c60b7caf946 Mon Sep 17 00:00:00 2001 From: Brian Sipos Date: Wed, 18 Mar 2026 20:27:59 -0400 Subject: [PATCH] Separate spellcheck failure from docs build in CI --- .github/workflows/docs.yaml | 5 +++++ docs/api/CMakeLists.txt | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 9500a7b..7cfa90c 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -58,6 +58,11 @@ jobs: -DBUILD_DOCS_API=ON - name: Build run: ./build.sh --target docs-api-html docs-api-pdf docs-api-misspelling + - name: Misspelling + env: + MISSPELLING_TXT: 'build/default/docs/api/misspelling.txt' + # success means file is present and empty + run: test -f "${MISSPELLING_TXT}" -a ! -s "${MISSPELLING_TXT}" || (cat "${MISSPELLING_TXT}"; exit 1) - name: Install run: ./build.sh install --component docs-api - name: Compress diff --git a/docs/api/CMakeLists.txt b/docs/api/CMakeLists.txt index d2ffc27..5a9b7c2 100644 --- a/docs/api/CMakeLists.txt +++ b/docs/api/CMakeLists.txt @@ -20,8 +20,6 @@ the prime contract 80NM0018D0004 between the Caltech and NASA under subcontract 1700763. ]] -include(GNUInstallDirs) - find_package(Doxygen REQUIRED) find_program(XMLSTARLET_EXECUTABLE xmlstarlet) @@ -97,10 +95,6 @@ if(XMLSTARLET_EXECUTABLE AND ASPELL_EXECUTABLE) add_custom_target( docs-api-misspelling DEPENDS "${MISSPELLING_TXT}" - COMMAND cat "${MISSPELLING_TXT}" - # success means file is present and empty - COMMAND test -f "${MISSPELLING_TXT}" -a ! -s "${MISSPELLING_TXT}" - COMMENT "Checking ${MISSPELLING_TXT}" ) endif(XMLSTARLET_EXECUTABLE AND ASPELL_EXECUTABLE)