@@ -52,40 +52,59 @@ jobs:
5252 mkdir -p deploy/doc/html
5353 mkdir -p deploy/angular/doc/html
5454
55+ # Debug: Check what was generated
56+ echo "📁 Checking generated documentation..."
57+ echo "Main library HTML docs:"
58+ if [ -d "doc/html" ]; then
59+ echo " ✓ doc/html/ exists"
60+ ls -la doc/html/ | head -10
61+ else
62+ echo " ✗ doc/html/ NOT FOUND"
63+ fi
64+
65+ echo "Angular library HTML docs:"
66+ if [ -d "angular/doc/html" ]; then
67+ echo " ✓ angular/doc/html/ exists"
68+ ls -la angular/doc/html/ | head -10
69+ else
70+ echo " ✗ angular/doc/html/ NOT FOUND"
71+ fi
72+
73+ echo "Angular library Markdown docs (should NOT be deployed):"
74+ if [ -d "angular/doc/api" ]; then
75+ echo " ⚠ angular/doc/api/ exists (will NOT be copied to deployment)"
76+ ls -la angular/doc/api/ | head -10
77+ else
78+ echo " ✓ angular/doc/api/ does not exist"
79+ fi
80+
5581 # Copy main library HTML documentation
5682 if [ -d "doc/html" ]; then
5783 cp -r doc/html/* deploy/doc/html/
84+ echo "✓ Copied main library HTML docs"
85+ else
86+ echo "⚠ Warning: Main library HTML docs not found, skipping..."
5887 fi
5988
6089 # Copy Angular library HTML documentation
6190 if [ -d "angular/doc/html" ]; then
6291 cp -r angular/doc/html/* deploy/angular/doc/html/
92+ echo "✓ Copied Angular library HTML docs"
93+ else
94+ echo "⚠ Warning: Angular library HTML docs not found, skipping..."
6395 fi
6496
65- # Copy redirect index.html to root
66- if [ -f "doc/index.html" ]; then
67- cp doc/index.html deploy/
68- fi
97+ # Note: Do NOT copy or create index.html at root
98+ # The gh-pages branch has its own index.html that should be preserved
99+ # The keep_files: true option will preserve existing files on gh-pages
69100
70101 # Ensure .nojekyll exists to prevent Jekyll processing
71102 touch deploy/.nojekyll
72103
73- # Optional: Add a simple index.html at root if none exists
74- if [ ! -f "deploy/index.html" ]; then
75- cat > deploy/index.html << 'EOF'
76- <!DOCTYPE html>
77- <html>
78- <head>
79- <title>GridStack.js Documentation</title>
80- <meta http-equiv="refresh" content="0; url=./doc/html/">
81- </head>
82- <body>
83- <h1>GridStack.js Documentation</h1>
84- <p>Redirecting to <a href="./doc/html/">API Documentation</a>...</p>
85- </body>
86- </html>
87- EOF
88- fi
104+ # Final verification
105+ echo ""
106+ echo "📦 Deployment structure:"
107+ find deploy -type f -name "*.html" | head -20
89108
90109 - name : Deploy to GitHub Pages
91110 uses : peaceiris/actions-gh-pages@v4
0 commit comments