Skip to content

Commit cf1f60c

Browse files
committed
fix: 让 moxwebgpu demo 同时存在于根与 /demo/(修复 README 死链 404)
1 parent 48dc71f commit cf1f60c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/pages.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ jobs:
4040

4141
- name: Assemble site (demo + docs)
4242
run: |
43-
mkdir -p _site/docs
44-
# 演示页(根)
43+
mkdir -p _site/docs _site/demo
44+
# 演示页(根 + /demo/,两者都可用,README 链接指向 /demo/)
4545
cp demo/index.html _site/index.html
46+
cp demo/index.html _site/demo/index.html
4647
cp dist/moxwebgpu.browser.js _site/moxwebgpu.browser.js
48+
cp dist/moxwebgpu.browser.js _site/demo/moxwebgpu.browser.js
4749
# 双语文档站
4850
cp docs/index.html _site/docs/index.html
4951
cp -r assets _site/assets

0 commit comments

Comments
 (0)