♻️ refactor: use dumi instead of vuepress'
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
export default {
|
||||
mode: 'site',
|
||||
hash: true,
|
||||
title: 'JavaScript Guidebook',
|
||||
description: 'JavaScript 完全知识体系',
|
||||
base: '/javascript-guidebook/',
|
||||
publicPath: '/javascript-guidebook/',
|
||||
favicon: './favicon.ico',
|
||||
logo: 'http://img.mrsingsing.com/javascript-guidebook-favicon.png',
|
||||
exportStatic: {},
|
||||
navs: [
|
||||
null,
|
||||
{
|
||||
title: 'Github',
|
||||
path: 'https://github.com/tsejx/javascript-guidebook',
|
||||
},
|
||||
],
|
||||
};
|
||||
+10
-21
@@ -1,34 +1,23 @@
|
||||
{
|
||||
"name": "javascript-guidebook",
|
||||
"author": "tsejx",
|
||||
"version": "1.0.0",
|
||||
"description": "A guidebook for the convenience of the front-end developers",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "vuepress dev",
|
||||
"build": "vuepress build",
|
||||
"dev": "yarn run dumi dev --port=8010",
|
||||
"lint:md": "lint-md *.md",
|
||||
"lint:fix": "lint-md *.md --fix",
|
||||
"deploy": "bash deploy.sh"
|
||||
"build": "yarn run dumi build",
|
||||
"deploy": "bash ./scripts/deploy.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"dumi": "^1.0.23",
|
||||
"lint-md": "^0.1.1"
|
||||
},
|
||||
"homepage": "https://github.com/tsejx/JavaScript-Guidebook#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/tsejx/JavaScript-Guidebook.git"
|
||||
},
|
||||
"author": "tsejx",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/tsejx/JavaScript-Guidebook/issues"
|
||||
},
|
||||
"homepage": "https://github.com/tsejx/JavaScript-Guidebook#readme",
|
||||
"devDependencies": {
|
||||
"@vuepress/plugin-back-to-top": "^1.0.0-alpha.47",
|
||||
"@vuepress/plugin-google-analytics": "^1.0.0-alpha.47",
|
||||
"@vuepress/plugin-medium-zoom": "^1.0.0-alpha.47",
|
||||
"@vuepress/plugin-pwa": "^1.0.0-alpha.47",
|
||||
"lint-md": "^0.1.1",
|
||||
"vuepress": "^1.0.0-alpha.47",
|
||||
"vuepress-plugin-baidu-autopush": "^1.0.1"
|
||||
},
|
||||
"dependencies": {}
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Executable
+24
@@ -0,0 +1,24 @@
|
||||
set -e
|
||||
shopt -s extglob
|
||||
|
||||
TEMP_PATH="docs/.temp"
|
||||
|
||||
# build docs
|
||||
npm run build
|
||||
|
||||
# prepare deploy
|
||||
rm -rf $TEMP_PATH
|
||||
mkdir $TEMP_PATH
|
||||
cd $TEMP_PATH
|
||||
git init
|
||||
git pull https://github.com/tsejx/javascript-guidebook.git gh-pages
|
||||
cp -r ../../dist/* .
|
||||
|
||||
# commit and push changes
|
||||
git add -A
|
||||
git commit --am -m "build: deploy documentation"
|
||||
git push -f https://github.com/tsejx/javascript-guidebook.git master:gh-pages
|
||||
|
||||
## clean
|
||||
cd
|
||||
rm -rf $TEMP_PATH
|
||||
Reference in New Issue
Block a user