-
-
Notifications
You must be signed in to change notification settings - Fork 80
📝 docs: Fix invalid links in the docs #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Reviewer's GuideFixed invalid links in documentation by updating apiHeader URL templates and aligning frontmatter metadata across component and hook docs. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
👍 @iaosee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @iaosee - I've reviewed your changes - here's some feedback:
- Consider extending your docs generator to infer
atomId
from the file path instead of manually adding it to each Markdown file to reduce repetition and typos. - Since you’ve changed
docUrl
andsourceUrl
to point at directories rather than specific index files, make sure the docs plugin can resolve directory entries and fall back toindex.md
/index.tsx
to prevent broken links.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider extending your docs generator to infer `atomId` from the file path instead of manually adding it to each Markdown file to reduce repetition and typos.
- Since you’ve changed `docUrl` and `sourceUrl` to point at directories rather than specific index files, make sure the docs plugin can resolve directory entries and fall back to `index.md`/`index.tsx` to prevent broken links.
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
commit: |
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
All the APIHeader links are invalid above the Demo.
📝 补充信息 | Additional Information
Summary by Sourcery
Fix invalid API documentation links across the site by updating the API header configuration and correcting frontmatter in React component docs.
Documentation:
index.md
andindex.tsx
suffixes fromdocUrl
andsourceUrl
in the site config’s API header.atomId
fields and correct package names from@lobehub/tts/react
to@lobehub/tts
in React component markdown files.