operations_research/web_04/assets/icons.svg

41 lines
3 KiB
XML
Raw Normal View History

Statische Website-Assets in die Quelle web_04/ holen site.css, site.js, icons.svg, plotly.min.js und die 22 KaTeX-Dateien lagen in OR_HTML_04/, obwohl kein Skript sie je geschrieben hat. Die Falle daran: Wer eine CSS-Regel suchte, suchte sie in den Quellen und fand nichts - genau das ist beim Einruecken des ZIP-Menuepunkts passiert. Und wer OR_HTML_04/ geloescht und neu gebaut haette, haette eine Website ohne Stil, ohne Symbole und ohne Formelsatz bekommen. Jetzt liegen sie in web_04/, dessen Aufbau (assets/, katex/) das Ziel spiegelt. spiegle_statische_assets() kopiert sie bei JEDEM Lauf. kopiere_plotly_bibliothek() fuellt die Quelle statt des Ziels. _lade_icon_sprite_inline() und die beiden KaTeX-Pruefungen lesen die Quelle, haengen also nicht mehr vom eigenen Ergebnis ab. Zwei Waechter, weil genau diese Verwechslung schon vorgekommen ist: * Wurde die Kopie in OR_HTML_04/ von Hand geaendert (Inhalt weicht ab UND Zeitstempel ist neuer), bricht der Bau ab und nennt den mv-Befehl, der es richtigstellt - kein stilles Ueberschreiben. * pruefe_assets() liest die href=/src=-Literale aus dem Quelltext des Bauskripts und verlangt fuer jedes einen Erzeuger: entweder web_04/ oder die Liste ERZEUGTE_ASSETS (highlight.css, search-index.js, programme.js). Probe: rm -rf OR_HTML_04 && --html baut alle 213 Dateien wieder auf, Dateiliste identisch zur Sicherung. Fund dabei: Das Stichwortverzeichnis war nicht byte-reproduzierbar ziel_links() sortierte nach (seite, kontext) - und kontext ist der Kapiteltitel, fuer alle Marken einer Datei also derselbe. Bei zwei Fundstellen im selben Kapitel war der Schluessel gleich, und die Reihenfolge fiel auf die eines set() zurueck, also auf den je Prozess zufaelligen PYTHONHASHSEED. Zwei Laeufe erzeugten unterschiedliche Bytes ohne Quellaenderung. Derselbe Fehler war auch sichtbar: vier {idx:Branch-and-Bound} in Kapitel 6 ergaben vier optisch identische Links nebeneinander; zehn Registereintraege waren betroffen. Behoben durch einen Link je Kapitel (erste Fundstelle in Dokumentreihenfolge, dict statt set) - das macht die Sortierung zugleich eindeutig. Gegenprobe: drei Laeufe mit PYTHONHASHSEED=random liefern dieselbe Pruefsumme. 219 Fachbegriffe und 328 Indexmarken unveraendert. Nachtrag zum vorigen Commit: highlight.css gehoert NICHT zu den Handdateien - erzeuge_highlight_css() erzeugt sie aus pandoc --print-highlight-style. Die Notiz in PROGRESS.md ist korrigiert. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 16:24:56 +02:00
<svg xmlns="http://www.w3.org/2000/svg" style="display:none">
<symbol id="icon-menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
<line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/>
</symbol>
<symbol id="icon-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
<circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.2" y2="16.2"/>
</symbol>
<symbol id="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
<circle cx="12" cy="12" r="4.5"/>
<line x1="12" y1="1.5" x2="12" y2="4"/><line x1="12" y1="20" x2="12" y2="22.5"/>
<line x1="1.5" y1="12" x2="4" y2="12"/><line x1="20" y1="12" x2="22.5" y2="12"/>
<line x1="4.5" y1="4.5" x2="6.2" y2="6.2"/><line x1="17.8" y1="17.8" x2="19.5" y2="19.5"/>
<line x1="19.5" y1="4.5" x2="17.8" y2="6.2"/><line x1="6.2" y1="17.8" x2="4.5" y2="19.5"/>
</symbol>
<symbol id="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 14.5A8.5 8.5 0 1 1 9.5 4a6.8 6.8 0 0 0 10.5 10.5z"/>
</symbol>
<symbol id="icon-chevron-left" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 4 7 12 15 20"/>
</symbol>
<symbol id="icon-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 4 17 12 9 20"/>
</symbol>
<symbol id="icon-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="4 13 9.5 18.5 20 6"/>
</symbol>
<symbol id="icon-external-link" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 13.5V19a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 19V7A1.5 1.5 0 0 1 5 5.5h5.5"/>
<polyline points="14.5 3.5 20.5 3.5 20.5 9.5"/><line x1="11" y1="13" x2="20" y2="4"/>
</symbol>
<symbol id="icon-book" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 5.5A2 2 0 0 1 6 4h6v16H6a2 2 0 0 0-2 1.5z"/>
<path d="M20 5.5A2 2 0 0 0 18 4h-6v16h6a2 2 0 0 1 2 1.5z"/>
</symbol>
<symbol id="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
</symbol>
<symbol id="icon-download" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 3v12"/><polyline points="7 10 12 15 17 10"/><path d="M4 19.5h16"/>
</symbol>
</svg>