Skip to content

Commit bebd5ec

Browse files
authored
docs tmp rendering fallingletters (#876)
- **update to use** - **add base-url for gh-pages deploy** - **rm base config**
2 parents f333e9e + b0f3398 commit bebd5ec

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# Sample workflow for building and deploying a VitePress site to GitHub Pages
1+
# workflow for building and deploying VitePress docs site to GitHub Pages
22
#
3+
# from https://vitepress.dev/guide/deploy
34
name: Deploy VitePress site to Pages
45

56
on:
6-
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
7-
# using the `master` branch as the default branch.
87
push:
98
branches: [master]
109

11-
# Allows you to run this workflow manually from the Actions tab
1210
workflow_dispatch:
1311

1412
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -40,13 +38,13 @@ jobs:
4038
uses: actions/setup-node@v4
4139
with:
4240
node-version: 22
43-
cache: npm # or pnpm / yarn
41+
cache: yarn # or pnpm / yarn
4442
- name: Setup Pages
4543
uses: actions/configure-pages@v4
4644
- name: Install dependencies
47-
run: npm ci # or pnpm install / yarn install / bun install
45+
run: yarn install # or pnpm install / yarn install / bun install
4846
- name: Build with VitePress
49-
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
47+
run: yarn docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
5048
- name: Upload artifact
5149
uses: actions/upload-pages-artifact@v3
5250
with:

docs/.vitepress/config.mts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { fileURLToPath, URL } from 'node:url';
44

55
// https://vitepress.dev/reference/site-config
66
export default defineConfig({
7+
// base: 'vue-skuilder',
78
vite: {
89
resolve: {
910
alias: [
@@ -12,21 +13,21 @@ export default defineConfig({
1213
find: /^.*\/VPHero\.vue$/,
1314
replacement: fileURLToPath(
1415
new URL('./theme/components/CustomVPHero.vue', import.meta.url)
15-
)
16+
),
1617
},
1718
// Existing project aliases
1819
{
1920
find: '@vue-skuilder/courseware',
20-
replacement: path.resolve(__dirname, '../../packages/courseware/src')
21+
replacement: path.resolve(__dirname, '../../packages/courseware/src'),
2122
},
2223
{
23-
find: '@vue-skuilder/common-ui',
24-
replacement: path.resolve(__dirname, '../../packages/common-ui/src')
24+
find: '@vue-skuilder/common-ui',
25+
replacement: path.resolve(__dirname, '../../packages/common-ui/src'),
2526
},
2627
{
2728
find: '@vue-skuilder/platform-ui',
28-
replacement: path.resolve(__dirname, '../../packages/platform-ui/src')
29-
}
29+
replacement: path.resolve(__dirname, '../../packages/platform-ui/src'),
30+
},
3031
],
3132
},
3233
optimizeDeps: {

0 commit comments

Comments
 (0)