Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added support for VuePress v2 (#313)
- Loading branch information
Showing
37 changed files
with
8,484 additions
and
8,511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
api | ||
node_modules | ||
.temp | ||
.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { defaultTheme } from 'vuepress'; | ||
import { typedocPlugin } from 'vuepress-plugin-typedoc/next'; | ||
|
||
module.exports = { | ||
title: 'VuePress Docs v2', | ||
theme: defaultTheme({ | ||
navbar: [ | ||
{ | ||
text: 'Guide', | ||
link: '/guide/', | ||
}, | ||
{ | ||
text: 'API', | ||
link: '/api/', | ||
}, | ||
], | ||
sidebar: { | ||
'/guide/': [ | ||
{ | ||
text: 'Guide', | ||
children: ['/guide/README.md'], | ||
}, | ||
], | ||
}, | ||
}), | ||
plugins: [ | ||
typedocPlugin({ | ||
entryPoints: ['../../stub-project/src/index.ts'], | ||
tsconfig: '../../stub-project/tsconfig.json', | ||
cleanOutputDir: true, | ||
}), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Hello VuePress 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Guide v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "vuepress-example-v2", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"docs:dev": "vuepress dev docs", | ||
"docs:build": "vuepress build docs && npx http-server ./docs/.vuepress/dist -o" | ||
}, | ||
"devDependencies": { | ||
"@vuepress/client": "^2.0.0-beta.49", | ||
"typedoc-plugin-markdown": "*", | ||
"vue": "^3.2.37", | ||
"vuepress": "^2.0.0-beta.49", | ||
"vuepress-plugin-typedoc": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = { | ||
/** | ||
* Ref:https://v1.vuepress.vuejs.org/config/#title | ||
*/ | ||
title: 'Vuepress Docs v1', | ||
|
||
/** | ||
* Theme configuration, here is the default theme configuration for VuePress. | ||
* | ||
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html | ||
*/ | ||
themeConfig: { | ||
repo: '', | ||
editLinks: false, | ||
docsDir: '', | ||
editLinkText: '', | ||
lastUpdated: false, | ||
nav: [ | ||
{ | ||
text: 'Guide', | ||
link: '/guide/', | ||
}, | ||
{ | ||
text: 'API', | ||
link: '/api/', | ||
}, | ||
], | ||
sidebar: { | ||
'/guide/': [ | ||
{ | ||
title: 'Guide', | ||
path: '/guide/', | ||
}, | ||
], | ||
}, | ||
}, | ||
|
||
/** | ||
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/ | ||
*/ | ||
plugins: [ | ||
[ | ||
'vuepress-plugin-typedoc', | ||
{ | ||
entryPoints: ['../../stub-project/src/index.ts'], | ||
tsconfig: '../../stub-project/tsconfig.json', | ||
cleanOutputDir: true, | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Hello VuePress 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Guide v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "vuepress-example-v1", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"docs:dev": "vuepress dev docs", | ||
"docs:build": "vuepress build docs && npx http-server ./docs/.vuepress/dist -o" | ||
}, | ||
"devDependencies": { | ||
"typedoc-plugin-markdown": "*", | ||
"vue": "^2.6.10", | ||
"vue-server-renderer": "2.6.11", | ||
"vuepress": "^1.8.2", | ||
"vuepress-plugin-typedoc": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.