Skip to content

docs: replace README banner with brand-consistent light and dark artwork - #169

Merged
abersheeran merged 2 commits into
fishaudio:mainfrom
lumpinif:docs/readme-banner
Nov 24, 2026
Merged

abersheeran merged 2 commits into
fishaudio:mainfrom
lumpinif:docs/readme-banner

Conversation

@lumpinif

@lumpinif lumpinif commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Why

The README banner (.github/assets/python.png, 549 KB) doesn't match the current brand. Replacing it, not removing it.

What

  • Two SVG banners, light and dark, switched with <picture> to follow the GitHub theme.
  • Built from brand sources: the official wordmark from fishaudio/docs branding/, 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.
  • Text is outlined to paths, so it renders the same everywhere. 111 KB (light) and 90 KB (dark), down from 549 KB.
  • PyPI strips <source>, so it shows the light version.

Before / after

Before After (light) After (dark)

Checked: both SVGs load and render from raw.githubusercontent.com, embedded painting included.

🤖 Generated with Claude Code


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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>
Copilot AI lite review requested due to automatic review settings November 23, 2026 09:40
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c5bba6b8-1f98-46cf-bb25-85723eff3e79
Commits

Reviewing files that changed from the base of the PR and between 30d2713 and 412500e.

Files ignored due to path filters: 3

  • .github/assets/banner-dark.svg is excluded by !**/*.svg
  • .github/assets/banner-light.svg is excluded by !**/*.svg
  • .github/assets/python.png is excluded by !**/*.png
Files selected for processing: 1

  • README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T09:44:41.347512Z 409bf53 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.md to 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

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread README.md Outdated
Comment on lines +2 to +3
<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">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread README.md Outdated
![python.png](https://raw.githubusercontent.com/fishaudio/fish-audio-python/refs/heads/main/.github/assets/python.png)
<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">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 abersheeran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the light and dark README banners and checked the asset references and markup. The existing PNG path is preserved for older published descriptions.

@abersheeran
abersheeran merged commit 43660b3 into fishaudio:main Nov 24, 2026
15 checks passed
@lumpinif
lumpinif deleted the docs/readme-banner branch November 30, 2026 11:37
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.

3 participants