From 304ffb1db8f156ca27d7db7bde12c20d7d2ae262 Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Sun, 17 Aug 2025 19:28:22 -0700 Subject: [PATCH] fix sync-docs workflow to work on adumesny/gridstack.js fork - Changed repository check from gridstack/gridstack.js to adumesny/gridstack.js - Fixed doc path from docs/html to doc/html to match expected structure - This will enable automatic syncing of documentation from master to gh-pages --- .github/workflows/sync-docs.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 31fe83318..99bef399c 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -12,7 +12,7 @@ on: jobs: sync-docs: runs-on: ubuntu-latest - if: github.repository == 'gridstack/gridstack.js' + if: github.repository == 'adumesny/gridstack.js' steps: - name: Checkout master branch @@ -53,19 +53,17 @@ jobs: run: | echo "Syncing main library documentation..." - # Remove existing docs directory if it exists - if [ -d "docs/html" ]; then - rm -rf docs/html + # Remove existing doc/html directory if it exists + if [ -d "doc/html" ]; then + rm -rf doc/html fi # Extract docs from master branch using git archive - mkdir -p docs + mkdir -p doc git archive master doc/html | tar -xf - - mv doc/html docs/html - rm -rf doc # Add changes - git add docs/html + git add doc/html - name: Sync Angular documentation if: steps.check-docs.outputs.angular_docs == 'true'