Update from code changes: document collaborative source mode - #7270
Open
mintlify[bot] wants to merge 2 commits into
Open
Update from code changes: document collaborative source mode#7270mintlify[bot] wants to merge 2 commits into
mintlify[bot] wants to merge 2 commits into
Conversation
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
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.
Summary
The web editor's source mode is now collaborative: source and visual editors share the same live document, cursors and selections project across modes, and frontmatter edits sync field by field. Invalid MDX or frontmatter YAML stays local to the author until fixed, and any page with invalid MDX disables the Publish button for the branch. Source mode also gains a format-document shortcut (Cmd/Ctrl + S).
Shipped in https://github.com/mintlify/mint/pull/10182
Changes
editor/collaborate.mdx: note that real-time editing works across visual and source mode, and that invalid MDX/YAML stays local until repaired.editor/publish.mdx: new "Invalid MDX blocks publishing" subsection explaining the disabled Publish button.editor/index.mdx: mention both modes support real-time collaboration.editor/keyboard-shortcuts.mdx: add the source mode format-document shortcut.help-center/publish-button-disabled-invalid-mdx.mdx(new): symptom page for the "Fix invalid MDX before publishing" tooltip, added to the Help center group indocs.json.es/,fr/, andzh/, including new help-center pages and nav entries ines.json,fr.json, andzh.json.Context
Edits over roughly 1,000 characters in source mode prompt a confirmation dialog before applying; left undocumented as a minor UI guard rail. Collaborative source mode applies to supported MD/MDX pages; a plain, non-collaborative source editor remains for unsupported files and metadata-error recovery, which the docs don't call out to avoid over-specifying. SEO audit skipped help-center pages because they sit in a hidden nav tab and are not indexed; all other touched pages pass the metadata checks.
Note
Low Risk
Documentation-only updates across editor and help-center MDX and locale nav JSON; no application or deployment logic changes.
Overview
Documents collaborative source mode in the web editor: real-time editing now spans visual and source mode (shared cursors/selections, including title and description), with invalid MDX or frontmatter YAML staying local until fixed and only valid content syncing to teammates.
Adds an Invalid MDX blocks publishing section on the publish docs and a new Help center article for the disabled Publish / “Fix invalid MDX before publishing” tooltip, registered in
docs.jsonand localized (es,fr,zh). Editor overview and collaborate pages cross-link the behavior; source-mode shortcuts now list Format document (Cmd/Ctrl+S).Reviewed by Cursor Bugbot for commit 6c98890. Bugbot is set up for automated code reviews on this repo. Configure here.