docs(@vant/use): add vuepress

This commit is contained in:
chenjiahan
2020-10-04 19:42:44 +08:00
parent 79493de49d
commit ca860fda5f
14 changed files with 7349 additions and 112 deletions

View File

@@ -0,0 +1,33 @@
module.exports = {
base: '/vant-use/',
title: 'Vant Use',
dest: 'dist',
head: [['link', { rel: 'icon', href: 'https://img.yzcdn.cn/vant/logo.png' }]],
themeConfig: {
nav: [
{
text: 'Github',
link: 'https://github.com/youzan/vant/tree/next/packages/vant-use',
},
],
sidebarDepth: 0,
sidebar: [
{
title: 'State',
collapsable: false,
// children: ['/src/useToggle/'],
},
{
title: 'DOM',
collapsable: false,
children: [
'/src/useClickAway/',
'/src/useEventListener/',
'/src/usePageVisibility/',
'/src/useScrollParent/',
// '/src/useWindowSize/',
],
},
],
},
};