Skip to content

Commit dd53cf8

Browse files
committed
ci: set proper base for gh pages
1 parent b1024ac commit dd53cf8

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.github/workflows/publish-demo.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ jobs:
4040
run: cp packages/core/demo/* docs/
4141
- name: Replace path of entrypoint file
4242
run: sed -i 's/..\/src\/index.ts/\/src\/main.ts/' docs/index.html
43-
# TODO: get .js.org domain
44-
# printf "discord-components.js.org" >> docs/public/CNAME
4543
- name: Copy LICENSE and README
4644
run: |
4745
cp LICENSE.md docs/public/

docs/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"noEmit": true,
66
"types": ["vite/client"]
77
},
8-
"include": ["src"]
8+
"include": ["src"],
9+
"references": [{ "path": "./tsconfig.node.json" }]
910
}

docs/tsconfig.node.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"skipLibCheck": true,
5+
"module": "ESNext",
6+
"moduleResolution": "bundler",
7+
"allowSyntheticDefaultImports": true
8+
},
9+
"include": ["vite.config.ts"]
10+
}

docs/vite.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'vite';
2+
3+
export default defineConfig({
4+
// TODO(CNAME): Remove when we get discord-components.js.org
5+
base: '/discord-components/'
6+
});
7+
8+
// TODO(CNAME): Run once when we get discord-components.js.org
9+
// printf "discord-components.js.org" >> docs/public/CNAME

0 commit comments

Comments
 (0)