Skip to content

Commit

Permalink
Add a sanity check to the new menu code.
Browse files Browse the repository at this point in the history
Fail if both the new inline-navigation and the old page_user_docs
menu modifications are triggered.
  • Loading branch information
brettcoon committed Mar 26, 2024
1 parent a4563fd commit 7742c5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/docs/CMake_rundoxygen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ if (embeddable)
if (js MATCHES "page_user_docs.js")
# CMake 3.6+ guarantees the glob is sorted lexicographically, so we've already
# seen navtreedata.js.
if (found_user_docs)
message(FATAL_ERROR "Found unexpected \"page_user_docs\" menu file")
endif ()
set(found_user_docs ON)
if (ext_entry)
if (NOT string MATCHES "Disassembly Library")
Expand Down

0 comments on commit 7742c5c

Please sign in to comment.