Repository navigation
docs: replace README banner with brand-consistent light and dark artwork - #169
Conversation
The old banner (.github/assets/python.png, 549 KB) did not match the current brand. Replace it with SVG banners built from the official wordmark (fishaudio/docs branding/), the Onest type used on fish.audio, the landing-page painting, and a waveform drawn from this SDK's own TTS output. The README now switches between light and dark versions with <picture>; PyPI drops <source> and shows the light version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the theme-aware SVG banner update.
No open issues 🎉
What changed in this PR
Replaces the README's legacy PNG banner with brand-consistent SVG artwork that adapts to light and dark themes.
Changes:
- Updates
README.mdto use theme-aware banner selection with a light fallback. - Adds a dark SVG banner with embedded artwork, outlined branding, and waveform visualization.
- Reduces banner asset size compared with the previous PNG.
| File | Description |
|---|---|
| README.md | Switches the README banner to light and dark theme-aware SVG assets. |
| .github/assets/banner-dark.svg | Adds the dark-theme branded banner artwork with embedded imagery, outlined text, and waveform visualization. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 409bf53cc7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fishaudio/fish-audio-python/refs/heads/main/.github/assets/banner-dark.svg"> | ||
| <img alt="Fish Audio Python SDK" src="https://raw.githubusercontent.com/fishaudio/fish-audio-python/refs/heads/main/.github/assets/banner-light.svg"> |
There was a problem hiding this comment.
Preserve MDX compatibility in the exported banner markup
When the documentation workflow next runs on main, pyproject.toml uses this README as the generated index, and scripts/copy_docs.py copies that index into api-reference/sdk/python/overview.mdx with only frontmatter added. The new <source> and <img> tags survive that export unchanged, but MDX requires these JSX elements to be self-closing; the generated overview therefore fails MDX parsing at </picture>. Close both void elements with />, or normalize them during export, so the GitHub banner does not break the downstream documentation update.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 412500e: <source> and <img> are self-closed, which GitHub and PyPI render the same and MDX accepts. Applied to the Go, TypeScript and n8n banner PRs too for consistency.
|  | ||
| <picture> | ||
| <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fishaudio/fish-audio-python/refs/heads/main/.github/assets/banner-dark.svg"> | ||
| <img alt="Fish Audio Python SDK" src="https://raw.githubusercontent.com/fishaudio/fish-audio-python/refs/heads/main/.github/assets/banner-light.svg"> |
There was a problem hiding this comment.
Retain the legacy banner URL for published package descriptions
For published packages built from the previous README, the stored PyPI description still points to refs/heads/main/.github/assets/python.png, because pyproject.toml embeds README.md as package metadata. This commit deletes that PNG, and the repository-wide asset/reference search finds no replacement at its old path, so those live descriptions acquire a broken banner as soon as the deletion reaches main. Updating this README does not update previously published metadata; retain an asset at the legacy URL while using the new SVGs here.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 412500e. .github/assets/python.png is kept at the same path, now as a 1280x320 render of the new light banner (290 KB, down from 549 KB), so already-published package pages show the new banner instead of a broken image. The README itself uses the SVGs. Same for go.png and n8n.png in their PRs.
Close the <source> and <img> void elements so the README stays valid when it is consumed as MDX. Restore .github/assets/python.png as a 1280x320 render of the new light banner. Already-published package pages still reference that URL, so they now show the new banner instead of a broken image. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
abersheeran
left a comment
There was a problem hiding this comment.
Reviewed the light and dark README banners and checked the asset references and markup. The existing PNG path is preserved for older published descriptions.
Why
The README banner (
.github/assets/python.png, 549 KB) doesn't match the current brand. Replacing it, not removing it.What
<picture>to follow the GitHub theme.fishaudio/docsbranding/, Onest (the fish.audio typeface), and the fish.audio landing-page painting. The waveform is the real loudness envelope of this SDK's own TTS output.<source>, so it shows the light version.Before / after
Checked: both SVGs load and render from
raw.githubusercontent.com, embedded painting included.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.