Skip to content

Commit 2b21d9b

Browse files
committed
move .vitepress dir to root
1 parent 0be6350 commit 2b21d9b

21 files changed

+8
-7
lines changed

Diff for: src/.vitepress/config.ts renamed to .vitepress/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ export default defineConfigWithTheme<Config>({
526526
lang: 'en-US',
527527
title: 'Vue.js',
528528
description: 'Vue.js - The Progressive JavaScript Framework',
529+
srcDir: 'src',
529530
srcExclude: ['tutorial/**/description.md'],
530531
scrollOffset: 'header',
531532

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
NPM_FLAGS = "--version" # prevent Netlify npm install
44

55
[build]
6-
publish = "src/.vitepress/dist"
6+
publish = ".vitepress/dist"
77
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run build"

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"scripts": {
3-
"dev": "vitepress dev src",
4-
"build": "vitepress build src",
5-
"serve": "vitepress serve src"
3+
"dev": "vitepress",
4+
"build": "vitepress build",
5+
"serve": "vitepress serve"
66
},
77
"dependencies": {
88
"@vue/repl": "^0.4.9",

Diff for: src/api/api.data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// a file ending with data.(j|t)s will be evaluated in Node.js
33
import fs from 'fs'
44
import path from 'path'
5-
import { sidebar } from '../.vitepress/config'
5+
import { sidebar } from '../../.vitepress/config'
66

77
export interface APIGroup {
88
text: string

Diff for: tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"strict": true,
1010
"baseUrl": ".",
1111
"paths": {
12-
"/@theme/*": ["src/.vitepress/theme/*"]
12+
"/@theme/*": [".vitepress/theme/*"]
1313
}
1414
},
15-
"include": ["src/**/*", "src/.vitepress/**/*"]
15+
"include": ["src/**/*", ".vitepress/**/*"]
1616
}

0 commit comments

Comments
 (0)