Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"@vue/runtime-dom": "^3.5.34",
"@vue/server-renderer": "^3.5.34",
"vite": "^7.3.0",
"vitepress>vite": "^8.1.3",
"vue": "^3.5.34"
},
"peerDependencyRules": {
Expand Down
1 change: 1 addition & 0 deletions packages/docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { zhConfig } from './zh'
export default defineConfig({
...sharedConfig,

llms: true,
locales: {
root: { label: 'English', lang: 'en-US', link: '/', ...enConfig },
zh: { label: '简体中文', lang: 'zh-CN', link: '/zh/', ...zhConfig },
Expand Down
17 changes: 3 additions & 14 deletions packages/docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { ModuleResolutionKind } from 'typescript'
// TODO: simplify and only importwm from '../twoslash/files'
import { typedRouterFileAsModule } from '../twoslash-files'
import { extraFiles } from '../twoslash/files'
import llmstxt from 'vitepress-plugin-llms'

// TODO:
// export const META_IMAGE = 'https://router.vuejs.org/social.png'
Expand Down Expand Up @@ -117,6 +116,8 @@ export const sharedConfig = defineConfig({
twoslashOptions: {
compilerOptions: {
moduleResolution: ModuleResolutionKind.Bundler,
// TS 6 removed baseUrl, resolve the virtual `@/` files via paths
paths: { '@/*': ['./@/*'] },
},
extraFiles: {
...extraFiles,
Expand Down Expand Up @@ -239,18 +240,6 @@ export const sharedConfig = defineConfig({
},
},
vite: {
plugins: [
groupIconVitePlugin(),
// TODO: write a proper llms.txt
llmstxt({
description: 'The official Router for Vue.js',
details: `
- Type Safe routes
- File based routing
- Data Loaders for efficient data fetching
`.trim(),
ignoreFiles: ['index.md', 'api/**/*', 'zh/**/*'],
}),
],
plugins: [groupIconVitePlugin()],
},
})
5 changes: 2 additions & 3 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
"docs:preview": "vitepress preview ."
},
"dependencies": {
"@shikijs/vitepress-twoslash": "^3.23.0",
"@shikijs/vitepress-twoslash": "^4.3.1",
"simple-git": "^3.36.0",
"typedoc-vitepress-theme": "^1.1.3",
"vitepress": "1.6.4",
"vitepress": "https://pkg.pr.new/vitepress@5313",
"vitepress-plugin-group-icons": "^1.7.5",
"vitepress-plugin-llms": "^1.13.3",
"vitepress-translation-helper": "^0.2.2",
"vue": "^3.5.34",
"vue-router": "workspace:*"
Expand Down
1 change: 0 additions & 1 deletion packages/docs/typedoc.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"../router/src/experimental/**/*.ts"
],
"compilerOptions": {
"baseUrl": ".",
"rootDir": "..",
"outDir": "dist",
"sourceMap": false,
Expand Down
Loading
Loading