Skip to content

Commit 8c1ecdc

Browse files
committed
fix frontmatter issues with autogenerated api docs
1 parent c510680 commit 8c1ecdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clickhouseapi.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ function groupEndpointsByPrefix(spec) {
4040
}
4141

4242
function generateDocusaurusMarkdown(spec, groupedEndpoints, prefix) {
43-
let markdownContent = `---\nsidebar_label: ${prefix.charAt(0).toUpperCase() + prefix.slice(1)}\n`;
44-
markdownContent += `title: ${prefix.charAt(0).toUpperCase() + prefix.slice(1)}\n---\n`;
43+
let markdownContent = `---\nsidebar_label: '${prefix.charAt(0).toUpperCase() + prefix.slice(1)}'\n`;
44+
markdownContent += `title: '${prefix.charAt(0).toUpperCase() + prefix.slice(1)}'\n`;
45+
markdownContent += `slug: /cloud/manage/api/${prefix}-api-reference\n`;
46+
markdownContent += `description: 'Cloud API reference documentation for ${prefix}'\n---\n`;
4547

4648
for (const path in groupedEndpoints) {
4749
for (const method in groupedEndpoints[path]) {

0 commit comments

Comments
 (0)