Skip to content

Commit

Permalink
refactor: move docs to package
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jun 30, 2022
1 parent 0eab177 commit 84b9760
Show file tree
Hide file tree
Showing 85 changed files with 483 additions and 87 deletions.
9 changes: 6 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[build.environment]
NPM_FLAGS = "--version"

[build]
ignore = "./scripts/docs-check.sh"
publish = "docs/.vitepress/dist"
command = "yarn run docs:build"
command = "npx pnpm@7 i --store=node_modules/.pnpm-store && npx pnpm@7 run docs:build"
ignore = "./scripts/docs-check.sh"
publish = "packages/docs/.vitepress/dist"
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"release": "node scripts/release.mjs",
"size": "pnpm run -r size",
"build": "pnpm run -r build",
"docs:build": "pnpm run docs:api && pnpm run -r docs:build --filter ./packages/docs",
"docs:build": "pnpm run -r docs:build --filter ./packages/docs",
"play": "pnpm run -r play",
"build:size": "pnpm run -r build:size",
"lint": "prettier -c --parser typescript \"packages/*/{src,__tests__,e2e}/**/*.[jt]s?(x)\"",
Expand All @@ -31,5 +31,14 @@
"*.ts?(x)": [
"prettier --parser=typescript --write"
]
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"react",
"@types/react",
"react-dom"
]
}
}
}
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@vue/router-docs",
"version": "0.0.0",
"private": true,
"scripts": {
"docs": "vitepress dev .",
"docs:api": "node run-typedoc.js",
"docs:build": "vitepress build ."
},
"dependencies": {
"vitepress": "^0.20.0"
}
}
File renamed without changes
7 changes: 7 additions & 0 deletions packages/docs/public/images/vueschool/vs-close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
183 changes: 183 additions & 0 deletions packages/docs/public/images/vueschool/vs-fw-bg-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
219 changes: 219 additions & 0 deletions packages/docs/public/images/vueschool/vs-fw-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ self.addEventListener('activate', function (e) {
return self.clients.matchAll()
})
.then(function (clients) {
clients.forEach((client) => client.navigate(client.url))
clients.forEach(client => client.navigate(client.url))
})
})
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.
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.
1 change: 0 additions & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
"serve-handler": "^6.1.3",
"typescript": "~4.7.3",
"vite": "~2.9.10",
"vitepress": "^0.20.0",
"vue": "^3.2.31",
"vue-tsc": "^0.37.2",
"yorkie": "^2.0.0"
Expand Down
Loading

0 comments on commit 84b9760

Please sign in to comment.