mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
create-pull-request/patch
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
c9bb8cd1c4 |
fix(docs): fix the accessibility scan violations on 4 guides (#54497)
## Problem The daily Docs Accessibility Scan fails on 5 guides with blocking violations, tracked in [DOCS-1817](https://linear.app/supabase/issue/DOCS-1817/fix-the-accessibility-issues-the-daily-docs-scan-finds-on-5-guides). This PR fixes 4 of them. - Deep linking, Expo social sign-in, and push notifications repeat the same heading text in several tabs, so two or more headings get the same `id`. Deep linking also includes the "Universal links" partial twice. Screen readers and in-page links can land on the wrong heading. - On Resources, the "Migrate to Supabase" heading is an `h3` with no `h2` above it. The [run on 2026-12-02](https://github.com/supabase/supabase/actions/runs/46817154464) also failed on 8 pages that returned 404. Those pages had merged to `master` during a code freeze, so production didn't serve them yet. They return 200 now, and [DOCS-1839](https://linear.app/supabase/issue/DOCS-1839/scan-only-the-pages-production-serves-in-the-daily-docs-accessibility) tracks keeping the scan from failing that way. ## Solution - **Repeated headings in content:** The first copy of each heading keeps its anchor. Each later copy gets a custom anchor named after its tab, such as `#deep-link-config-swift`. The partial takes an anchor suffix through `variables`, so each include gets its own anchor. No page in the repo links to the changed anchors, and the visible heading text stays the same. - **Resources:** The "Migrate to Supabase" and "Postgres resources" headings are now `h2`. Their anchors stay the same, so the blog posts that link to `#migrate-to-supabase` keep working. The headings render at `h2` size. Advisors also has duplicate heading `id` values. #53313 fixes them by giving IDs only to the open tab, which keeps links to each lint's headings working. This PR leaves Advisors to #53313. ## Preview links | Guide | Live | Preview | Check | | -- | -- | -- | -- | | Deep linking | [/docs/guides/auth/native-mobile-deep-linking](https://supabase.com/docs/guides/auth/native-mobile-deep-linking) | [Swift tab, Deep link config](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/auth/native-mobile-deep-linking?queryGroups=platform&platform=swift#deep-link-config-swift) | `#deep-link-config`, `#universal-links` | | Expo social sign-in | [/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) | [Expo tab, Prerequisites](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in?queryGroups=apple-authentication&apple-authentication=expo-apple-authentication#prerequisites-expo) | `#prerequisites`, `#ios` | | Push notifications | [/docs/guides/functions/examples/push-notifications](https://supabase.com/docs/guides/functions/examples/push-notifications) | [FCM tab, Supabase setup](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/functions/examples/push-notifications?queryGroups=platform&platform=fcm#supabase-setup-fcm) | `#supabase-setup`, `#send-push-notification` | | Resources | [/docs/guides/resources](https://supabase.com/docs/guides/resources) | [Migrate to Supabase](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/resources#migrate-to-supabase) | "Migrate to Supabase" and "Postgres resources" are `h2` | ## Verification - The `@a11y` spec passes for the 4 fixed guides on the preview deployment and against a local docs server, run through `pnpm e2e:docs:a11y`. - The rendered HTML for each guide has no duplicate `id` values. - `pnpm check:removed-anchors --base origin/master` reports no removed linked anchors. - The markdown export (`pnpm build:guides-markdown`) shows the original heading text without the custom anchors. - Docs typecheck, ESLint, and oxfmt pass on the changed files. ## Review category (docs PRs only) - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [x] Moderate: good to have soon, not urgent - [ ] Low: get to it when you can ## Review instructions 1. Open each preview link in the table above. Each one opens the right tab at a heading that changed. 2. In the browser console, run `document.querySelectorAll('[id="<anchor>"]').length` for each anchor in the **Check** column. Each returns `1`. 3. On the Resources preview, check that "Migrate to Supabase" and "Postgres resources" are `h2` headings. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Part of [DOCS-1817](https://linear.app/supabase/issue/DOCS-1817/fix-the-accessibility-issues-the-daily-docs-scan-finds-on-5-guides). |
||
|
|
b04118b0e6 |
[FE-4885] feat(www,docs): add InstantDB migration page to sitemap, docs (#53074)
Makes the InstantDB migration page discoverable. It's served through a rewrite, so it has no page file for the sitemap to find, and it serves as its own docs, so there's no separate guide to link to. **Added:** - `https://supabase.com/migrate/instantdb` in the www sitemap, alongside the other proxied apps - InstantDB card in the "Migrate to Supabase" listing on `/docs/guides/resources` The card has no icon because the repo has no InstantDB logo. Adding one later would also put it in the docs home migration grid. ## Tested locally Sitemap and docs listing tests pass, and ESLint and Prettier are clean on the touched files. The generator outputs the URL once, as valid XML. `tsc` in `apps/docs` only failed on the missing `__generated__/graphql` module since codegen wasn't run. ## To test - `/docs/guides/resources` on the docs preview: card shows in "Migrate to Supabase" and links to the migration page - `/sitemap_www.xml` on the www preview includes `/migrate/instantdb` --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
b123d74008 |
chore(kb,docs) - migrate migration pages (#52243)
## Problem Don't want dupe entries of migration pages. Consolidation + redirects. ## Solution Went ahead and kept the listing on the docs homepages and docs resource pages b/c those links are good for general discoverability (for people, bots). Also migrated over the existing Vercel Postgres guide that got missed in the first pass of this. Updates relevant links elsewhere w/in the app too. ## Preview links [KB](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/) [KB Vercel Postgres](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/kb/guides/migrate-from-vercel-postgres) [Docs homepage](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs) [Docs resources page](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs/guides/resources) [www neon migration](https://zone-www-dot-com-git-kody-devrel-764-remove-mig-a4e53a-supabase.vercel.app/solutions/switch-from-neon) |
||
|
|
c0f1ef51fb |
feat(docs): migrate resources and getting-started to ContentListings (#48517)
## What kind of change does this PR introduce? Docs update / follow-up to #48379. ## What is the current behavior? `/guides/resources` and `/guides/getting-started` hand-roll `GlassPanel` grids in MDX. They look like ContentListings cards after the chrome PR, but they do not use the shared data files, so they miss PostHog `docs_content_listing_clicked` telemetry and the CONTRIBUTING contribution path. ## What is the new behavior? Those pages use `<ContentListings id="…" />` backed by `resources.data.ts` and `getting-started.data.ts`, same pattern as storage. - Section-level `$Show` wrappers stay for framework / web / mobile blocks - Nimbus stays a `$Partial` behind `$Show` - New optional per-item `feature` field gates SDK links (e.g. Flutter / Swift / Kotlin) without splitting whole sections - CONTRIBUTING notes when to use `feature` vs a partial-level `$Show` ## To test Compare the following against `master`: - [Resources](https://docs-git-dnywh-docs-content-listings-resources-239158-supabase.vercel.app/docs/guides/resources): overview, migrate, and postgres grids; icons in light/dark - [Getting started](https://docs-git-dnywh-docs-content-listings-resources-239158-supabase.vercel.app/docs/guides/getting-started): overview, use cases, framework quickstarts, web demos, mobile tutorials; nimbus partial when enabled - Click a card and confirm `docs_content_listing_clicked` fires with the expected `listingId` Everything should look and feel the same. It’s just that we’re using `ContentListings` instead of `GlassPanel` grids. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added centralized Getting Started and Resources content listings, including quickstarts, demos, tutorials, migration guides, and Postgres resources. - Added feature-based visibility controls for individual content listing items. - **Improvements** - Disabled content is now automatically hidden from documentation pages and generated Markdown. - Pages and sections with no available content are omitted entirely. - External documentation links are more secure. - Updated contribution guidance with instructions and examples for feature flags. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |