Skip to content

Commit 04b418e

Browse files
committed
Merge branch 'feature/asciidoc-sidebar': AsciiDoc sidebar, disclaimer, footer, EN docs
- Integrate @asciidoctor/core for clickable reference links in sidebar - Add disclaimer, footer (GitHub/LinkedIn/docs), MECE link, target=_blank - Add English AsciiDoc documentation (risk-radar-en.adoc) - Extract i18n to src/i18n.js, bump to v1.1.0
2 parents 74dce41 + 37acc7e commit 04b418e

7 files changed

Lines changed: 1038 additions & 299 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
-a sectanchors \
5757
-a sectlinks \
5858
-D dist/docs \
59-
docs/risk-radar.adoc
59+
docs/risk-radar.adoc \
60+
docs/risk-radar-en.adoc
6061
6162
- name: Upload artifact
6263
uses: actions/upload-pages-artifact@v3

CLAUDE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ This is a single-page React app (React 18, Vite 6) that visualizes a MECE risk f
2020

2121
### Core Structure
2222

23-
- **`src/RiskRadar.jsx`** — The entire application lives in this single self-contained component (~517 lines). It includes:
24-
- **i18n**: A `T` object at the top with full DE/EN translations, dimension definitions, preset scenarios, mitigation measures, and documentation content. All text is inline, no external i18n library.
23+
- **`src/RiskRadar.jsx`** — All React components (~258 lines):
2524
- **Risk model**: 5 dimensions (codeType, language, deployment, data, blastRadius), each scored 0–4. The tier is determined by `Math.max()` across all dimensions, mapped to 4 tiers.
26-
- **Components** (not exported, all in the same file): `RadarChart` (SVG polygon radar), `MitigationCard` (expandable tier cards), `DocSidebar` (slide-out documentation panel), and the default export `RiskRadar`.
25+
- **Components** (not exported, all in the same file): `RadarChart` (SVG polygon radar), `MitigationCard` (expandable tier cards), `DocSidebar` (slide-out documentation panel using asciidoctor.js), and the default export `RiskRadar`.
2726
- **Styling**: All inline styles, no CSS modules or styled-components. Dark theme with slate color palette. Colors defined via `TIER_BG` and `TYPE_COLORS` constants.
2827

28+
- **`src/i18n.js`** — Full DE/EN translations (~353 lines): dimension definitions, preset scenarios, mitigation measures, and documentation content with AsciiDoc markup and hyperlinked references.
29+
2930
- **`docs/risk-radar.adoc`** — Standalone AsciiDoc documentation with 30+ references. Rendered separately by Asciidoctor (not by the React app).
3031

3132
### Deployment

0 commit comments

Comments
 (0)