From b5db8f319298a5c82b58d207e4bb2f363fe042fe Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Sat, 16 May 2026 21:14:06 +0800 Subject: [PATCH] docs: restructure README sponsor section and add pink fund button to docs Fold the sponsor call-to-action into the Contributing section as a natural bullet point instead of a standalone heavy section. Remove the large badge buttons. Keep star history chart under Contributing. Add a pink "Fund Development" button component to the docs site nav bar (left of Star on GitHub), matching the landing page style. Remove the plain-text nav link that replaced the heart icon. --- README.md | 18 +-------- apps/docs/.vitepress/config.mts | 4 -- apps/docs/.vitepress/theme/FundButton.vue | 14 +++++++ apps/docs/.vitepress/theme/Layout.vue | 2 + apps/docs/.vitepress/theme/github-stars.css | 44 ++++++++++++++++++++- 5 files changed, 59 insertions(+), 23 deletions(-) create mode 100644 apps/docs/.vitepress/theme/FundButton.vue diff --git a/README.md b/README.md index 6d62045f..e82e7b97 100644 --- a/README.md +++ b/README.md @@ -82,23 +82,7 @@ We welcome bug reports, feature ideas, and pull requests. See [CONTRIBUTING.md]( - [Open an issue](https://github.com/snapotter-hq/snapotter/issues) - [Submit a PR](CONTRIBUTING.md#code-requires-cla) - [Join Discord](https://discord.gg/hr3s7HPUsr) for help and discussion - -## Support SnapOtter - -

- If SnapOtter saves you time, money, or both, consider starring the repo or sponsoring the project.
- Stars help others discover SnapOtter. Sponsorships fund development and keep it free for everyone. -

- -

- - Star SnapOtter - -   - - Sponsor SnapOtter - -

+- [Fund development](https://github.com/sponsors/snapotter-hq) to keep SnapOtter free for everyone

diff --git a/apps/docs/.vitepress/config.mts b/apps/docs/.vitepress/config.mts index 7e9258ee..4db0d7b2 100644 --- a/apps/docs/.vitepress/config.mts +++ b/apps/docs/.vitepress/config.mts @@ -78,10 +78,6 @@ export default defineConfig({ { text: "Home", link: "/" }, { text: "Guide", link: "/guide/getting-started" }, { text: "API Reference", link: "/api/rest" }, - { - text: "Fund Development", - link: "https://github.com/sponsors/snapotter-hq", - }, { text: `v${pkg.version}`, link: "https://github.com/snapotter-hq/snapotter/releases", diff --git a/apps/docs/.vitepress/theme/FundButton.vue b/apps/docs/.vitepress/theme/FundButton.vue new file mode 100644 index 00000000..405cf3df --- /dev/null +++ b/apps/docs/.vitepress/theme/FundButton.vue @@ -0,0 +1,14 @@ + diff --git a/apps/docs/.vitepress/theme/Layout.vue b/apps/docs/.vitepress/theme/Layout.vue index cad1dc24..9976dce3 100644 --- a/apps/docs/.vitepress/theme/Layout.vue +++ b/apps/docs/.vitepress/theme/Layout.vue @@ -1,6 +1,7 @@