docs-hn/.vitepress/config.mts

52 lines
1.8 KiB
TypeScript

import {defineConfig} from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
srcDir: './docs',
lang: 'zh-Hans',
title: "湖湘人文",
description: "湖湘人文",
head: [
[
'script',
{},
`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W3NL9V');`
]
],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{text: '主页', link: '/'},
{text: 'iSharkFly', link: 'https://www.isharkfly.com'}
],
sidebar: [
{
text: '',
items: [
{
text: '湘南地区村落',
collapsed: true,
items: [
{text: '大皮口村', link: '/yong-zhou/ling-ling/da-pi-kou-cun/'},
{text: '芬香村', link: '/yong-zhou/ling-ling/fen-xiang-cun/'},
{text: '毛坪里村', link: '/yong-zhou/ling-ling/mao-ping-li-cun/'},
{text: '塘付村', link: '/yong-zhou/ling-ling/tang-fu-cun/'},
{text: '赵家湾村', link: '/yong-zhou/ling-ling/zhao-jia-wan-cun/'},
]
},
{text: '短文', link: '/api-examples'}
]
}
],
socialLinks: [
{icon: 'github', link: 'https://src.isharkfly.com/iSharkFly-Cn/docs-hn.git'}
]
}
})