From 57b2622e65960358fd9e1e5737406ffdd1547a34 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Thu, 9 Jun 2022 13:50:52 +0300 Subject: [PATCH 1/3] Doxygen Awesome Fork URL Fix --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fba9be0..f6fe157 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,4 +76,11 @@ if(DOXYGEN_FOUND) Windows.md README.md ) + + add_custom_command( + TARGET ${PROJECT_NAME}Documentation POST_BUILD + COMMAND find html/ -name *.html -type f -exec sed -i 's+https://github.com/jothepro/doxygen-awesome-css+https://github.com/itay-grudev/SingleApplication+g' {} \\\; + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Replacing project URL" + ) endif() From 17682763501523b9704930cd9c6990795bec77e4 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Thu, 9 Jun 2022 16:02:22 +0300 Subject: [PATCH 2/3] URL correction now performed in the GH pages deployment --- .github/workflows/doxygen.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index c47f809..6208b07 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -23,12 +23,12 @@ jobs: run: | cmake -B build -D DOXYGEN_WARN_AS_ERROR=YES cmake --build build --target SingleApplicationDocumentation + find build/html/ -name *.html -type f -exec sed -i 's+https://github.com/jothepro/doxygen-awesome-css+https://github.com/itay-grudev/SingleApplication+g' {} \; - name: Deploy to GitHub pages on: branches: - master - uses: crazy-max/ghaction-github-pages@v3 with: target_branch: gh-pages From bfd32983ff023563ec46437319885f017b3b13bf Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Thu, 9 Jun 2022 16:03:03 +0300 Subject: [PATCH 3/3] Removed sed frmo CMakeLists as it is not cross-platform --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6fe157..fba9be0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,11 +76,4 @@ if(DOXYGEN_FOUND) Windows.md README.md ) - - add_custom_command( - TARGET ${PROJECT_NAME}Documentation POST_BUILD - COMMAND find html/ -name *.html -type f -exec sed -i 's+https://github.com/jothepro/doxygen-awesome-css+https://github.com/itay-grudev/SingleApplication+g' {} \\\; - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - COMMENT "Replacing project URL" - ) endif()