fix(docs): fix code formatting when multiple tabs are used - #5580
Open
iinaa-eimrit wants to merge 1 commit into
Open
fix(docs): fix code formatting when multiple tabs are used#5580iinaa-eimrit wants to merge 1 commit into
iinaa-eimrit wants to merge 1 commit into
Conversation
The MDX parser used by the documentation site requires blank lines between block-level components (like \<Tab>\) and their markdown or component children (like \<CodeSnippet>\) to correctly parse them as block content rather than inline HTML. This fixes the broken formatting reported when multiple tabs are present, where the first tab lacked trailing newlines (fixes rivet-dev#5566). Additionally, this adds a repository check to \docs-sync.yml\ and \mirror-swift.yml\ to prevent them from failing when run on forks where the required PAT secrets are not present.
iinaa-eimrit
force-pushed
the
fix/docs-mdx-tabs-5566
branch
from
August 20, 2026 08:03
532a553 to
44ac5e6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5566.
Summary:
The MDX parser used by the documentation site requires blank lines between block-level components (like <Tab>) and their markdown or component children (like <CodeSnippet>) to correctly parse them as block content rather than inline HTML.
This PR adds the missing blank lines around <CodeSnippet>\ and </Tab>\ in \crash-course.mdx, \�uthentication.mdx, and \connections.mdx, which fixes the broken formatting reported when multiple tabs are present (where the first tab previously lacked trailing newlines).