We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8653abd commit b5b190dCopy full SHA for b5b190d
apps/developer-hub/scripts/generate-docs.ts
@@ -11,7 +11,7 @@ export async function generateDocs() {
11
per: "operation",
12
name: (output, document) => {
13
// Extract product name from the OpenAPI document info
14
- const productName = getProductName(document.info.title || "unknown");
+ const productName = getProductName(document.info.title);
15
16
if (output.type === "operation") {
17
const operation =
@@ -36,7 +36,7 @@ export async function generateDocs() {
36
});
37
}
38
39
-function getProductName(title: string): string {
+function getProductName(title: string) {
40
// Match the title to a product name
41
const titleLower = title.toLowerCase();
42
for (const [name] of Object.entries(products)) {
0 commit comments