|
|
@ -1,16 +1,13 @@
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { computed } from 'vue'
|
|
|
|
import { useRoute } from 'vitepress'
|
|
|
|
import { useData } from 'vitepress'
|
|
|
|
|
|
|
|
import { useSidebar } from '../composables/sidebar'
|
|
|
|
import { useSidebar } from '../composables/sidebar'
|
|
|
|
import VPDocAside from './VPDocAside.vue'
|
|
|
|
import VPDocAside from './VPDocAside.vue'
|
|
|
|
import VPDocFooter from './VPDocFooter.vue'
|
|
|
|
import VPDocFooter from './VPDocFooter.vue'
|
|
|
|
|
|
|
|
|
|
|
|
const { page } = useData()
|
|
|
|
const { path } = useRoute()
|
|
|
|
const { hasSidebar } = useSidebar()
|
|
|
|
const { hasSidebar } = useSidebar()
|
|
|
|
|
|
|
|
|
|
|
|
const pageName = computed(() => {
|
|
|
|
const pageName = path.replace(/[./]+/g, '_').replace(/_html$/, '')
|
|
|
|
return page.value.relativePath.slice(0, page.value.relativePath.indexOf('/'))
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|