Skip to content

Commit 9ec5e6e

Browse files
no banner on 4.5
1 parent e01e79a commit 9ec5e6e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

site/docusaurus.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ const config: Config = {
8787
'4.6': {
8888
banner: 'none', // No banner for this version
8989
},
90+
'4.5': {
91+
// No banner for 4.5 as its still actively maintained. Docusaurus doesn't allow us to set custom
92+
// text for the banner. Only option is to eject swizzle DocVersionBanner (`npm run swizzle @docusaurus/theme-classic DocVersionBanner -- --eject`)
93+
// and modify the internal rendering logic based on the version number. Cannot even add a new `banner` option without even more hackery.
94+
// Here is a relevant discussion thread: https://github.com/facebook/docusaurus/discussions/7112 if we really want this, we should look to contribute this feature.
95+
banner: 'none',
96+
},
9097
},
9198
remarkPlugins: [[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }]],
9299
},
@@ -170,7 +177,7 @@ const config: Config = {
170177
to: '/category/developers',
171178
},
172179
{
173-
label: 'Administration',
180+
label: 'Administration',
174181
to: '/administration',
175182
},
176183
],

0 commit comments

Comments
 (0)