Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move .vitepress dir to root
  • 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
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
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
@@ -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
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
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.