2021-01-27 10:25:07 +08:00

48 lines
1.1 KiB
JavaScript

module.exports = {
base: '/vant/vant-use/',
title: 'Vant Use',
dest: 'dist/site',
head: [
['link', { rel: 'icon', href: 'https://img01.yzcdn.cn/vant/logo.png' }],
],
patterns: ['**/*.md', '!**/node_modules'],
themeConfig: {
nav: [
{
text: 'GitHub',
link: 'https://github.com/youzan/vant/tree/dev/packages/vant-use',
},
],
sidebarDepth: 0,
sidebar: [
{
title: '介绍',
collapsable: false,
children: ['/', 'changelog'],
},
{
title: 'State',
collapsable: false,
children: ['/src/useToggle/', '/src/useCountDown/'],
},
{
title: 'DOM',
collapsable: false,
children: [
'/src/useRect/',
'/src/useClickAway/',
'/src/useEventListener/',
'/src/usePageVisibility/',
'/src/useScrollParent/',
'/src/useWindowSize/',
],
},
{
title: 'Enhanced',
collapsable: false,
children: ['/src/useRelation/'],
},
],
},
};