From 1338f84ff457f50e8b71e04fe36687106e711f1c Mon Sep 17 00:00:00 2001 From: Frank Lin Date: Sat, 4 Jul 2026 23:49:09 -0700 Subject: [PATCH] Stabilize Doxygen page anchor IDs across build paths Set STRIP_FROM_PATH/STRIP_FROM_INC_PATH to the source root so Markdown page anchor IDs (e.g. README) no longer embed the absolute build path, making the generated documentation reproducible regardless of where the source tree is built. --- doc/opencc.doxy.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/opencc.doxy.in b/doc/opencc.doxy.in index 642c0b1c0..064ffd7a9 100644 --- a/doc/opencc.doxy.in +++ b/doc/opencc.doxy.in @@ -180,7 +180,7 @@ FULL_PATH_NAMES = NO # will be relative from the directory where Doxygen is started. # This tag requires that the tag FULL_PATH_NAMES is set to YES. -STRIP_FROM_PATH = +STRIP_FROM_PATH = @CMAKE_SOURCE_DIR@ # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the # path mentioned in the documentation of a class, which tells the reader which @@ -189,7 +189,7 @@ STRIP_FROM_PATH = # specify the list of include paths that are normally passed to the compiler # using the -I flag. -STRIP_FROM_INC_PATH = +STRIP_FROM_INC_PATH = @CMAKE_SOURCE_DIR@ # If the SHORT_NAMES tag is set to YES, Doxygen will generate much shorter (but # less readable) file names. This can be useful if your file system doesn't