hainenber commented on PR #38649:
URL: https://github.com/apache/superset/pull/38649#issuecomment-4060656776
btw, you'll need to change the absolute path in the script used to generate
the `api.mdx` as well, for future APIs.
```
diff --git a/docs/scripts/generate-api-index.mjs
b/docs/scripts/generate-api-index.mjs
index e5f6a7e693..2fd9fddac6 100644
--- a/docs/scripts/generate-api-index.mjs
+++ b/docs/scripts/generate-api-index.mjs
@@ -202,7 +202,7 @@ curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \\
mdx += `| Method | Endpoint | Description |\n`;
mdx += `|--------|----------|-------------|\n`;
for (const ep of tagEndpoints['Security']) {
- mdx += `| \`${ep.method}\` | [${ep.summary}](./api/${ep.slug}) |
\`${ep.path}\` |\n`;
+ mdx += `| \`${ep.method}\` |
[${ep.summary}](/developer-docs/api/${ep.slug}) | \`${ep.path}\` |\n`;
}
mdx += '\n';
renderedTags.add('Security');
@@ -229,7 +229,7 @@ curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \\
mdx += `|--------|----------|-------------|\n`;
for (const ep of endpoints) {
- mdx += `| \`${ep.method}\` | [${ep.summary}](./api/${ep.slug}) |
\`${ep.path}\` |\n`;
+ mdx += `| \`${ep.method}\` |
[${ep.summary}](/developer-docs/api/${ep.slug}) | \`${ep.path}\` |\n`;
}
mdx += `\n</details>\n\n`;
@@ -252,7 +252,7 @@ curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \\
mdx += `|--------|----------|-------------|\n`;
for (const ep of endpoints) {
- mdx += `| \`${ep.method}\` | [${ep.summary}](./api/${ep.slug}) |
\`${ep.path}\` |\n`;
+ mdx += `| \`${ep.method}\` |
[${ep.summary}](/developer-docs/api/${ep.slug}) | \`${ep.path}\` |\n`;
}
mdx += `\n</details>\n\n`;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]