Skip to content

Commit

Permalink
docs: update theme version
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Oct 30, 2024
1 parent 381d854 commit e497cd9
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
5 changes: 3 additions & 2 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export default defineConfig({
// ['link', { rel: 'icon', type: 'image/svg+xml', href: '/tsed.svg' }],
["link", {rel: "icon", type: "image/png", href: "/tsed-og.png"}],
["link", {rel: "shortcut icon", href: "/favicon.ico", type: "image/x-icon"}],
["link", {rel: "icon", href: "/icon512_maskable.png", type: "apple-touch-icon"}],
["link", {rel: "icon", href: "/icon512_maskable.png", type: "image/x-icon", sizes: "512x512"}],
["link", {rel: "icon", href: "/favicon-32x32.png", type: "image/png", sizes: "32x32"}],
["link", {rel: "icon", href: "/favicon-16x16.png", type: "image/png", sizes: "16x16"}],
["link", {rel: "icon", href: "/apple-touch-icon.png", type: "image/x-icon", sizes: "180x180"}],
["meta", {name: "theme-color", content: "#5f67ee"}],
["meta", {property: "og:type", content: "website"}],
["meta", {property: "og:locale", content: "en"}],
Expand Down
26 changes: 25 additions & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
// https://vitepress.dev/guide/custom-theme
import {DefaultTheme} from "@tsed/vitepress-theme";
import type {Theme} from "vitepress";
import {h} from "vue";
import HomeBanner from "@tsed/vitepress-theme/organisms/home/HomeBanner.vue";
import HomePartners from "@tsed/vitepress-theme/organisms/home/HomePartners.vue";
import HomeBody from "@tsed/vitepress-theme/organisms/home/HomeBody.vue";
import HomeTabsTerminal from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabsTerminal.vue";
import HomeTabTerminalNpm from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalNpm.vue";
import HomeTabTerminalYarn from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalYarn.vue";
import HomeTabTerminalPnpm from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalPnpm.vue";
import HomeTabTerminalBun from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalBun.vue";

export default {
extends: DefaultTheme,
enhanceApp() {}
Layout: () => {
return h(DefaultTheme.Layout, null, {
"home-hero-image": () =>
h(HomeBanner, null, {
default: () =>
h(HomeTabsTerminal, null, {
npm: () => h(HomeTabTerminalNpm),
yarn: () => h(HomeTabTerminalYarn),
pnpm: () => h(HomeTabTerminalPnpm),
bun: () => h(HomeTabTerminalBun)
})
}),
"home-features-before": () => h(HomePartners),
"home-features-after": () => h(HomeBody)
});
}
} satisfies Theme;
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"docs:preview": "vitepress preview ."
},
"dependencies": {
"@tsed/vitepress-theme": "1.2.2",
"@tsed/vitepress-theme": "1.3.0",
"@vueuse/core": "10.11.0",
"axios": "1.7.7",
"lodash": "4.17.21",
Expand Down
File renamed without changes
10 changes: 5 additions & 5 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@tsed/docs-new@workspace:."
dependencies:
"@tsed/vitepress-theme": "npm:1.2.2"
"@tsed/vitepress-theme": "npm:1.3.0"
"@vueuse/core": "npm:10.11.0"
autoprefixer: "npm:^10.4.19"
axios: "npm:1.7.7"
Expand All @@ -746,14 +746,14 @@ __metadata:
languageName: unknown
linkType: soft

"@tsed/vitepress-theme@npm:1.2.2":
version: 1.2.2
resolution: "@tsed/vitepress-theme@npm:1.2.2"
"@tsed/vitepress-theme@npm:1.3.0":
version: 1.3.0
resolution: "@tsed/vitepress-theme@npm:1.3.0"
dependencies:
"@vueuse/core": "npm:10.11.0"
axios: "npm:1.7.7"
lucide-vue-next: "npm:^0.436.0"
checksum: 10/65354dfe4423e7023bdc2ee2b4223e93deeaf91dafb1a16dccf74243f0123da560faa6117d53108fff9e0ded7a22285798c99990d8151c53958ea1c0100f83bd
checksum: 10/a74917c0d471dad97d165d3e1c38fc096a2291a3d4e73a42321e05757750600e7d17d4cb49e4b36e71a4239fe37e3e54de6123d63926e5ed9e66d850c2028ec7
languageName: node
linkType: hard

Expand Down

0 comments on commit e497cd9

Please sign in to comment.