fix(docs): correct versioned nav links and local dev version routing (#74)

This commit is contained in:
sudacode authored and GitHub committed 2026-05-18 01:07:17 -07:00
1 parent 6b2cb002ac
commit 799cce6991
19 files changed
+1000 -57

No files matched your search

@@ -1,6 +1,7 @@
<script setup>
import { useRoute, useData } from 'vitepress';
import { computed } from 'vue';
import { formatStatusLineFilePath } from '../status-line';
const route = useRoute();
const { page, frontmatter } = useData();
@@ -12,8 +13,7 @@ const mode = computed(() => {
});
const filePath = computed(() => {
const path = route.path;
return path === '/' ? 'index.md' : `${path.replace(/^\//, '')}.md`;
return formatStatusLineFilePath(route.path);
});
const section = computed(() => {