Skip to content

Share Fizzdoc with a friend - #89

Merged
kingrishabdugar merged 1 commit into
mainfrom
feat/share-buttons
Oct 8, 2026
Merged

kingrishabdugar merged 1 commit into
mainfrom
feat/share-buttons

Conversation

@kingrishabdugar

@kingrishabdugar kingrishabdugar commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

A share button so people can pass Fizzdoc on.

  • Header button: on phones it opens the system share sheet; on desktop a small menu with WhatsApp, X, Facebook, LinkedIn, Reddit, Telegram, email and copy link.
  • Everywhere else: the same links under the star call-out on every page, and a "Did this help? Share it with a friend" line after each result.
  • The links point at the current page, with a short message in the page's language. They're plain links, so nothing loads from those sites until someone clicks, and the CSP stays as it is.
  • On the narrowest phones (≤ 380 px) the theme switch steps aside to make room; the theme already follows the device. The header no longer overflows at 320 px either.
  • Brand marks from Simple Icons (CC0), credited in third-party-licenses.txt.
  • Strings in all 16 languages. New e2e test covers the menu, link targets, copy link and the native share sheet on a phone.

A share button in the header opens the phone's own share sheet, or a
small menu of links on desktop: WhatsApp, X, Facebook, LinkedIn, Reddit,
Telegram, email and copy link. The same links sit under the star call-out
on every page and after each result. They are plain links, so nothing
loads from those sites until someone clicks.

On the narrowest phones the theme switch steps aside to make room; the
theme already follows the device.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying fizzdoc with  Cloudflare Pages  Cloudflare Pages

Latest commit: 93db68c
Status: ✅  Deploy successful!
Preview URL: https://7e6daa89.fizzdoc.pages.dev
Branch Preview URL: https://feat-share-buttons.fizzdoc.pages.dev

View logs

@kingrishabdugar
kingrishabdugar merged commit cc709df into main Oct 8, 2026
3 checks passed
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.

1 participant