diff --git a/packages/docusaurus-plugin-openapi-docs/src/index.ts b/packages/docusaurus-plugin-openapi-docs/src/index.ts index bf65fe308..c68e48e8e 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/index.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/index.ts @@ -29,7 +29,8 @@ export function getDocsPluginConfig( ): Object | undefined { // eslint-disable-next-line array-callback-return const filteredConfig = presetsPlugins.filter((data) => { - if (data[0] === pluginId) { + // Search presets + if (data[0].endsWith(pluginId)) { return data[1]; } @@ -43,7 +44,7 @@ export function getDocsPluginConfig( })[0]; if (filteredConfig) { // Search presets, e.g. "classic" - if (filteredConfig[0] === pluginId) { + if (filteredConfig[0].endsWith(pluginId)) { return filteredConfig[1].docs; }