Skip to content

Improve Surge preview styling and collapsible TOC - #1744

Merged
stevsmit merged 3 commits into
quay:masterfrom
stevsmit:surge-preview-alteration
Aug 17, 2026
Merged

Improve Surge preview styling and collapsible TOC#1744
stevsmit merged 3 commits into
quay:masterfrom
stevsmit:surge-preview-alteration

Conversation

@stevsmit

@stevsmit stevsmit commented Aug 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds build_docs_preview using the redhat-docs-template theme (fixed left nav, styled admonitions, copy-code buttons).
  • Updates Surge Preview Build workflow to use the new script (~5s build, ~30MB artifact).
  • Adds collapsible nested TOC: subsections collapse under their parent; click the chevron to expand (useful for JTBD job assemblies and their modules).

build_docs is unchanged; production builds are unaffected.

Preview

https://quay-docs-pr-1744.surge.sh/

Example: https://quay-docs-pr-1744.surge.sh/config_quay/

Test plan

  • Surge Preview Build passes
  • Vale passes
  • Preview deploys to Surge
  • Spot-check left TOC chevrons and book styling after merge

Surge previews now compile books with levccutil so output matches
docs.redhat.com book styling more closely than plain Asciidoctor.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown

Surge Preview Deployment

Preview deployed successfully!

🔗 Preview URL: https://quay-docs-pr-1744.surge.sh

Built from commit e3a1ed7

This preview will be updated on every push to this PR.

Steven Smith and others added 2 commits August 17, 2026 09:09
Replace slow ccutil/Pantheon output with asciidoctor plus the
redhat-docs-template CSS: fixed left TOC, navbar, and copy-code buttons.
Build time and artifact size drop significantly (~5s vs ~55s, 30MB vs 157MB).

Co-authored-by: Cursor <cursoragent@cursor.com>
Subsections are collapsed under their parent by default; use the
chevron to expand (for example job assemblies and their modules).
Ancestors auto-expand for the current hash and scroll position.

Co-authored-by: Cursor <cursoragent@cursor.com>
@stevsmit stevsmit changed the title Use ccutil Pantheon styling for Surge preview builds Improve Surge preview styling and collapsible TOC Aug 17, 2026
@stevsmit
stevsmit merged commit 221b6e1 into quay:master Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant