Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down