Skip to content

Commit

Permalink
move .vitepress dir to root
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 18, 2022
1 parent 0be6350 commit 2b21d9b
Show file tree
Hide file tree
Showing 21 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/.vitepress/config.ts → .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ export default defineConfigWithTheme<Config>({
lang: 'en-US',
title: 'Vue.js',
description: 'Vue.js - The Progressive JavaScript Framework',
srcDir: 'src',
srcExclude: ['tutorial/**/description.md'],
scrollOffset: 'header',

Expand Down
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
NPM_FLAGS = "--version" # prevent Netlify npm install

[build]
publish = "src/.vitepress/dist"
publish = ".vitepress/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run build"
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"scripts": {
"dev": "vitepress dev src",
"build": "vitepress build src",
"serve": "vitepress serve src"
"dev": "vitepress",
"build": "vitepress build",
"serve": "vitepress serve"
},
"dependencies": {
"@vue/repl": "^0.4.9",
Expand Down
2 changes: 1 addition & 1 deletion src/api/api.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// a file ending with data.(j|t)s will be evaluated in Node.js
import fs from 'fs'
import path from 'path'
import { sidebar } from '../.vitepress/config'
import { sidebar } from '../../.vitepress/config'

export interface APIGroup {
text: string
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"strict": true,
"baseUrl": ".",
"paths": {
"/@theme/*": ["src/.vitepress/theme/*"]
"/@theme/*": [".vitepress/theme/*"]
}
},
"include": ["src/**/*", "src/.vitepress/**/*"]
"include": ["src/**/*", ".vitepress/**/*"]
}

0 comments on commit 2b21d9b

Please sign in to comment.