fix: update documentation routing and simplify navigation

- Replace VitePress router with window.location for docs index redirect
- Add redirect rules for /docs and /docs/ paths to quick-start guide
- Simplify navigation by removing section anchor links
- Update all CTA buttons to link directly to /docs/ instead of home sections
- Consolidate navigation layout on both desktop and mobile views
This commit is contained in:
weishu
2026-01-01 14:23:44 +08:00
parent 4d2f91b9f5
commit 1e46bd3295
4 changed files with 16 additions and 19 deletions
+2 -3
View File
@@ -5,10 +5,9 @@ title: HAPI Documentation
<script setup>
import { onMounted } from 'vue'
import { useRouter } from 'vitepress'
import { withBase } from 'vitepress'
onMounted(() => {
const router = useRouter()
router.go('/guide/quick-start')
window.location.replace(withBase('/guide/quick-start'))
})
</script>