Skip to content

Commit 17c6759

Browse files
committed
tweak vuepress docs
1 parent 6bb7c0c commit 17c6759

File tree

5 files changed

+57
-9
lines changed

5 files changed

+57
-9
lines changed
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/kazupon" data-icon="octicon-heart" data-size="large" aria-label="Sponsor @kazupon on GitHub">
4+
Sponsor on GitHub
5+
</github-button>
6+
</p>
7+
</template>
8+
9+
<script>
10+
import GithubButton from 'vue-github-button'
11+
export default {
12+
components: {
13+
GithubButton
14+
}
15+
}
16+
</script>
17+
18+
<style scoped>
19+
.sponsor-button {
20+
text-align: center;
21+
margin: 24px 0;
22+
}
23+
</style>

docs/.vuepress/config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ module.exports = {
2929
updatePopup: true
3030
},
3131
nav: [{
32-
text: 'Patreon',
33-
link: 'https://www.patreon.com/kazupon'
32+
text: 'Support Intlify',
33+
items: [{
34+
text: 'GitHub Sponsors',
35+
link: 'https://github.com/sponsors/kazupon'
36+
}, {
37+
text: 'Patreon',
38+
link: 'https://www.patreon.com/kazupon'
39+
}]
3440
}, {
3541
text: 'Release Notes',
3642
link: 'https://github.com/intlify/eslint-plugin-vue-i18n/releases'

docs/README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ eslint-plugin-vue-i18n is ESLint plugin of Vue I18n. It easily integrates some l
66

77
Go to [Get Started](./started.md)
88

9-
## Become a Patreon
9+
## Become a Sponsor
1010

11-
Is your company using vue-i18n, eslint-plugin-vue-i18n, and related vue-i18n tools 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 eslint-plugin-vue-i18n! Thank you!
11+
Is your company using vue-i18n, eslint-plugin-vue-i18n, and related vue-i18n tools to build awesome apps? Become a sponsor to add your logo on this documentation! Supporting me on GitHub Sponsors and Patreon allows me to work less for a job and to work more on Free Open Source Software such as eslint-plugin-vue-i18n! Thank you!
1212

13-
<p style="text-align: center;">
14-
<a href="https://www.patreon.com/kazupon" target="_blank">
15-
<img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patreon">
16-
</a>
17-
</p>
13+
<div class="github">
14+
<sponsor-button />
15+
</div>
16+
17+
<div class="patreon">
18+
<p style="text-align: center;">
19+
<a href="https://www.patreon.com/kazupon" target="_blank">
20+
<img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patreon">
21+
</a>
22+
</p>
23+
</div>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"opener": "^1.5.1",
4444
"rimraf": "^3.0.0",
4545
"shipjs": "^0.20.0",
46+
"vue-github-button": "^1.2.0",
4647
"vuepress": "^1.5.2"
4748
},
4849
"engines": {

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4849,6 +4849,11 @@ gitconfiglocal@^1.0.0:
48494849
dependencies:
48504850
ini "^1.3.2"
48514851

4852+
github-buttons@^2.8.0:
4853+
version "2.11.2"
4854+
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.11.2.tgz#e84593a20a572d87b10661fbd8820643cdd52fd9"
4855+
integrity sha512-G7DJwV6+7OJKCzZUGWpgobkL8X+CODwpP0CUdzZpoq2eih8muWOeFMXfe+gGIktcjUyaXFGgDLRe5yXo+njvVg==
4856+
48524857
glob-parent@^3.1.0:
48534858
version "3.1.0"
48544859
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
@@ -10485,6 +10490,13 @@ vue-eslint-parser@^7.0.0:
1048510490
esquery "^1.0.1"
1048610491
lodash "^4.17.15"
1048710492

10493+
vue-github-button@^1.2.0:
10494+
version "1.2.0"
10495+
resolved "https://registry.yarnpkg.com/vue-github-button/-/vue-github-button-1.2.0.tgz#5624a2807b16bdac61589f55503b8a492d2a9d5b"
10496+
integrity sha512-lvGrbQnHWX8bYovtBFz5uSgtbM+glXXQQq5VR79YDsZ+Fh5DBpLR+Ws5YLz9eSA+gNGi3xnXKjZDbUeQXOYh6A==
10497+
dependencies:
10498+
github-buttons "^2.8.0"
10499+
1048810500
vue-hot-reload-api@^2.3.0:
1048910501
version "2.3.4"
1049010502
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"

0 commit comments

Comments
 (0)