Repository navigation
Mark excerpt code blocks in docs-guide-revision - #5863
Draft
brianmacdonald-temporal wants to merge 1 commit into
Draft
brianmacdonald-temporal wants to merge 1 commit into
brianmacdonald-temporal wants to merge 1 commit into
Conversation
Fence code that isn't part of any file the reader builds as ```<lang> excerpt, so docs-guide-test doesn't append it to the preceding file. check_code_preserved.py reads only the language tag, so marked blocks still count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview linksThis PR does not change any pages in /docs. If you make updates, links to the modified pages will appear here. |
This branch was successfully deployed
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
Adds an Excerpts rule to the Code Sandwich section of
docs-guide-revision. A code block that isn't part of any file the reader builds gets theexcerptmarker on its fence. That covers a fragment showing a change, a variant of code shown elsewhere, or a passage from a fuller version in the source repository:Why
docs-guide-test(#5651) rebuilds a guide's files by appending each header-less block to the file before it. An excerpt appended that way breaks the file. Inrecover-without-restart, the Step 5 saga snippets brokeworkflows.ts. #5651 skips blocks markedexcerpt, and with Step 5 marked, the revised draft passes 10 of 10.Docusaurus ignores the extra word when rendering.
check_code_preserved.pyreads only the language tag, so marked blocks still count toward code preservation.Dependencies
The marker only affects testing once #5651 merges, so this PR is a draft until then. It's also used by the pipeline orchestrator, #5841.
🤖 Generated with Claude Code