mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
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:
+2
-3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user