docusaurus-plugin-openapi-docs 0.0.0-527 → 0.0.0-528

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,7 +64,8 @@ function createItems(openapiData, sidebarOptions) {
64
64
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
65
65
  // TODO: Find a better way to handle this
66
66
  let items = [];
67
- const infoId = (0, kebabCase_1.default)(openapiData.info.title);
67
+ const infoIdSpaces = openapiData.info.title.replace(" ", "-").toLowerCase();
68
+ const infoId = (0, kebabCase_1.default)(infoIdSpaces);
68
69
  if (openapiData.info.description) {
69
70
  // Only create an info page if we have a description.
70
71
  const infoDescription = (_a = openapiData.info) === null || _a === void 0 ? void 0 : _a.description;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-527",
4
+ "version": "0.0.0-528",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -68,5 +68,5 @@
68
68
  "engines": {
69
69
  "node": ">=14"
70
70
  },
71
- "gitHead": "e56bfaf517d696cd3705579ad9f8b2180fb3e5f9"
71
+ "gitHead": "1d7d37e6d7af896dd62cdca42bdd54aa4ed0a944"
72
72
  }
@@ -84,7 +84,8 @@ function createItems(
84
84
  ): ApiMetadata[] {
85
85
  // TODO: Find a better way to handle this
86
86
  let items: PartialPage<ApiMetadata>[] = [];
87
- const infoId = kebabCase(openapiData.info.title);
87
+ const infoIdSpaces = openapiData.info.title.replace(" ", "-").toLowerCase();
88
+ const infoId = kebabCase(infoIdSpaces);
88
89
 
89
90
  if (openapiData.info.description) {
90
91
  // Only create an info page if we have a description.