Skip to content

Fix rendering issues in architecture docs#2861

Merged
michaeldwan merged 4 commits intomainfrom
md/fix-arch-docs
Mar 24, 2026
Merged

Fix rendering issues in architecture docs#2861
michaeldwan merged 4 commits intomainfrom
md/fix-arch-docs

Conversation

@michaeldwan
Copy link
Copy Markdown
Member

@michaeldwan michaeldwan commented Mar 24, 2026

Architecture docs had broken diagrams and documented features that no longer exist.

  • Remove training (cog train, train(), Training API) and COG_WEIGHTS -- training in its current form is going away
  • Convert ASCII box-drawing diagrams to Mermaid so they render consistently across GitHub, mkdocs, and VSCode
  • Fix Mermaid stateDiagram parse error caused by unescaped :: in a label
  • Tag remaining text-art code fences as text so renderers don't try to parse them

ASCII art diagrams had bare code fences that some renderers tried to
parse as diagrams. Tag them as `text`. Also escape :: in a Mermaid
stateDiagram label that was causing parse errors.
Training in its current form is being removed. COG_WEIGHTS is also
deprecated. Strip both from the architecture docs rather than adding
deprecation noise -- when custom handlers land, the docs get rewritten.
ASCII box-drawing diagrams break when the monospace font has slightly
different glyph widths. Mermaid diagrams render cleanly everywhere --
GitHub, mkdocs, VSCode preview.
block-beta with custom fill colors breaks on GitHub dark mode --
white text on pink/grey backgrounds. Switch to plain flowcharts
with subgraphs, no custom styles.
@michaeldwan michaeldwan marked this pull request as ready for review March 24, 2026 18:28
@michaeldwan michaeldwan requested a review from a team as a code owner March 24, 2026 18:28
Copy link
Copy Markdown
Contributor

@markphelps markphelps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧜🏻‍♂️

@michaeldwan michaeldwan added this pull request to the merge queue Mar 24, 2026
Merged via the queue into main with commit 7b1bc3f Mar 24, 2026
28 checks passed
@michaeldwan michaeldwan deleted the md/fix-arch-docs branch March 24, 2026 20:04
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.

2 participants