Skip to content

Commit 1f96e8a

Browse files
committed
Update wf to build docs properly
1 parent 169e626 commit 1f96e8a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish-docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ jobs:
4141
SKIP_RUST_BUILD: 1
4242
run: pnpm install --frozen-lockfile
4343

44-
- name: Build docs
45-
run: npm run build:docs
44+
- name: Generate TypeDoc markdown (without modifying repo)
45+
run: |
46+
pnpm typedoc --plugin typedoc-plugin-markdown --readme none --out docs-typedoc js-src/index.ts
47+
pnpm cpy "docs-typedoc/**" docs --parents --overwrite --ignore="docs-typedoc/classes/index.md" --ignore="docs-typedoc/README.md"
48+
rm -rf docs-typedoc
4649
4750
- name: Upload artifact
4851
uses: actions/upload-pages-artifact@v3
4952
with:
50-
path: 'docs/_site/'
53+
# Upload the Jekyll source; GitHub Pages will build it on deploy
54+
path: 'docs'
5155

5256
- name: Deploy to GitHub Pages
5357
id: deployment

0 commit comments

Comments
 (0)