Repository navigation
docs: add banner, hero screenshot and contents-led README layout - #14
Merged
Merged
Conversation
…ed layout Add assets/svg/banner.svg, composed by assets/generate_svgs.py from the project's existing mark, blobs, hospital buildings, chain and ECG wave. Reorganise README.md into get started / how it works / deploy and reference, with a table of contents and a short quick start; every existing section, fact, number and command is kept.
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.
Intent
The captain asked for the repository's README to be made professional, the way a well-known popular open-source repository presents itself: a logo or banner image, or a screenshot, at the very top, followed by a clear description of what the project is, then an overall clean, well-organized README - rather than the current README's dense start with no visual introduction.
What Changed
assets/svg/banner.svgbanner and badges for CI, Python 3.12 and Docker Compose v2. Below those come a bold one-paragraph pitch and the dashboard topology screenshot with a caption about when it was captured. After that is a grouped Contents list (Get started / How it works / Deploy and reference).make up, the admin password and the dashboard URL. The architecture notes are gathered into a How it fits together section.assets/generate_svgs.pygains two helpers.place()nests one generated SVG inside another, with optional rotation.banner()builds a 1280×360 header from the existing mark, blobs, hospitals, chain and ECG wave, plus the MEDCHAIN title text.banner.svgis registered inFILES, and the generatedassets/svg/banner.svgis added.Risk Assessment
✅ Low: The change only touches documentation and adds a banner generator. It meets the intent: a banner, badges and a screenshot sit at the top, followed by a clear description and a contents list. The generated banner.svg matches what generate_svgs.py produces, and every referenced asset, workflow and anchor exists.
Testing
This is a docs-only change: README.md, a generated banner SVG and the generator function that draws it. There is no runtime surface to drive live, so the verdict is no-surface. To show the intent was met, I rendered the README to HTML locally and screenshotted it in Chrome. The banner shows at the very top, followed by badges, a clear bold description, a hero screenshot of the real dashboard and a grouped Contents list. Every in-page anchor and relative image link resolves, banner.svg regenerates byte-for-byte with no external references, and no section of the old README was removed. I did not render it on GitHub itself, so GitHub's exact styling and font fallbacks were not checked.
Evidence: Rendered README HTML
Evidence: Anchor and relative-link check
in-page anchor links: 41 (unique 27); unresolved: [] relative file links/images missing: []Evidence: Generator determinism check
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
Rendered README.md to HTML locally withnpx marked@12 --gfm, added GitHub-style heading slugs (build.py), opened it in Chrome viachrome-devtools-axi open, took full-page screenshots, and checked that every image loaded (naturalWidth)Checked all 27 unique in-page#anchorlinks in the rendered README against the generated heading IDs: none unresolved. Checked every relative image or file link exists on disk: none missingRanpython3 assets/generate_svgs.pyon a temp copy of assets/ and rancmpon each output against the committed SVGs: banner.svg matched byte-for-byteRegenerated SVGs from the base commit to confirm the only mismatch, heart-anatomical.svg, comes from the existing generator and is untouched by this commitParsed banner.svg as XML and checked it for external href/src,<script>,<image>and<foreignObject>: none found, so it loads inside GitHub's image sandboxDiffed README headings between base and target: nothing removed.# MedChainwas replaced by the banner, and## Contents,## Overviewand## Quick startwere added✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.