Skip to content

docs: migrate Crossplane 101 mermaid diagrams to Excalidraw + add 4 new overview diagrams - #186

Merged
ricCap merged 8 commits into
mainfrom
docs/excalidraw-diagrams
May 17, 2026
Merged

ricCap merged 8 commits into
mainfrom
docs/excalidraw-diagrams

Conversation

@ricCap

@ricCap ricCap commented May 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace the three mermaid flowcharts in the Crossplane 101 modules with hand-drawn Excalidraw-style SVGs served via Docusaurus' <ThemedImage> (light + dark variants). Drop @docusaurus/theme-mermaid and the mermaid package override — saves ~113 transitive packages from the docs install.
  • Add five new architecture diagrams to places where the prior prose covered multi-actor flow or layered packaging that's hard to picture from text alone:
    • 05-crossplane-2xx/04-provider-setup-pattern.mdx §5.1 — the Provider → Pod → Secret → ProviderConfig → MR shape.
    • 05-crossplane-2xx/05-composition-functions.mdx §5.2 — pipeline-as-chain: each function step receives the previous step's desired state.
    • 06-crossplane-3xx/02-configurations.mdx §6.1 — full packaging lifecycle (YAML sources → xpkg build → registry → install → dependency resolve). Page was ai_edit: locked; lock removed in an operator-authored commit before the diagram landed.
    • 79-cheatsheet.mdx §1.3 — "the Crossplane loop" overview, both halves of Crossplane in one picture with the bridge that Compositions can also emit MRs.
    • 08-journeys/02-microservice-templates.mdx — visualises the journey's full fan-out (Application XR → 3 in-cluster + 2 external resources) at the top of the page.
  • All eight diagrams use a single shared color convention (yellow=platform engineer, blue=user, green=cluster/runtime, purple=external) so the reader builds muscle memory across modules. Italian mirrors updated and translation_source_commit bumped on every touched IT file (i18n check passes 31/31).

Implementation notes

  • SVGs are hand-authored under docs/static/diagrams/ — excalidraw_export@1.1.0 fails to build on modern Node (its canvas native dep), so there's no working .excalidraw → SVG CLI right now. The .excalidraw source file is committed alongside the first-composition overview as a nominal editable source; the remaining seven diagrams ship as SVG-only. Future edits: redraw at https://excalidraw.com and re-export both light + dark themes.
  • One pair of mermaid → Excalidraw style decisions worth flagging:
    • module 5 fan-out dropped the six individual XR→box arrows after they were visibly crossing through the frontend boxes. The diagram now uses a single trunk arrow + dashed frontend/backend groupings; the fan-out is implied by 1 XR → 6 grouped boxes rather than drawn explicitly.
    • module 4 dropped the "subgraph swimlanes" approach after testing — it added visual weight without clarifying. The final 4-node version reads cleanest.
  • The <ThemedImage> pattern is now the convention for any future diagram in the docs site.

Test plan

ricCap added 8 commits May 17, 2026 13:46
Replace the three mermaid flowcharts in the Crossplane 101 modules with
hand-drawn Excalidraw-style SVGs served via Docusaurus' <ThemedImage> for
light/dark mode. Drop the @docusaurus/theme-mermaid theme and the mermaid
override from package.json — saves ~113 transitive packages from the docs
install.

Why: the prior mermaid renderings packed 7-10 nodes per chart and read as
cluttered for beginners. The new SVGs cap each diagram at ~4-7 nodes, lean
on color (yellow=platform, blue=user, green=cluster output, purple=external)
to communicate roles, and use a hand-drawn aesthetic for a friendlier
look. The .excalidraw source for module 4 is committed alongside; modules 5
and 7 ship as SVGs only (no working .excalidraw → SVG CLI on modern Node).

Mirrors the MDX changes into the Italian translations. translation_source_commit
will be bumped after the rebase lands.

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
Three new Excalidraw-style overview diagrams in places where the prose
covers multi-actor flow that is hard to picture from text alone:

- 05-crossplane-2xx/04-provider-setup-pattern.mdx §5.1 — full Provider →
  Pod → Secret → ProviderConfig → MR shape, including the
  providerConfigRef and "Pod watches MR" arrows. Pairs trip on this
  pattern every time a new cloud module starts; the diagram makes the
  wiring concrete.
- 79-cheatsheet.mdx §1.3 — the "Crossplane loop" overview: both halves of
  Crossplane (compose-your-own-API vs talk-to-external-API) on one page,
  with the bridge that Compositions can also emit MRs. Turns the
  components table from a glossary into a navigable system map.
- 08-journeys/02-microservice-templates.mdx — visualises the journey's
  full fan-out (Application XR → 3 in-cluster + 2 external resources) at
  the top of the page so readers see the scope before clicking through
  five linked modules.

All three follow the same color convention as the 101 diagrams (yellow=
platform, blue=user, green=cluster, purple=external) and ship as light/
dark SVG pairs via <ThemedImage>. Italian mirrors included.

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
Mark the 6 Italian mirror files in-sync with the post-rebase English
commits that added Excalidraw diagrams.

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
§5.2 introduces the idea that a Composition's pipeline is a list of
function steps where each step sees the previous step's desired state.
Add an Excalidraw-style diagram (XR → function-go-templating →
function-patch-and-transform → composed resources) so the chaining
contract is visible before the four "what you can achieve" bullets.

Mirror to Italian. translation_source_commit will be bumped in a follow-up
commit per the standard workflow.

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
…diagram

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
Operator-authored unlock so a packaging-lifecycle diagram can be added
in the following commit.

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
Top of §6.1 — show the end-to-end Configuration flow: YAML sources +
crossplane.yaml → xpkg build → .xpkg → push → OCI registry → apply
Configuration MR on target cluster → Crossplane resolves and pulls the
Providers + Functions from dependsOn.

The prose explains each step but reads as five separate operations; the
diagram lets a participant see how authoring, distribution, and install
chain together in one picture before they decide whether to do the
exercise.

Mirror to Italian. translation_source_commit bumped in the next commit.

Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
Signed-off-by: Riccardo Capraro <capraroriccardo@gmail.com>
Assisted-by: claude-code/claude-opus-4-7
@ricCap
ricCap merged commit 4f3ffb3 into main May 17, 2026
5 checks passed
@ricCap
ricCap deleted the docs/excalidraw-diagrams branch May 17, 2026 12:15
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