doxygen update

improve CMake
This commit is contained in:
Erin Catto 2026-10-20 15:09:15 -07:00
commit 983b7f4ade
17 changed files with 713 additions and 250 deletions

19
docs/instant_scroll.cmake Normal file
View file

@ -0,0 +1,19 @@
# Doxygen's navtree.js slides to an anchor for up to 500 ms and has no option to turn it off.
# Rewrite the call to jump, keeping the callback that runs the highlight glow.
# Run with -DNAVTREE=<path to html/navtree.js>
file(READ "${NAVTREE}" text)
set(animated "animateScrolling(docContent, pos+dcScrTop-dcOffset, Math.max(50,Math.min(500,dist)), function() {")
set(instant "docContent.scrollTop = pos+dcScrTop-dcOffset; requestAnimationFrame(function() {")
string(FIND "${text}" "${animated}" found)
if(found GREATER_EQUAL 0)
string(REPLACE "${animated}" "${instant}" text "${text}")
file(WRITE "${NAVTREE}" "${text}")
else()
string(FIND "${text}" "${instant}" patched)
if(patched LESS 0)
message(FATAL_ERROR "instant_scroll.cmake: anchor scroll code not found in ${NAVTREE}, doxygen changed it")
endif()
endif()