Skip to content

Commit 3574164

Browse files
committed
path
1 parent 5dc3896 commit 3574164

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed

.github/workflows/storybook.yml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,15 @@ 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-
4232
# Step 1: Build Storybook first
4333
- name: Build Storybook
4434
run: npm run build-storybook
4535

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
36+
# Step 2: Generate TypeDoc into a subdirectory of Storybook
5337
- name: Generate TypeDoc documentation
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"
38+
run: npm run docs
5939

60-
# Step 3: Create a simple navigation page
40+
# Step 3: Create a simple navigation page (optional)
6141
- name: Create navigation page
6242
run: |
6343
echo '<!DOCTYPE html>
@@ -81,16 +61,6 @@ jobs:
8161
</body>
8262
</html>' > storybook-static/docs-home.html
8363
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-
9464
- name: Setup Pages
9565
uses: actions/configure-pages@v4
9666

tsconfig.docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"typedocOptions": {
88
"entryPoints": ["src/index.ts"],
9-
"out": "docs",
9+
"out": "storybook-static/api",
1010
"name": "TanStack Table Adapter API",
1111
"includeVersion": true,
1212
"excludePrivate": true,

0 commit comments

Comments
 (0)