From 47f4c78c70a4e5a11191a9941f3b949bbbdb4c08 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 6 Aug 2024 20:54:03 -0700 Subject: [PATCH] test fix --- .github/workflows/deploy_docs.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 9ec363c74c..ca2bf430d7 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -40,14 +40,17 @@ jobs: else folder_name=$branch fi - + # Check out the branch git fetch origin $branch:$branch git checkout $branch - + + # Ensure the docs directory exists + mkdir -p docs/$folder_name + # Run Doxygen doxygen Doxyfile - + # Verify output echo "Listing contents of docs/$folder_name:" ls -R docs/$folder_name || echo "No files found in docs/$folder_name" @@ -58,6 +61,22 @@ jobs: with: ref: gh-pages + - name: Move Doxygen Documentation to gh-pages + run: | + # Ensure the site directory exists + mkdir -p _site + + # Copy each branch's Doxygen output to the Jekyll site directory + branches=("core" "orbit" "handle" "gloves" "desktop" "duo" "chromadeck" "spark") + for folder_name in "${branches[@]}" + do + if [ -d "docs/$folder_name" ]; then + echo "Moving docs/$folder_name to _site/$folder_name" + mkdir -p _site/$folder_name + cp -r docs/$folder_name/* _site/$folder_name + fi + done + - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: