summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2022-07-01 11:09:45 +0200
committeralbert-github <albert.tests@gmail.com>2022-07-01 11:09:45 +0200
commit438f168ea992125382f8c23eb2cd9ad3e92688a7 (patch)
treefa45c041a783223711615ba82bd315a504f00dbc
parenta746d7ad0cd5df72afd874b8dbe5e97afc5581d8 (diff)
Don't reveal full path in the documentation but just the relative path
In e,g, https://gudhi.inria.fr/doc/latest/struct_coefficient_field.html (in general in `../struct_coefficient_field.html`) we see lines like: ``` #include </home/gailuron/workspace/gudhi/gudhi-devel/build/gudhi.3.5.0/concept/Persistent_cohomology/CoefficientField.h> ``` and ``` The documentation for this struct was generated from the following file: /home/gailuron/workspace/gudhi/gudhi-devel/build/gudhi.3.5.0/concept/Persistent_cohomology/CoefficientField.h ``` instead of the relative names: ``` #include <src/Persistent_cohomology/concept/CoefficientField.h> ``` and ``` The documentation for this struct was generated from the following file: src/Persistent_cohomology/concept/CoefficientField.h ``` (the links are pointing to the correct places in all cases.) This is corrected by stripping the path.
-rw-r--r--src/Doxyfile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Doxyfile.in b/src/Doxyfile.in
index fb68ceb1..ad4e95ca 100644
--- a/src/Doxyfile.in
+++ b/src/Doxyfile.in
@@ -152,7 +152,7 @@ FULL_PATH_NAMES = YES
# 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
@@ -162,7 +162,8 @@ STRIP_FROM_PATH =
# using the -I flag.
STRIP_FROM_INC_PATH = include \
- concept
+ concept \
+ @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 is your file systems doesn't