From 1641217c4375ed6d63beb91e9603a469fd5397d9 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs <93375423+prafull-opensignlabs@users.noreply.github.com> Date: Thu, 28 Aug 2025 16:21:15 +0530 Subject: [PATCH] Update docusaurus.config.js --- docs/docusaurus.config.js | 44 +++++++++++++++------------------------ 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 25fff20a3..6309578bb 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -65,34 +65,24 @@ const config = { plugins: [ [ "docusaurus-plugin-openapi-docs", - { - id: "openapi", - docsPluginId: "default", // e.g. "classic" or the plugin-content-docs id - config: { - opensign: { - // Optional: put all versions under a single route - routeBasePath: 'api/opensign', - sidebarOptions: { - groupPathsBy: 'tag', - }, - // Define your versions here - versions: { - 'v1': { - specPath: 'docs/API-docs/v1/opensign.yaml', - outputDir: 'docs/API-docs/opensign/v1', - label: 'v1', - // isLatest: false, // default - }, - 'v1.1': { - specPath: 'docs/API-docs/v1.1/opensign.yaml', - outputDir: 'docs/API-docs/opensign/v1.1', - label: 'v1.1', - isLatest: true, // makes this the default version in the UI - }, + { + id: "openapi", + docsPluginId: "default", // e.g. "classic" or the plugin-content-docs id + config: { + opensign_v1: { + // OpenAPI v1 + specPath: "docs/API-docs/v1/opensign.yaml", // your v1 spec file + outputDir: "docs/API-docs/v1", // generated mdx + sidebar.js + sidebarOptions: { groupPathsBy: "tag" }, }, - }, - }, - }, + opensign_v1_1: { + // OpenAPI v1.1 + specPath: "docs/API-docs/v1.1/opensign.yaml", // your v1.1 spec file + outputDir: "docs/API-docs/v1.1", // generated mdx + sidebar.js + sidebarOptions: { groupPathsBy: "tag" }, + } + } + } ] ], themes: ["docusaurus-theme-openapi-docs"], // exports ApiItem and ApiDemoPanel