fix(docs): use absolute API doc links in developer docs#38649
fix(docs): use absolute API doc links in developer docs#38649hainenber merged 3 commits intoapache:masterfrom
Conversation
|
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR). Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Sequence DiagramThis PR updates endpoint links in the developer API documentation from relative paths to absolute docs paths. The new flow ensures clicking any endpoint link from nested developer docs routes always opens the correct API reference page. sequenceDiagram
participant Reader
participant DeveloperDocsPage
participant DocsRouter
participant ApiReferencePage
Reader->>DeveloperDocsPage: Open developer API docs from nested route
Reader->>DeveloperDocsPage: Click an endpoint link
DeveloperDocsPage->>DocsRouter: Resolve link as absolute docs api path
DocsRouter->>ApiReferencePage: Navigate to endpoint documentation
ApiReferencePage-->>Reader: Display correct API reference page
Generated by CodeAnt AI |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@maintainers I’ve opened this docs fix for #38590. The change is limited to |
|
@Mayankaggarwal8055 thanks for opening a PR to address the linked issue! Unfortunately, |
|
btw, you'll need to change the absolute path in the script used to generate the |
|
@hainenber Perfect catch! Fixing now: ✅ docs/developer_docs/api.mdx: Pushing corrected paths in 3 minutes. Thanks! 🙏 |
- docs/developer_docs/api.mdx: /docs/api → /developer-docs/api (242 links) - docs/scripts/generate-api-index.mjs: fix future API generation - Addresses @hainenber review comments Fixes apache#38590
|
@hainenber Fixed! Pushed correct paths: ✅ docs/developer_docs/api.mdx: Netlify preview will update shortly. Thanks! 🙏 |
|
You are not pushing any changes to |
|
@hainenber |
hainenber
left a comment
There was a problem hiding this comment.
LGTM after verifying on Netlify preview app. Thank you.
|
Bito Automatic Review Skipped – PR Already Merged |
(cherry picked from commit cc066b3)
User description
Fixes #38590
This updates the API links in
docs/developer_docs/api.mdxfrom relative./api/...paths to absolute/docs/api/...paths.When the developer docs page is opened from a nested URL like
/developer-docs/api/, the relative links resolve incorrectly and add an extraapipath segment. Using absolute paths ensures the endpoint documentation links resolve correctly.Changes
docs/developer_docs/api.mdx./api/...links with absolute/docs/api/...linksTesting
docs/developer_docs/api.mdxCodeAnt-AI Description
Fix developer docs API links to use absolute /developer-docs/api/ paths
What Changed
Impact
✅ No broken developer-doc links from nested pages✅ Correct navigation to API reference pages✅ Fewer 404s when following API links💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.