Skip to content

Commit

Permalink
Spellchecker really has to be disabled by default as aspell is not re…
Browse files Browse the repository at this point in the history
…aliable with doxygen (html) and therefore hunspell or other is todo
  • Loading branch information
mmertama committed Dec 21, 2024
1 parent d9b7370 commit 7236a94
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions aspell/gempyre_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ GTest
hexview
Hiillos
JS
toupper
libwebsockets
linux
mandelbrot
Expand Down
29 changes: 20 additions & 9 deletions gempyrelib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -425,14 +425,21 @@ if(PEDANTIC_WARNINGS)
endif()

if(DOXYGEN)
FetchContent_Declare(
cmakedoc
GIT_REPOSITORY https://github.com/mmertama/cmakedoc.git
GIT_TAG main
GIT_PROGRESS ${HAS_PROGRESS}
)
FetchContent_MakeAvailable(cmakedoc)
include(${cmakedoc_SOURCE_DIR}/cmakedoc.cmake)
cmake_path(ABSOLUTE_PATH CMAKEDOC_DIR NORMALIZE OUTPUT_VARIABLE CD_DIR)
if (EXISTS "${CD_DIR}")
message("Using local Cmakedoc ${CD_DIR}")
include("${CD_DIR}/cmakedoc.cmake")
else()
message("Retrieve Cmakedoc")
FetchContent_Declare(
cmakedoc
GIT_REPOSITORY https://github.com/mmertama/cmakedoc.git
GIT_TAG main
GIT_PROGRESS ${HAS_PROGRESS}
)
FetchContent_MakeAvailable(cmakedoc)
include(${cmakedoc_SOURCE_DIR}/cmakedoc.cmake)
endif()
file(GLOB DOX_HEADERS include/*.h)
set(CMAKEDOC_DOXYGEN_DOCUMENTS
${DOX_HEADERS}
Expand All @@ -441,6 +448,7 @@ if(DOXYGEN)


if(SPELL)
message(WARNING "Current version is using aspell that does not verify HTML (doxygen) correcly, TODO: use hunspell")
# CMAKE_SOURCE_DIR referds to wrong directory with CMAKE_SOURCE_DIR on Github actions context!
set(CMAKEDOC_SPELL_DICTIONARY ${CMAKE_CURRENT_SOURCE_DIR}/../aspell/gempyre_words.txt)
set(CMAKEDOC_SPELL_EXCLUDE_DIRS
Expand All @@ -454,7 +462,10 @@ if(DOXYGEN)
examples
test
scripts
cmake-build-debug)
cmake-build-debug
.idea
.vscode
_deps)
add_spellcheck(${PROJECT_NAME})
endif()
endif()
Expand Down

0 comments on commit 7236a94

Please sign in to comment.