docusaurus-plugin-openapi-docs 0.0.0-526 → 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.
package/lib/index.js CHANGED
@@ -143,6 +143,7 @@ sidebar_class_name: "{{{api.method}}} api-method"
143
143
  {{#infoPath}}
144
144
  info_path: {{{infoPath}}}
145
145
  {{/infoPath}}
146
+ custom_edit_url: null
146
147
  ---
147
148
 
148
149
  {{{markdown}}}
@@ -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-526",
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": "d03a7ccc7f43f2fd0a9341de7fcdf223544cb61e"
71
+ "gitHead": "1d7d37e6d7af896dd62cdca42bdd54aa4ed0a944"
72
72
  }
package/src/index.ts CHANGED
@@ -182,6 +182,7 @@ sidebar_class_name: "{{{api.method}}} api-method"
182
182
  {{#infoPath}}
183
183
  info_path: {{{infoPath}}}
184
184
  {{/infoPath}}
185
+ custom_edit_url: null
185
186
  ---
186
187
 
187
188
  {{{markdown}}}
@@ -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.