feat(website): display version in header and load from page-agent package

This commit is contained in:
Simon
2026-01-14 17:42:18 +08:00
parent 7d45bf6598
commit 9a66d5205f
3 changed files with 12 additions and 0 deletions

View File

@@ -84,6 +84,9 @@ export default function Header() {
role="navigation"
aria-label={t('header.nav_docs')}
>
<span className="text-xs font-mono text-gray-400 dark:text-gray-500 tabular-nums">
v{import.meta.env.VERSION}
</span>
<Link
href="/docs/introduction/overview"
className="flex items-center gap-1.5 text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors duration-200"