8000 :memo: docs: Fix invalid links in the docs by iaosee · Pull Request #54 · lobehub/lobe-tts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

📝 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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iaosee
Copy link
Contributor
@iaosee iaosee commented Jun 23, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | 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:

  • Remove index.md and index.tsx suffixes from docUrl and sourceUrl in the site config’s API header.
  • Add missing atomId fields and correct package names from @lobehub/tts/react to @lobehub/tts in React component markdown files.

Copy link
sourcery-ai bot commented Jun 23, 2025

Reviewer's Guide

Fixed invalid links in documentation by updating apiHeader URL templates and aligning frontmatter metadata across component and hook docs.

File-Level Changes

Change Details Files
Corrected apiHeader URL templates
  • Removed /index.md from docUrl template
  • Removed /index.tsx from sourceUrl template
.dumirc.ts
Updated component docs frontmatter metadata
  • Added atomId entries for React components and hooks
  • Changed pkg from @lobehub/tts/react to @lobehub/tts
src/react/AudioPlayer/index.md
src/react/AudioVisualizer/index.md
src/react/useAudioRecorder/index.md
src/react/useEdgeSpeech/index.md
src/react/useMicrosoftSpeech/index.md
src/react/useOpenAISTT/index.md
src/react/useOpenAITTS/index.md
src/react/useSpeechRecognition/index.md
src/react/useSpeechSynthes/index.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@lobehubbot
Copy link
Member

👍 @iaosee


Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link
@sourcery-ai sourcery-ai bot left a 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 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.
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.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
pkg-pr-new bot commented Jun 23, 2025

Open in StackBlitz

npm i https://pkg.pr.new/lobehub/lobe-tts/@lobehub/tts@54

commit: 5d0f377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0