Skip to content

Commit a03de1b

Browse files
authored
Refactor sidebar configuration to TypeScript and remove JSON files (facebook#4386)
1 parent e34502f commit a03de1b

File tree

9 files changed

+395
-387
lines changed

9 files changed

+395
-387
lines changed

website/docusaurus.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const config: Config = {
7474
{
7575
docs: {
7676
path: '../docs',
77-
sidebarPath: require.resolve('./sidebars.json'),
77+
sidebarPath: require.resolve('./sidebars'),
7878
editCurrentVersion: true,
7979
onlyIncludeVersions: isDeployPreview
8080
? ['current', ...versions.slice(0, 2)]
@@ -125,7 +125,7 @@ const config: Config = {
125125
id: 'architecture',
126126
path: 'architecture',
127127
routeBasePath: '/architecture',
128-
sidebarPath: require.resolve('./sidebarsArchitecture.json'),
128+
sidebarPath: require.resolve('./sidebarsArchitecture'),
129129
...commonDocsOptions,
130130
},
131131
],
@@ -136,7 +136,7 @@ const config: Config = {
136136
id: 'contributing',
137137
path: 'contributing',
138138
routeBasePath: '/contributing',
139-
sidebarPath: require.resolve('./sidebarsContributing.json'),
139+
sidebarPath: require.resolve('./sidebarsContributing'),
140140
...commonDocsOptions,
141141
},
142142
],
@@ -147,7 +147,7 @@ const config: Config = {
147147
id: 'community',
148148
path: 'community',
149149
routeBasePath: '/community',
150-
sidebarPath: require.resolve('./sidebarsCommunity.json'),
150+
sidebarPath: require.resolve('./sidebarsCommunity'),
151151
...commonDocsOptions,
152152
},
153153
],

website/sidebars.json

Lines changed: 0 additions & 306 deletions
This file was deleted.

0 commit comments

Comments
 (0)