Skip to content

docs(guides): fix code fence languages in three guides - #53722

Merged
antlio merged 1 commit into
supabase:masterfrom
Santhosh-x23:docs/fix-code-fence-languages
Nov 20, 2026
Merged

antlio merged 1 commit into
supabase:masterfrom
Santhosh-x23:docs/fix-code-fence-languages

Conversation

@Santhosh-x23

Copy link
Copy Markdown
Contributor

Problem

Three code blocks in the docs guides use the wrong language tag, so they are highlighted and type-checked as JavaScript or TypeScript instead of what they are:

  • guides/database/arrays.mdx: a SQL query is tagged js
  • guides/database/import-data.mdx: the pgloader config.load command is tagged jsx
  • guides/ai/hybrid-search.mdx: a cURL command is tagged tsx

The docs style guide says JavaScript and TypeScript blocks get type hints and are formatted by Prettier, which does not apply to these blocks.

Solution

Retag the blocks: sql for the query and bash for the two shell commands (bash is the most common shell tag in the guides).

For the SQL block I also lowercased the keywords, per the style guide's "Prefer lowercase for SQL". Prettier's SQL plugin rewrites textarray[1] to textarray as [1], which is not valid Postgres, so the block is preceded by {/* prettier-ignore */}, the same convention already used in guides/ai/engineering-for-scale.mdx and guides/api/query-plans.mdx.

Earlier PRs fixed the same kind of problem: #11870, #19033, #14856, #11235.

Review instructions

  1. Open the diff: only the language tags change, plus the lowercase SQL and the prettier-ignore comment in arrays.mdx.
  2. Check the three pages in the preview: the SQL block in the SQL tab of "Working with arrays", the pgloader step in "Import data into Supabase", and the cURL block in "Hybrid search".
  3. Run pnpm test:prettier. It passes for these files with the repo's prettier.config.mjs.

Checklist

  • I have read CONTRIBUTING.md
  • 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. (Not run: this edit only changes code fence languages, and I applied the style guide's code block rules by hand.)

A SQL query was tagged js, a pgloader command jsx, and a cURL command tsx, so they were highlighted and type-checked as JavaScript. Tag them sql and bash to match the rest of the guides.
@Santhosh-x23
Santhosh-x23 requested a review from a team as a code owner November 20, 2026 09:08
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview, v0 Nov 20, 2026 9:45am UTC
7 Skipped Deployments
Project Deployment Actions Updated
studio Ignored Ignored Nov 20, 2026 9:45am UTC
design-system Skipped Skipped Nov 20, 2026 9:45am UTC
kb Skipped Skipped Nov 20, 2026 9:45am UTC
studio-self-hosted Skipped Skipped Nov 20, 2026 9:45am UTC
studio-staging Skipped Skipped Nov 20, 2026 9:45am UTC
ui-library Skipped Skipped Nov 20, 2026 9:45am UTC
zone-www-dot-com Skipped Skipped Nov 20, 2026 9:45am UTC

Request Review

@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Santhosh-x23 is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing to Supabase! ❤️ Our team will review your PR.

A few tips for a smoother review process:

  • If you have a local version of the repo, run pnpm run format to make sure formatting checks pass.
  • Once we've reviewed your PR, please don't trivially merge master (don't click Update branch if there are no merge conflicts to be fixed). This invalidates any pre-merge checks we've run.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Three documentation examples now use more appropriate code-fence labels. The array query also uses lowercase SQL formatting and a Prettier-ignore comment.

Changes: Documentation code examples

Layer / File(s) Summary
Update code example formatting
apps/docs/content/guides/ai/hybrid-search.mdx, apps/docs/content/guides/database/arrays.mdx, apps/docs/content/guides/database/import-data.mdx
The cURL and pgloader examples use Bash code fences. The array query uses a SQL code fence, lowercase formatting, and a Prettier-ignore comment.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested labels: documentation

Suggested reviewers: kodster28, awaseem, czenko

Merge Risk: Minimal · up to 845fc

This docs-only change corrects code-fence languages and SQL formatting in three guides. It has no runtime impact and is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: retagging code fence languages in three docs guides. It is specific and concise. It follows the conventional commit style used in the repository. The title matches the…
Description check Passed The description covers the problem, the solution, review instructions, and the checklist from the template. It names the three files and the wrong language tags. It explains the lowercase SQL change a…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: retagging code fence languages in three docs guides. It is specific and concise. It follows the conventional commit style used in the repository. The title matches the changeset and the stated objectives.

Full details: Description check

Explanation

The description covers the problem, the solution, review instructions, and the checklist from the template. It names the three files and the wrong language tags. It explains the lowercase SQL change and the prettier-ignore comment. It gives a clear review procedure. The template's Problem and Solution sections are complete. The preview-links section is optional and omitted, which is acceptable. The style-guide checklist item is unchecked, and the author gives a reason. The author also states that the preview checks were not run, which leaves the review steps open but does not make the description incomplete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f9fd4a2 and 845fc8a.

Files selected for processing: 3

  • apps/docs/content/guides/ai/hybrid-search.mdx
  • apps/docs/content/guides/database/arrays.mdx
  • apps/docs/content/guides/database/import-data.mdx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@antlio antlio self-assigned this Nov 20, 2026
@antlio
antlio merged commit 6bdb443 into supabase:master Nov 20, 2026
40 checks passed
@Santhosh-x23

Copy link
Copy Markdown
Contributor Author

Thanks @antlio for the quick review and merge. This was my first contribution to Supabase, and I'm glad it helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants