-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.config.mts
More file actions
31 lines (30 loc) · 924 Bytes
/
build.config.mts
File metadata and controls
31 lines (30 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { defineConfig } from '@ice/pkg';
export default defineConfig({
plugins: [
[
'@ice/pkg-plugin-docusaurus',
{
title: '@asiareal/hooks - 好用的 hooks 库',
navBarTitle: '@asiareal/hooks - 好用的 hooks 库',
path: 'packages',
exclude: ['**/node_modules/**'],
onBrokenLinks: 'warn',
sidebarItemsGenerator: async () => {
return [
{
type: 'category',
label: '基础 hooks',
items: [{ type: 'doc', id: 'base/docs/useEventListener', label: 'useEventListener' }],
},
{ type: 'doc', id: 'useIframe/docs/index', label: 'useIframe' },
];
},
pageRouteBasePath: '/',
url: 'https://asiareal.github.io',
baseUrl: '/hooks',
navBarLogo: '/hooks/img/logo.png',
favicon: '/hooks/favicon.ico',
},
],
],
});