Skip to content

Commit

Permalink
Use gem-book
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Dec 30, 2023
1 parent d6ef35f commit fe9f650
Show file tree
Hide file tree
Showing 22 changed files with 155 additions and 3,219 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
gem-book.json

### OSX ###
# General
.DS_Store
Expand Down
16 changes: 16 additions & 0 deletions gem-book.cli.json
@@ -0,0 +1,16 @@
{
"title": "Vue.js",
"icon": "src/public/logo.svg",
"theme": "src/gem-theme.json",
"sourceBranch":"gem-book",
"onlyFile": true,
"homeMode": true,
"plugin": ["docsearch", "import"],
"template": "src/template.html",
"nav": [
{ "title": "Github", "link": "https://github.com/mantou132/docs-zh-cn" },
{ "title": "Twitter", "link": "https://twitter.com/vuejs" },
{ "title": "Discord", "link": "https://discord.com/invite/HBherRA" },
{ "title": "Play", "link": "https://play.vuejs.org" }
]
}
43 changes: 5 additions & 38 deletions package.json
@@ -1,51 +1,18 @@
{
"license": "CC BY-NC-SA 4.0",
"engines": {
"node": ">=14.0.0",
"pnpm": ">=7.4.0"
},
"type": "module",
"scripts": {
"dev": "vitepress",
"build": "vitepress build",
"dev": "PORT=8092 GEM_BOOK_DEV=true npx nodemon --watch ../gem/packages/gem-book/bin --watch gem-book.cli.json --exec \"node ../gem/packages/gem-book/bin src\"",
"start": "gem-book src",
"build": "gem-book src --build",
"preview": "vitepress preview",
"zhlint": "zhlint 'src/{api,about,guide,sponsor,translations,tutorial}/**/*.md'",
"clean": "rm -rf .vitepress/dist",
"sync": "node scripts/sync.js",
"preinstall": "npx only-allow pnpm"
"sync": "node scripts/sync.js"
},
"dependencies": {
"@vue/repl": "^3.0.0",
"@vue/theme": "^2.2.5",
"dynamics.js": "^1.1.5",
"gsap": "^3.9.0",
"vitepress": "1.0.0-rc.31",
"vue": "^3.4.0-beta.1"
"gem-book": "^1.5.26"
},
"devDependencies": {
"@types/markdown-it": "^12.2.3",
"@types/node": "^20.10.1",
"chalk": "^4.1.2",
"commander": "^9.4.0",
"gray-matter": "^4.0.3",
"lodash": "^4.17.21",
"open": "^8.4.0",
"simple-git": "^2.48.0",
"terser": "^5.14.2",
"zhlint": "^0.7.1"
},
"pnpm": {
"overrides": {
"@vitejs/plugin-vue": "5.0.0-beta.1"
},
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search",
"react",
"react-dom",
"@types/react",
"search-insights"
]
}
}
}

0 comments on commit fe9f650

Please sign in to comment.