Skip to content

Commit c97ca82

Browse files
committed
Use VersionDropdown
1 parent 6b515b6 commit c97ca82

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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
},

0 commit comments

Comments
 (0)