Skip to content

Commit

Permalink
docs: use docs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Aug 15, 2022
1 parent 5e54f83 commit 20517bd
Show file tree
Hide file tree
Showing 5 changed files with 9,405 additions and 5,416 deletions.
15 changes: 1 addition & 14 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@ module.exports = {
'@vuepress/google-analytics': {
ga: 'UA-48084758-9',
},
'@vuepress/pwa': {
serviceWorker: true,
updatePopup: {
'/zh/': {
message: '发现新内容可用',
buttonText: '刷新',
},
'/': {
message: 'New content is available',
buttonText: 'Refresh',
},
},
},
'@vuepress/back-to-top': true,
},
locales: {
Expand All @@ -42,7 +29,7 @@ module.exports = {
themeConfig: {
repo: 'MoePlayer/DPlayer',
editLinks: true,
docsDir: 'docs',
docsDir: '.',
locales: {
'/zh/': {
lang: 'zh-CN',
Expand Down
14 changes: 14 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "docs",
"scripts": {
"docs:dev": "vuepress dev",
"docs:build": "vuepress build"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@vuepress/plugin-back-to-top": "^1.9.7",
"@vuepress/plugin-google-analytics": "^1.9.7",
"vuepress": "^1.9.7"
}
}
Loading

0 comments on commit 20517bd

Please sign in to comment.