Repository navigation
Expand file tree
/
Copy pathdocusite.config.ts
More file actions
94 lines (93 loc) 路 2.74 KB
/
Copy pathdocusite.config.ts
File metadata and controls
94 lines (93 loc) 路 2.74 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import { defineConfig } from 'docusite';
export default defineConfig({
packageJsonPath: '.',
base: `/@{packageJson.name}/`,
title: '@{packageJson.name}',
description: '@{packageJson.description}',
search: 'local',
changelog: {
src: './CHANGELOG.md',
},
github: 'https://github.com/@{packageJson.author}/@{packageJson.name}',
colors: {
light: ['#ff745b', '#0066f6', '#fb581f'],
dark: ['#ffae77', '#3c8dff', '#fb681f'],
},
logos: {
main: '/public/logo.png',
banner: '/public/banner.png',
},
nav: [
{ text: 'Home', link: '/' },
{ text: 'Introduction', link: '/introduction/getting-started' },
],
sidebar: [
{
text: 'Introduction',
items: [
{ text: 'Getting started', link: '/introduction/getting-started' },
],
},
{
text: 'Core API',
items: [
{ text: 'Routes', link: '/core/Route' },
{ text: 'Virtual Routes', link: '/core/VirtualRoute' },
{ text: 'Router', link: '/core/Router' },
{ text: 'groupRoutes', link: '/core/groupRoutes' },
{ text: 'isRouteEntity', link: '/core/isRouteEntity' },
{ text: 'routeConfig', link: '/core/routeConfig' },
{ text: 'History', link: '/core/history' },
{ text: 'Query', link: '/core/query' },
],
},
{
text: 'React',
items: [
{ text: 'Link', link: '/react/Link' },
{ text: 'RouteView', link: '/react/RouteView' },
{ text: 'RouteViewGroup', link: '/react/RouteViewGroup' },
// { text: 'RouteGroupView', link: '/react/RouteGroupView' },
],
},
{
text: 'mobx-view-model',
items: [{ text: 'RouteViewModel', link: '/view-model/RouteViewModel' }],
},
{
text: 'Recipes',
items: [
{ text: 'Routing declarations', link: '/recipes/routing-declarations' },
{ text: 'Modal routes', link: '/recipes/modal-routes' },
{ text: 'Memory routing', link: '/recipes/memory-routing' },
{ text: 'Not Found routing', link: '/recipes/not-found-routing' },
{ text: 'Hash routing', link: '/recipes/hash-routing' },
{ text: 'Protected routes', link: '/recipes/protected-routes' },
{ text: 'Rest path params', link: '/recipes/rest-path-params' },
],
},
{
text: 'Other 馃浉',
link: '/other/project-examples',
items: [{ text: 'Project examples', link: '/other/project-examples' }],
},
{
text: 'Errors 馃毃',
items: [
{
text: '#1: Route path compilation failed',
link: '/errors/1',
},
],
},
{
text: 'Warnings 鈿狅笍',
items: [
{
text: '#1: RouteGroup.open() cannot navigate',
link: '/warnings/1',
},
],
},
],
});