Skip to content

docs: restore 175 image figcaptions from GitBook migration#37

Merged
rachaelrenk merged 6 commits intomainfrom
docs/migration-ff/figcaptions
May 8, 2026
Merged

docs: restore 175 image figcaptions from GitBook migration#37
rachaelrenk merged 6 commits intomainfrom
docs/migration-ff/figcaptions

Conversation

@rachaelrenk
Copy link
Copy Markdown
Contributor

@rachaelrenk rachaelrenk commented May 7, 2026

Summary

Restore image figcaptions lost in the GitBook to Astro Starlight migration, define caption quality standards in the style guide, and rewrite all captions to meet those standards.

Changes

Caption guidelines (new)

AGENTS.md

  • Added "Image caption guidelines" section under "Images and media" with rules: orient don't instruct, keep under ~20 words, no marketing language, don't repeat prose, don't list everything, sentence case with period.
  • Includes positive and negative examples.

src/styles/custom.css

  • Added editorial note next to figcaption CSS pointing to the AGENTS.md guidelines.

Figcaption restoration

src/styles/custom.css

  • Added CSS styling for <figure> and <figcaption> elements: centered layout, var(--sl-text-sm) font, var(--sl-color-gray-3) color.

src/content/docs/**/*.mdx (68 files)

  • Wrapped 175 images in <figure> + <figcaption> with caption text extracted from the GitBook source, matched by image filename using a one-time migration script (not committed).

Caption quality rewrites

src/content/docs/**/*.mdx (58 files)

  • Rewrote 140 captions to follow the new guidelines:
    • Removed procedural instructions (e.g. "Click the toast to jump to the agent's session" -- belongs in body text)
    • Removed marketing language ("Easily track sync status and manage...")
    • Shortened exhaustive lists to concise subject descriptions
    • Trimmed verbose captions to ~10 words
    • Added missing trailing periods
    • Fixed "Oz Web App" casing to "Oz web app" per terminology standards

Scope

  • 175 captions restored -- matched by image filename between GitBook source and Astro MDX
  • 140 captions rewritten -- to meet the new caption guidelines
  • 49 captions unmatched -- images renamed or removed during migration (not addressed)
  • 145 empty captions skipped -- GitBook had empty <figcaption> tags with no text

Context

Part of the docs v2 bug bash follow-up work. Tracks to Notion item: Migration FF: image captions.

Co-Authored-By: Oz oz-agent@warp.dev

rachaelrenk and others added 2 commits May 7, 2026 12:39
Add <figure>+<figcaption> wrappers to 175 images across 68 MDX files,
restoring the visible captions that were lost during the GitBook →
Astro Starlight migration. Captions extracted from the GitBook source
and matched by image filename.

Also adds:
- CSS styling for figure and figcaption elements (centered, sm text,
  gray-3 color) in custom.css
- Migration scripts (migrate-figcaptions.py for analysis,
  apply-figcaptions.py for automated application)

Empty figcaptions (145 instances) are intentionally skipped — they
had no visible text in GitBook either.

Co-Authored-By: Oz <oz-agent@warp.dev>
…captions

# Conflicts:
#	src/content/docs/agent-platform/capabilities/mcp.mdx
@cla-bot cla-bot Bot added the cla-signed label May 7, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 8, 2026 0:53am

Request Review

These were used to generate the content changes in this PR and
don't need to live in the repo.

Co-Authored-By: Oz <oz-agent@warp.dev>
Add an 'Image caption guidelines' section to AGENTS.md with rules
for writing good figcaptions: orient don't instruct, keep short,
no marketing language, don't repeat prose, don't list everything.
Includes positive and negative examples.

Also adds a brief editorial note in custom.css next to the
figcaption styles pointing to the AGENTS.md guidelines.

Co-Authored-By: Oz <oz-agent@warp.dev>
Apply the caption guidelines from AGENTS.md to all 174 figcaptions:
- Remove procedural instructions from captions (belongs in body text)
- Remove marketing language ('easily,' 'at a glance,' etc.)
- Shorten exhaustive lists to concise subject descriptions
- Trim verbose captions to ~10 words
- Add missing trailing periods for consistency
- Fix 'Oz Web App' casing to 'Oz web app' per terminology

140 captions rewritten across 58 files.

Co-Authored-By: Oz <oz-agent@warp.dev>
Rewrite 28 cryptic fragment captions (e.g. 'Derived from rules.',
'Alt-screen padding setting.') as complete sentences that orient
the reader without requiring them to look at the image.

Also adds 'Write complete sentences' as an explicit rule in the
AGENTS.md image caption guidelines.

Co-Authored-By: Oz <oz-agent@warp.dev>
@rachaelrenk rachaelrenk merged commit dab4b62 into main May 8, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants