Skip to content

Commit a95cebf

Browse files
committed
docs: wip vitepress
1 parent ad3f1dd commit a95cebf

File tree

25 files changed

+503
-1245
lines changed

25 files changed

+503
-1245
lines changed

β€Žpackages/docs/package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
"version": "4.0.0-alpha.14",
44
"private": true,
55
"scripts": {
6-
"dev": "vuepress dev src",
7-
"build": "vuepress build src"
8-
},
9-
"devDependencies": {
10-
"@vuepress/plugin-pwa": "^1.8.2",
11-
"vue-template-compiler": "^2.6.14",
12-
"vuepress": "^1.8.2"
6+
"dev": "vitepress dev src",
7+
"build": "vitepress build src"
138
},
149
"dependencies": {
1510
"core-js": "^3.18.0",
16-
"vue-github-button": "^1.1.2"
11+
"vue-github-button": "^3.0.1"
12+
},
13+
"devDependencies": {
14+
"vitepress": "^0.18.1"
1715
}
1816
}

β€Žpackages/docs/src/.vuepress/config.js renamed to β€Žpackages/docs/src/.vitepress/config.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module.exports = {
22
base: '/',
3-
serviceWorker: true,
3+
44
head: [
55
['link', { rel: 'icon', href: '/favicon.png' }],
66
],
7+
78
locales: {
89
'/': {
910
lang: 'en-US',
@@ -16,20 +17,11 @@ module.exports = {
1617
description: 'πŸš€ εœ¨δ½ ηš„ Vue.js εΊ”η”¨δΈ­ι›†ζˆ GraphQL!',
1718
},
1819
},
19-
plugins: {
20-
'@vuepress/pwa': {
21-
serviceWorker: true,
22-
updatePopup: {
23-
'/': {
24-
message: 'New content is available.',
25-
buttonText: 'Refresh',
26-
},
27-
},
28-
},
29-
},
20+
3021
themeConfig: {
3122
repo: 'Akryum/vue-apollo',
3223
docsDir: 'docs',
24+
docsBranch: 'v4',
3325
editLinks: true,
3426
locales: {
3527
'/': {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import DefaultTheme from 'vitepress/theme'
2+
import SponsorButton from './components/sponsor-button.vue'
3+
4+
export default {
5+
...DefaultTheme,
6+
enhanceApp ({ app }) {
7+
app.component('SponsorButton', SponsorButton)
8+
},
9+
}

β€Žpackages/docs/src/.vuepress/styles/index.styl

Lines changed: 0 additions & 23 deletions
This file was deleted.

β€Žpackages/docs/src/README.md renamed to β€Žpackages/docs/src/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
---
22
home: true
3+
34
heroImage: /logo.png
5+
46
actionText: Get Started β†’
57
actionLink: /guide/
8+
69
features:
710
- title: Automatic updates
811
details: Don't think about updating the UI or refetching the queries!
912
- title: In-template components
1013
details: Use Apollo in a truly declarative way with the Apollo components
1114
- title: SSR-ready
1215
details: Run your queries on the server before rendering the page HTML
16+
1317
footer: LICENCE MIT - Created by Guillaume CHAU (@Akryum)
1418
---
1519

0 commit comments

Comments
Β (0)