From e29be37ef5e74a4b062ef16bcac47c0507860533 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Fri, 29 Apr 2022 10:51:14 +0200 Subject: [PATCH] add swizzle config for NavbarItem/ComponentTypes --- packages/docusaurus-theme-classic/src/getSwizzleConfig.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts b/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts index 9e73ef9a17e4..0c34618bdc32 100644 --- a/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts +++ b/packages/docusaurus-theme-classic/src/getSwizzleConfig.ts @@ -206,6 +206,14 @@ export default function getSwizzleConfig(): SwizzleConfig { description: 'A component wrapping all MDX content and providing the MDXComponents to the MDX context', }, + 'NavbarItem/ComponentTypes': { + actions: { + eject: 'safe', + wrap: 'forbidden', + }, + description: + 'The Navbar item components mapping. Can be ejected to add custom navbar item types. See https://github.com/facebook/docusaurus/issues/7227.', + }, // TODO should probably not even appear here 'NavbarItem/utils': { actions: {