Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions blog/assets/make-diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"""The diagrams for the abap2UI5 Know-How series.

Run from the repository root: python3 blog/assets/make-diagrams.py
Writes blog/assets/diagrams/*.svg, one per article that needs one.
Writes docs/public/insights/*.svg, one per article that needs one - the pages
reference them absolutely (/insights/...), because generate-llms.mjs copies
every page into docs/public/ as raw markdown and a relative asset path does not
resolve from that copy.

WHY SVG AND NOT PNG. These are boxes, arrows and words - the one thing a
raster format is worst at. An SVG stays sharp at any width, diffs as text when
Expand All @@ -20,7 +23,8 @@
"""
import os

OUT = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'diagrams')
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
OUT = os.path.join(ROOT, 'docs', 'public', 'insights')
R, R2, RL = '#D03C4A', '#A83232', '#F6E3E5'
CREAM, SAND, WHITE = '#FAF2EC', '#F0DFD2', '#FFFFFF'
INK, MUTED, LINE = '#3A2A2E', '#9C8A8E', '#D8C7BC'
Expand Down
Loading