Skip to content

Commit 71fb016

Browse files
committed
Add initial POC of combining docs sites
1 parent ce31997 commit 71fb016

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

website/docusaurus.config.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ const config: Config = {
4949
src: 'img/redux.svg'
5050
},
5151
items: [
52+
{
53+
label: 'React Redux',
54+
to: '/react-redux/introduction/getting-started',
55+
position: 'left'
56+
},
5257
{
5358
label: 'Getting Started',
5459
to: 'introduction/getting-started',
@@ -159,7 +164,7 @@ const config: Config = {
159164
href: 'https://redux.js.org/'
160165
},
161166
copyright: `Copyright © 2015–${new Date().getFullYear()} Dan Abramov and the Redux documentation authors.`
162-
},
167+
}
163168
// algolia: {
164169
// appId: 'YUQHC5OCW0',
165170
// apiKey: 'ef8f3e604a1e7ed3afa4dbaeeecfa5f2',
@@ -221,6 +226,16 @@ const config: Config = {
221226
dataDoNotTrack: true,
222227
dataCache: true
223228
} satisfies UmamiOptions
229+
],
230+
[
231+
'@docusaurus/plugin-content-docs',
232+
{
233+
id: 'react-redux',
234+
path: 'react-redux/docs',
235+
routeBasePath: 'react-redux',
236+
sidebarPath: './react-redux.sidebars.ts',
237+
include: ['{api,introduction,using-react-redux,tutorials}/*.{md,mdx}']
238+
}
224239
]
225240
]
226241
}

website/react-redux.sidebars.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs'
2+
3+
const sidebars: SidebarsConfig = {
4+
docs: [
5+
{
6+
type: 'category',
7+
label: 'Introduction',
8+
collapsed: false,
9+
items: [
10+
'introduction/getting-started',
11+
'introduction/why-use-react-redux'
12+
]
13+
}
14+
]
15+
}
16+
17+
export default sidebars

0 commit comments

Comments
 (0)