From 1b80d5da5cbd2e2fdf75889b7fde2ec3840aff5e Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 19 Aug 2024 23:48:48 +0900 Subject: [PATCH] docs: add premium sponsors --- docs/.vitepress/config.ts | 4 +- .../theme/components/AsideSponsors.vue | 52 +++++++++++++++++++ docs/.vitepress/theme/index.ts | 13 ++++- docs/index.md | 2 +- docs/learn.md | 7 +++ 5 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 docs/.vitepress/theme/components/AsideSponsors.vue diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 2e936da5..673c077e 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -154,7 +154,7 @@ export default defineConfig({ link: '/learn', }, { - text: 'Forum (Sponsors only)', + text: 'Help center (Sponsors only)', link: 'https://github.com/pvtnbr/tsx/discussions', }, { @@ -222,7 +222,7 @@ export default defineConfig({ }, { icon: { - svg: '' + svg: '' }, link: '/contact' } diff --git a/docs/.vitepress/theme/components/AsideSponsors.vue b/docs/.vitepress/theme/components/AsideSponsors.vue new file mode 100644 index 00000000..58ab6cc4 --- /dev/null +++ b/docs/.vitepress/theme/components/AsideSponsors.vue @@ -0,0 +1,52 @@ + + + diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 54fbeb07..f33c6fab 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,4 +1,15 @@ +import { h } from 'vue'; import DefaultTheme from 'vitepress/theme'; +import AsideSponsors from './components/AsideSponsors.vue'; import './styles.css'; -export default DefaultTheme; \ No newline at end of file +export default { + extends: DefaultTheme, + Layout: () => h( + DefaultTheme.Layout, + null, + { + 'aside-ads-before': () => h(AsideSponsors), + }, + ), +}; diff --git a/docs/index.md b/docs/index.md index 6bffe3b7..c291fb11 100644 --- a/docs/index.md +++ b/docs/index.md @@ -153,7 +153,7 @@ Back then, _ts-node_ was the go-to tool for running TypeScript in Node.js, but i Right now, the _tsx_ project development relies on user donations, which isn't sustainable in the long run. To keep _tsx_ reliable and growing, we need funding to cover maintenance and development costs. -If your company uses _tsx_ and would like to sponsor the project, [we'd love to hear from you](/contact)! +If your company uses _tsx_ and would like to support the project, consider [sponsoring us](https://github.com/sponsors/privatenumber/sponsorships?pay_prorated=false&tier_id=388346)—in return we'll put up your logo + link! ## Sponsors diff --git a/docs/learn.md b/docs/learn.md index d12e5e2b..16767136 100644 --- a/docs/learn.md +++ b/docs/learn.md @@ -4,6 +4,13 @@ TypeScript can be difficult to get started with and _tsx_ is all about lowering Here are some great resources for your reference. +::: info + +This page is currently a work in progress. + +If you're a TypeScript educator or you know any TS courses that use tsx, [let us know](/contact)! +::: + ## Documentation - [TypeScript documentation](https://www.typescriptlang.org/docs/)