Skip to content

Commit d9ce99c

Browse files
committed
Use VersionDropdown
1 parent 6b515b6 commit d9ce99c

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start": "next start"
1111
},
1212
"dependencies": {
13-
"@theguild/components": "^7.4.0",
13+
"@theguild/components": "^7.5.0",
1414
"next": "^15.0.0",
1515
"next-sitemap": "^4.2.3",
1616
"react": "^19.0.0",

website/theme.config.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
PencilIcon,
1414
PRODUCTS,
1515
useTheme,
16+
VersionDropdown,
1617
} from '@theguild/components';
1718
import favicon from './public/favicon.svg';
1819

@@ -87,7 +88,16 @@ export default defineConfig({
8788
<span className="text-2xl font-medium tracking-[-0.16px]">{PRODUCTS.MESH.name}</span>
8889
</Anchor>
8990
}
90-
/>
91+
>
92+
<VersionDropdown
93+
chevronPosition="left"
94+
currentVersion={route.includes('/docs') ? '0.x' : '1.x'}
95+
versions={[
96+
{ label: 'Mesh 0.x docs', href: '/docs', value: '0.x' },
97+
{ label: 'Mesh 1.x docs', href: '/v1', value: '1.x' },
98+
]}
99+
/>
100+
</HiveNavigation>
91101
);
92102
},
93103
},

yarn.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9992,12 +9992,12 @@ __metadata:
99929992
languageName: node
99939993
linkType: hard
99949994

9995-
"@next/bundle-analyzer@npm:15.0.4":
9996-
version: 15.0.4
9997-
resolution: "@next/bundle-analyzer@npm:15.0.4"
9995+
"@next/bundle-analyzer@npm:15.1.0":
9996+
version: 15.1.0
9997+
resolution: "@next/bundle-analyzer@npm:15.1.0"
99989998
dependencies:
99999999
webpack-bundle-analyzer: "npm:4.10.1"
10000-
checksum: 10c0/cbeddac527697faee19de87a84ff2b2a3a9986562ef4986b255c219d51eb78277350a63219472eaf6754183c2c9e8208139cbb2949d9c5aed7a37b07893554a2
10000+
checksum: 10c0/6a71ecbc295b86b431d8be860645d590740095207e7240d37db7585b8bb638406e58d3409a55efb5132723eec2a0ba6bd6011186058a54a10e3f559e05d1be1d
1000110001
languageName: node
1000210002
linkType: hard
1000310003

@@ -12309,12 +12309,12 @@ __metadata:
1230912309
languageName: node
1231012310
linkType: hard
1231112311

12312-
"@theguild/components@npm:^7.4.0":
12313-
version: 7.4.0
12314-
resolution: "@theguild/components@npm:7.4.0"
12312+
"@theguild/components@npm:^7.5.0":
12313+
version: 7.5.0
12314+
resolution: "@theguild/components@npm:7.5.0"
1231512315
dependencies:
1231612316
"@giscus/react": "npm:3.0.0"
12317-
"@next/bundle-analyzer": "npm:15.0.4"
12317+
"@next/bundle-analyzer": "npm:15.1.0"
1231812318
"@radix-ui/react-navigation-menu": "npm:^1.2.0"
1231912319
clsx: "npm:2.1.1"
1232012320
fuzzy: "npm:0.1.3"
@@ -12327,11 +12327,11 @@ __metadata:
1232712327
semver: "npm:^7.3.8"
1232812328
tailwind-merge: "npm:^2.5.2"
1232912329
peerDependencies:
12330-
"@theguild/tailwind-config": 0.6.1
12330+
"@theguild/tailwind-config": 0.6.2
1233112331
next: ^13 || ^14 || ^15.0.0
1233212332
react: ^18.2.0
1233312333
react-dom: ^18.2.0
12334-
checksum: 10c0/2a31064918369bc7a46b03bddee9e4d235e3df4300f676ebc4e5c914aeacfe6ba2a90575474dbc85e8a9901b55834fae0ca398c597dc618aaff5c43f952900c3
12334+
checksum: 10c0/ac1b6bc55e8b6e444caa608ff68eba1a13afd1d1bfe4bd26be8bfc077a49f4ff57cc8ec2a644d419439a7cc2c61098c02547b96b02c779a3dfd301572781e9ce
1233512335
languageName: node
1233612336
linkType: hard
1233712337

@@ -36794,7 +36794,7 @@ __metadata:
3679436794
version: 0.0.0-use.local
3679536795
resolution: "website@workspace:website"
3679636796
dependencies:
36797-
"@theguild/components": "npm:^7.4.0"
36797+
"@theguild/components": "npm:^7.5.0"
3679836798
"@theguild/tailwind-config": "npm:0.6.2"
3679936799
"@types/node": "npm:22.10.2"
3680036800
"@types/react": "npm:19.0.2"

0 commit comments

Comments
 (0)