Repository navigation
docs: migrate Crossplane 101 mermaid diagrams to Excalidraw + add 4 new overview diagrams - #186
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<ThemedImage>(light + dark variants). Drop@docusaurus/theme-mermaidand themermaidpackage override — saves ~113 transitive packages from the docs install.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 wasai_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.translation_source_commitbumped on every touched IT file (i18n check passes 31/31).Implementation notes
docs/static/diagrams/—excalidraw_export@1.1.0fails to build on modern Node (itscanvasnative dep), so there's no working.excalidraw → SVGCLI right now. The.excalidrawsource 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.module 5 fan-outdropped 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 4dropped the "subgraph swimlanes" approach after testing — it added visual weight without clarifying. The final 4-node version reads cleanest.<ThemedImage>pattern is now the convention for any future diagram in the docs site.Test plan
task dev:docs— site compiles clean (no mermaid theme errors).<ThemedImage>references work and the prose around each diagram still reads naturally.task docs:i18n:checkpasses (31/31 in sync).grep -r mermaid docs/docs/ docs/i18n/returns nothing.