Skip to content

docs: C4 architecture hero diagram + mermaid-lint gate#76

Merged
AndriyKalashnykov merged 1 commit into
masterfrom
docs/architecture-diagram
Jun 16, 2026
Merged

docs: C4 architecture hero diagram + mermaid-lint gate#76
AndriyKalashnykov merged 1 commit into
masterfrom
docs/architecture-diagram

Conversation

@AndriyKalashnykov

Copy link
Copy Markdown
Owner

Validated the README against the codebase fact-by-fact (all claims correct) and added the one missing piece per the /readme canonical structure — a hero architecture diagram.

README fact-check (all ✓)

  • Servlet mapping /infoservlet, welcome index.html, context path / — match web.xml/web-jakarta.xml/context.xml.
  • Description claim "server info, request headers, cookies via a servlet and JSP page" — InfoServlet forwards to index.jsp (verified RequestDispatcher); index.jsp renders all three.
  • Build Profiles table, CI matrix (JDK 11/18/25 × Tomcat 9/10/11), all Make targets, all 4 screenshot PNGs — verified against pom.xml, ci.yml, Makefile, images/.

Added

  • Mermaid C4Container hero under the description: browser → servlet container (Tomcat 9/10/11 or Jetty) → index.html / InfoServletindex.jsp. Every node + relationship is grounded in source.
  • make mermaid-lint (minlag/mermaid-cli 11.15.0, GitHub's own renderer, Renovate-pinned) wired into static-check — a broken diagram now fails CI instead of silently breaking README rendering on github.com.

Verification

  • make mermaid-lint passes on the diagram; proven to fail on an invalid diagram type / garbage body (Error 1) — not a false-confidence gate.
  • make ci green end-to-end with mermaid-lint in static-check.

/repo-about

The About one-liner ("Drop-in ROOT webapp for Tomcat 9, 10 & 11 — server info, headers, cookies; one codebase spans the javax→jakarta split via Maven profiles") was fact-checked against the same sources — every claim holds. No change needed.

🤖 Generated with Claude Code

README: add a Mermaid C4Container hero (request flow: browser → servlet
container → index.html / InfoServlet → index.jsp) directly under the
description. Every node/relationship is grounded in the code — InfoServlet
is mapped at /infoservlet and forwards to index.jsp via RequestDispatcher;
index.jsp renders server info, request headers, and cookies; index.html is
the welcome page; the javax/jakarta split is the two profile-selected source
trees.

Makefile: add `mermaid-lint` (minlag/mermaid-cli, GitHub's own renderer,
Renovate-pinned) and wire it into `static-check` so a broken diagram fails
CI instead of silently breaking README rendering on github.com. Verified:
the valid diagram passes; an invalid diagram type / garbage body both fail
the gate (Error 1).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@AndriyKalashnykov AndriyKalashnykov merged commit ede4f1a into master Jun 16, 2026
9 checks passed
@AndriyKalashnykov AndriyKalashnykov deleted the docs/architecture-diagram branch June 16, 2026 16:22
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