Skip to content

Mark excerpt code blocks in docs-guide-revision - #5863

Draft
brianmacdonald-temporal wants to merge 1 commit into
mainfrom
revision-excerpt-marker
Draft

brianmacdonald-temporal wants to merge 1 commit into
mainfrom
revision-excerpt-marker

Conversation

@brianmacdonald-temporal

Copy link
Copy Markdown
Contributor

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 the excerpt marker 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:

```typescript excerpt
const compensations: Compensation[] = [];
```

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. In recover-without-restart, the Step 5 saga snippets broke workflows.ts. #5651 skips blocks marked excerpt, and with Step 5 marked, the revised draft passes 10 of 10.

Docusaurus ignores the extra word when rendering. check_code_preserved.py reads 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

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>
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Dec 2, 2026 10:46pm UTC

Request Review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

This 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

1 active deployment
Preview — 287ba6b1 Deployed Dec 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant