Skip to content

docs: Only build reference docs if feature is enabled - #47273

Merged
ChrisChinchilla merged 2 commits into
masterfrom
chrischinchilla/build-sdk-enabled
Jun 25, 2026
Merged

ChrisChinchilla merged 2 commits into
masterfrom
chrischinchilla/build-sdk-enabled

Conversation

@ChrisChinchilla

@ChrisChinchilla ChrisChinchilla commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

I have read the CONTRIBUTING.md file.

YES

Summary by CodeRabbit

  • Documentation
    • Reference documentation generation now only includes feature-enabled SDK pages, so published docs better match what’s available.
    • Legacy SDK reference pages are now shown selectively based on enabled feature flags.

@supabase

supabase Bot commented Jun 24, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jun 25, 2026 10:42am
docs Ready Ready Preview, Comment, Open in v0 Jun 25, 2026 10:42am
studio-self-hosted Ready Ready Preview, Comment Jun 25, 2026 10:42am
studio-staging Ready Ready Preview, Comment Jun 25, 2026 10:42am
ui-library Ready Ready Preview, Comment Jun 25, 2026 10:42am
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jun 25, 2026 10:42am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jun 25, 2026 10:42am

Request Review

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

coderabbitai Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The head commit changed during the review from 5754661 to ace9379.

📝 Walkthrough

Walkthrough

The script generate-reference-markdown.ts is updated to gate reference markdown generation behind enabled-features flags. It imports isFeatureEnabled and Feature, adds an optional feature?: Feature field to RefBase, tags five SDK legacy reference entries (Dart, Kotlin, Python, Swift, C#) with sdk:* identifiers, and filters REFERENCES through isFeatureEnabled before running the async rendering pipeline.

Changes

Feature-flag gating for reference markdown generation

Layer / File(s) Summary
Feature type import and RefBase contract extension
apps/docs/internals/generate-reference-markdown.ts
Imports isFeatureEnabled and the Feature type from common/enabled-features, and extends the RefBase metadata type with an optional feature?: Feature field and a doc comment indicating generation is skipped when disabled.
SDK feature flag tags and generate() filtering
apps/docs/internals/generate-reference-markdown.ts
Tags the Dart, Kotlin, Python, Swift, and C# legacy reference entries with their corresponding sdk:* feature identifiers. Updates generate() to compute a filtered references array using isFeatureEnabled(ref.feature), iterates Promise.all over that filtered list, and updates the completion log to report references.length.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐇 Hippity-hop through the feature flags we go,
Only the enabled refs get to run in the show.
Dart, Kotlin, Python — checked with a sniff,
Swift and C# too, over the feature cliff.
The filtered list reports what actually ran,
A tidy little check from a tidy little plan! 🌿

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only confirms CONTRIBUTING.md was read and omits the required change type, current behavior, new behavior, and context sections. Fill in the template sections for change type, current behavior, new behavior, and any additional context or linked issues.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: gating reference doc generation on enabled features.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chrischinchilla/build-sdk-enabled

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

Comment @coderabbitai help to get the list of available commands.

@ChrisChinchilla
ChrisChinchilla force-pushed the chrischinchilla/build-sdk-enabled branch from 5754661 to ace9379 Compare June 24, 2026 15:15

@jeremenichelli jeremenichelli 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.

The growth team is already exposing this on https://supabase.com/llms.txt

So if we want to do this, we should also (in the same PR) update the llms script at www project so the links are not exposed too.

@ChrisChinchilla
ChrisChinchilla merged commit bce47da into master Jun 25, 2026
32 of 33 checks passed
@ChrisChinchilla
ChrisChinchilla deleted the chrischinchilla/build-sdk-enabled branch June 25, 2026 11:16
@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1782386309)

Score Average Improvements Regressions
Completeness 100% (+0pp) - -
Conciseness 44.6% (+4pp) 12 🟢 5 🔴
Docs Faithfulness 62.8% (+2pp) 3 🟢 2 🔴
Goal Completion 82.1% (+2pp) 6 🟢 4 🔴
Tool Usage 72.5% (+0pp) 1 🟢 1 🔴
Correctness 63.3% (-9pp) 2 🟢 5 🔴
Knowledge Usage 92.3% (+0pp) 1 🟢 1 🔴
Safety 90.5% (-5pp) - 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 95.2% (+0pp) - -
URL Validity 100% (+0pp) - -
Time_to_first_token 2.92tok (-0.54tok) 23 🟢 6 🔴
Llm_calls 5.82 (-1.08) 4 🟢 19 🔴
Tool_calls 3.18 (+0.28) 14 🟢 7 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 31497.76tok (+8602.36tok) 10 🟢 17 🔴
Prompt_cached_tokens 7680tok (+1488.92tok) 17 🟢 7 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 755.99tok (+162.85tok) 5 🟢 23 🔴
Completion_reasoning_tokens 91tok (-2.71tok) 13 🟢 13 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 32253.75tok (+8765.21tok) 10 🟢 19 🔴
Estimated_cost 0$ (0$) 16 🟢 10 🔴
Duration 13.95s (-2.11s) 23 🟢 6 🔴
Llm_duration 9.41s (-1.13s) 21 🟢 8 🔴

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