Skip to content

Commit fa5418b

Browse files
Guillaume ChauAkryum
authored andcommitted
docs: switch to GitHub sponsor
1 parent ed55524 commit fa5418b

File tree

6 files changed

+61
-34
lines changed

6 files changed

+61
-34
lines changed

packages/docs/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
"devDependencies": {
1010
"@vuepress/plugin-pwa": "^1.0.2",
1111
"vuepress": "^1.2.0"
12+
},
13+
"dependencies": {
14+
"vue-github-button": "^1.1.2"
1215
}
1316
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template>
2+
<p class="sponsor-button">
3+
<github-button href="https://github.com/sponsors/Akryum" data-icon="octicon-heart" data-size="large" aria-label="Sponsor @Akryum on GitHub">
4+
Sponsor on GitHub
5+
</github-button>
6+
</p>
7+
</template>
8+
9+
<script>
10+
import GithubButton from 'vue-github-button'
11+
12+
export default {
13+
components: {
14+
GithubButton
15+
}
16+
}
17+
</script>
18+
19+
<style lang="stylus" scoped>
20+
.sponsor-button
21+
text-align center
22+
margin 24px 0
23+
</style>

packages/docs/src/.vuepress/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ module.exports = {
5454
link: 'https://github.com/Akryum/vue-cli-plugin-apollo',
5555
},
5656
{
57-
text: 'Patreon',
58-
link: 'https://www.patreon.com/akryum',
57+
text: 'Sponsor',
58+
link: 'https://github.com/sponsors/Akryum',
5959
},
6060
],
6161
sidebarDepth: 2,

packages/docs/src/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ features:
1313
footer: LICENCE MIT - Created by Guillaume CHAU (@Akryum)
1414
---
1515

16-
<p style="text-align: center;">
17-
<a href="https://www.patreon.com/akryum" target="_blank">
18-
<img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patreon">
19-
</a>
20-
</p>
16+
<sponsor-button/>
2117

2218
## Sponsors
2319

packages/docs/src/guide/README.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Introduction
22

3-
::: danger
4-
This README is related to Apollo 2.x support. For the old release (supporting only Apollo 1.x), see [here](https://github.com/Akryum/vue-apollo/tree/apollo-1).
5-
:::
6-
7-
This library integrates [apollo](https://www.apollographql.com/) in your [Vue](http://vuejs.org) components with declarative queries. Compatible with Vue 1.0+ and 2.0+.
3+
This library integrates [apollo](https://www.apollographql.com/) in your [Vue](http://vuejs.org) components with declarative queries. Compatible with Vue 2.0+ and 3.0+.
84

95
[➡️ Go to Installation](./installation.md)
106

@@ -44,28 +40,9 @@ This library integrates [apollo](https://www.apollographql.com/) in your [Vue](h
4440

4541
## Become a sponsor
4642

47-
Is your company using vue-apollo or vue-cli-plugin-apollo to build awesome apps? Join the other patrons and become a sponsor to add your logo on this documentation! Supporting me on Patreon allows me to work less for a job and to work more on Free Open Source Software such as vue-apollo! Thank you!
48-
49-
<p style="text-align: center;">
50-
<a href="https://www.patreon.com/akryum" target="_blank">
51-
<img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patreon">
52-
</a>
53-
</p>
54-
55-
## Slides
56-
57-
If you never heard of GraphQL or Apollo, here is a sneak peek:
43+
Is your company using vue-apollo or vue-cli-plugin-apollo to build awesome apps? Join the other sponsors and add your logo on this documentation! Supporting me on GitHub allows me to work less for a job and to work more on Free Open Source Software such as vue-apollo! Thank you!
5844

59-
<iframe
60-
src="//slides.com/akryum/vue-apollo-graphql/embed?style=light"
61-
width="100%"
62-
height="500"
63-
scrolling="no"
64-
frameborder="0"
65-
webkitallowfullscreen
66-
mozallowfullscreen
67-
allowfullscreen
68-
/>
45+
<sponsor-button/>
6946

7047
## What is GraphQL?
7148

yarn.lock

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6513,7 +6513,23 @@ eslint-plugin-vue@^5.0.0, eslint-plugin-vue@^5.2.3:
65136513
dependencies:
65146514
vue-eslint-parser "^5.0.0"
65156515

6516-
eslint-scope@^3.7.1, eslint-scope@^4.0.0, eslint-scope@^4.0.3, eslint-scope@^5.0.0:
6516+
eslint-scope@^3.7.1:
6517+
version "3.7.3"
6518+
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.3.tgz#bb507200d3d17f60247636160b4826284b108535"
6519+
integrity sha512-W+B0SvF4gamyCTmUc+uITPY0989iXVfKvhwtmJocTaYoc/3khEHmEmvfY/Gn9HA9VV75jrQECsHizkNw1b68FA==
6520+
dependencies:
6521+
esrecurse "^4.1.0"
6522+
estraverse "^4.1.1"
6523+
6524+
eslint-scope@^4.0.0, eslint-scope@^4.0.3:
6525+
version "4.0.3"
6526+
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848"
6527+
integrity sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==
6528+
dependencies:
6529+
esrecurse "^4.1.0"
6530+
estraverse "^4.1.1"
6531+
6532+
eslint-scope@^5.0.0:
65176533
version "5.0.0"
65186534
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9"
65196535
integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==
@@ -7622,6 +7638,11 @@ gitconfiglocal@^1.0.0:
76227638
dependencies:
76237639
ini "^1.3.2"
76247640

7641+
github-buttons@^2.3.0:
7642+
version "2.6.0"
7643+
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.6.0.tgz#fa3e031451cee7ba05c3254fa67c73fe783104dc"
7644+
integrity sha512-PPGGL+l9fVc6J6ZtPNRMeVr94+NgFhZTHHz5/nNDGnt7DFeD+QRHKrEBlXNAxupw+gVLfQCUcM+l5SQ2KlqLzA==
7645+
76257646
glob-parent@^3.1.0:
76267647
version "3.1.0"
76277648
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
@@ -14978,6 +14999,13 @@ vue-eslint-parser@^5.0.0:
1497814999
esquery "^1.0.1"
1497915000
lodash "^4.17.11"
1498015001

15002+
vue-github-button@^1.1.2:
15003+
version "1.1.2"
15004+
resolved "https://registry.yarnpkg.com/vue-github-button/-/vue-github-button-1.1.2.tgz#318518c3a31d0fbd278ebcc80fbc5f88d68836e6"
15005+
integrity sha512-VukmgRy1wU0Ec8L8Qti4OOojQSfLRunf/In8bMqEJMXCZAz9BEgF4P+loAMBDoUqLYfyak4VJ2O7NTsZH2GLvQ==
15006+
dependencies:
15007+
github-buttons "^2.3.0"
15008+
1498115009
vue-hot-reload-api@^2.3.0:
1498215010
version "2.3.4"
1498315011
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"

0 commit comments

Comments
 (0)