<commit_before>set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/../Doxyfile.in)
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

set(MAN5_SOURCES    src/config/docs/exec-helper-config.md
                    src/plugins/docs/exec-helper-plugins-pmd.md
                    src/plugins/docs/exec-helper-plugins-valgrind.md
                    src/plugins/docs/exec-helper-plugins-execute-plugin.md
                    src/plugins/docs/exec-helper-plugins-selector.md
                    src/plugins/docs/exec-helper-plugins-cppcheck.md
                    src/plugins/docs/exec-helper-plugins.md
                    src/plugins/docs/exec-helper-plugins-command-plugin.md
                    src/plugins/docs/exec-helper-plugins-bootstrap.md
                    src/plugins/docs/exec-helper-plugins-memory.md
                    src/plugins/docs/exec-helper-plugins-scons.md
                    src/plugins/docs/exec-helper-plugins-make.md
                    src/plugins/docs/exec-helper-plugins-clang-tidy.md
                    src/plugins/docs/exec-helper-plugins-command-line-command.md
                    src/plugins/docs/exec-helper-plugins-clang-static-analyzer.md
                    src/plugins/docs/exec-helper-plugins-lcov.md 
    )
set(MAN5_EXTENSION .5)
set(MAN_EXTENSION ${MAN5_EXTENSION})

# Create the input paths for the Doxyfile
PREPEND(MAN5_SOURCES_FULL_PATH ${PROJECT_SOURCE_DIR} ${MAN5_SOURCES})
string (REPLACE ";" " " MAN_SOURCES "${MAN5_SOURCES_FULL_PATH}")    # CMAKE separates multiple values with a ';', while Doxygen uses ' '

# Create the output paths
STRIP_PATHS(MAN5_STRIPPED ${MAN5_SOURCES})
PREPEND(MAN5_OUTPUT_TMP ${CMAKE_CURRENT_BINARY_DIR} ${MAN5_STRIPPED})
string (REPLACE ".md" "${MAN5_EXTENSION}" MAN5_OUTPUT_PAGES "${MAN5_OUTPUT_TMP}")

# Create the gzipped output paths
string(REPLACE "${MAN5_EXTENSION}" "${MAN5_EXTENSION}.gz" MAN5_OUTPUT_GZ "${MAN5_OUTPUT_PAGES}")

# Set example paths for Doxygen
set(EXAMPLE_PATH_LIST ${PROJECT_SOURCE_DIR}/src/plugins/examples ${PROJECT_SOURCE_DIR}/src/plugins/examples)
string (REPLACE ";" " " EXAMPLE_PATH "${EXAMPLE_PATH_LIST}")    # CMAKE separates multiple values with a ';', while Doxygen uses ' '

configure_file(${doxyfile_in} ${doxyfile} @ONLY)
<commit_msg>Fix: Dev: Fixed example path for the exec-helper-config man-page documentation<commit_after>set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/../Doxyfile.in)
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

set(MAN5_SOURCES    src/config/docs/exec-helper-config.md
                    src/plugins/docs/exec-helper-plugins-pmd.md
                    src/plugins/docs/exec-helper-plugins-valgrind.md
                    src/plugins/docs/exec-helper-plugins-execute-plugin.md
                    src/plugins/docs/exec-helper-plugins-selector.md
                    src/plugins/docs/exec-helper-plugins-cppcheck.md
                    src/plugins/docs/exec-helper-plugins.md
                    src/plugins/docs/exec-helper-plugins-command-plugin.md
                    src/plugins/docs/exec-helper-plugins-bootstrap.md
                    src/plugins/docs/exec-helper-plugins-memory.md
                    src/plugins/docs/exec-helper-plugins-scons.md
                    src/plugins/docs/exec-helper-plugins-make.md
                    src/plugins/docs/exec-helper-plugins-clang-tidy.md
                    src/plugins/docs/exec-helper-plugins-command-line-command.md
                    src/plugins/docs/exec-helper-plugins-clang-static-analyzer.md
                    src/plugins/docs/exec-helper-plugins-lcov.md 
    )
set(MAN5_EXTENSION .5)
set(MAN_EXTENSION ${MAN5_EXTENSION})

# Create the input paths for the Doxyfile
PREPEND(MAN5_SOURCES_FULL_PATH ${PROJECT_SOURCE_DIR} ${MAN5_SOURCES})
string (REPLACE ";" " " MAN_SOURCES "${MAN5_SOURCES_FULL_PATH}")    # CMAKE separates multiple values with a ';', while Doxygen uses ' '

# Create the output paths
STRIP_PATHS(MAN5_STRIPPED ${MAN5_SOURCES})
PREPEND(MAN5_OUTPUT_TMP ${CMAKE_CURRENT_BINARY_DIR} ${MAN5_STRIPPED})
string (REPLACE ".md" "${MAN5_EXTENSION}" MAN5_OUTPUT_PAGES "${MAN5_OUTPUT_TMP}")

# Create the gzipped output paths
string(REPLACE "${MAN5_EXTENSION}" "${MAN5_EXTENSION}.gz" MAN5_OUTPUT_GZ "${MAN5_OUTPUT_PAGES}")

# Set example paths for Doxygen
set(EXAMPLE_PATH_LIST ${PROJECT_SOURCE_DIR}/src/plugins/examples ${PROJECT_SOURCE_DIR}/src/config/examples)
string (REPLACE ";" " " EXAMPLE_PATH "${EXAMPLE_PATH_LIST}")    # CMAKE separates multiple values with a ';', while Doxygen uses ' '

configure_file(${doxyfile_in} ${doxyfile} @ONLY)

{'fraction_non_alphanumeric': 0.11768587769467664, 'fraction_numerical': 0.007919049714034315, 'mean_word_length': 2.957354221061793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1526303', 'n_tokens_mistral': 1543, 'n_tokens_neox': 1457, 'n_words': 203}