Skip to content

Commit

Permalink
Mechanism for skipping documentation in particular directories
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Oct 23, 2024
1 parent 3446939 commit 12731e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/gen_per_module_docs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ file(GLOB cmake_projects RELATIVE ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/*/CMak
foreach(d ${cmake_projects})
get_filename_component(proj ${d} PATH)
get_filename_component(pname ${proj} NAME_WE)
# Skip any excluded projects
if(EXISTS "${CMAKE_SOURCE_DIR}/${pname}/.nodocs")
file(REMOVE "${CMAKE_SOURCE_DIR}/doc/moddoc_${pname}.rst")
continue()
endif()
# Copy header if exists, or create empty rst
if(EXISTS "${CMAKE_SOURCE_DIR}/${pname}/README.rst")
file(READ "${CMAKE_SOURCE_DIR}/${pname}/README.rst" MOD_HEADER)
Expand Down
Empty file added examples/.nodocs
Empty file.

0 comments on commit 12731e0

Please sign in to comment.