File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/docusaurus-plugin-openapi-docs/src Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ description: "{{{frontMatter.description}}}"
164
164
sidebar_label: Introduction
165
165
{{/api}}
166
166
{{#api}}
167
- sidebar_label: {{{title}}}
167
+ sidebar_label: " {{{title}}}"
168
168
{{/api}}
169
169
{{^api}}
170
170
sidebar_position: 0
@@ -191,7 +191,7 @@ info_path: {{{infoPath}}}
191
191
id: {{{id}}}
192
192
title: "{{{title}}}"
193
193
description: "{{{frontMatter.description}}}"
194
- sidebar_label: {{{title}}}
194
+ sidebar_label: " {{{title}}}"
195
195
hide_title: true
196
196
custom_edit_url: null
197
197
---
Original file line number Diff line number Diff line change @@ -131,7 +131,9 @@ function createItems(
131
131
type : "info" ,
132
132
id : infoId ,
133
133
unversionedId : infoId ,
134
- title : openapiData . info . title ,
134
+ title : openapiData . info . title
135
+ ? openapiData . info . title . replace ( / ( (?: ^ | [ ^ \\ ] ) (?: \\ { 2 } ) * ) " / g, "$1'" )
136
+ : "" ,
135
137
description : openapiData . info . description
136
138
? openapiData . info . description . replace (
137
139
/ ( (?: ^ | [ ^ \\ ] ) (?: \\ { 2 } ) * ) " / g,
@@ -237,7 +239,7 @@ function createItems(
237
239
id : baseId ,
238
240
infoId : infoId ?? "" ,
239
241
unversionedId : baseId ,
240
- title : title ,
242
+ title : title ? title . replace ( / ( (?: ^ | [ ^ \\ ] ) (?: \\ { 2 } ) * ) " / g , "$1'" ) : "" ,
241
243
description : operationObject . description
242
244
? operationObject . description . replace (
243
245
/ ( (?: ^ | [ ^ \\ ] ) (?: \\ { 2 } ) * ) " / g,
You can’t perform that action at this time.
0 commit comments