@@ -29,15 +29,35 @@ jobs:
2929 - name : Install dependencies
3030 run : npm ci
3131
32+ # Debug TypeDoc installation
33+ - name : Check TypeDoc installation
34+ run : |
35+ echo "TypeDoc version:"
36+ npx typedoc --version || echo "TypeDoc not found"
37+ echo "Current directory structure:"
38+ ls -la
39+ echo "Package.json scripts:"
40+ cat package.json | grep -A 20 '"scripts"'
41+
3242 # Step 1: Build Storybook first
3343 - name : Build Storybook
3444 run : npm run build-storybook
3545
36- # Step 2: Generate TypeDoc into a subdirectory of Storybook
46+ # Debug Storybook output
47+ - name : Check Storybook output
48+ run : |
49+ echo "Storybook output directory:"
50+ ls -la storybook-static || echo "storybook-static directory not found"
51+
52+ # Step 2: Generate TypeDoc manually with explicit output path
3753 - name : Generate TypeDoc documentation
38- run : npm run docs
54+ run : |
55+ echo "Running TypeDoc directly with explicit output path..."
56+ npx typedoc --out storybook-static/api src/index.ts
57+ echo "Checking if TypeDoc output was created:"
58+ ls -la storybook-static/api || echo "api directory not found in storybook-static"
3959
40- # Step 3: Create a simple navigation page (optional)
60+ # Step 3: Create a simple navigation page
4161 - name : Create navigation page
4262 run : |
4363 echo '<!DOCTYPE html>
6181 </body>
6282 </html>' > storybook-static/docs-home.html
6383
84+ # Final directory check before deployment
85+ - name : Final directory check
86+ run : |
87+ echo "Final directory structure before deployment:"
88+ find storybook-static -type d | sort
89+ echo "Files in storybook-static root:"
90+ ls -la storybook-static/
91+ echo "Files in api directory (if it exists):"
92+ ls -la storybook-static/api/ || echo "API directory not found"
93+
6494 - name : Setup Pages
6595 uses : actions/configure-pages@v4
6696
0 commit comments