Deploy
This commit is contained in:
1 parent
8bbcf8ecd9
commit
45dd65b48e
116 files changed
+20457
-1164
No files matched your search
@@ -1,4 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 700" width="620" height="700"
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 750" width="620" height="750"
|
||||
role="img" aria-labelledby="fp-title">
|
||||
<title id="fp-title">La même chaîne sous forme de cinq processus distincts sur un seul ordinateur : SensorService publie un fichier .msg dans consoleIn/outbox, un processus Mediator surveille ce répertoire et publie une copie dans rot13/inbox, ProcessorService publie son résultat dans rot13/outbox, un second processus Mediator le déplace vers consoleOut/inbox, et ActuatorService l'affiche. Les quatre répertoires forment le tableau de messages sur un seul système de fichiers local.</title>
|
||||
<style><![CDATA[
|
||||
@@ -9,12 +9,19 @@
|
||||
* Classes, not per-element fills, do the work: one edit here restyles the
|
||||
* whole book.
|
||||
*
|
||||
* The palette is theme.scss's: teal #20666f for structure, amber #8a5a08 for
|
||||
* the warning accent, ink #1b2430 for text, IBM Plex to match the page.
|
||||
* Colours are the extension's tokens (_extensions/notes/theme.css) with a
|
||||
* literal fallback, which covers all three ways a figure is seen:
|
||||
*
|
||||
* Dark theme: the @media block follows the reader's system setting. librsvg
|
||||
* ignores media queries when it makes the pdf, so print always gets the light
|
||||
* theme -- which is what a printed page wants.
|
||||
* - inlined into the page by figures/flow-player.html: the tokens resolve
|
||||
* against the page, so the figure follows light, night and high contrast;
|
||||
* - as a plain <img> (JavaScript off): the fallback applies, and night mode
|
||||
* comes from the extension's invert filter on main img[src$=".svg"];
|
||||
* - in the pdf: librsvg ignores var() and uses the fallback, so print gets
|
||||
* the light palette -- which is what a printed page wants.
|
||||
*
|
||||
* The fallbacks are this book's own light values; the tokens carry the night
|
||||
* and high-contrast ones. Nothing here keys off prefers-color-scheme: the
|
||||
* page's toggle decides, never the reader's system setting.
|
||||
*/
|
||||
|
||||
svg {
|
||||
@@ -25,32 +32,32 @@ svg {
|
||||
|
||||
/* ---- surfaces ------------------------------------------------------- */
|
||||
|
||||
.box { fill: #eef3f7; stroke: #20666f; stroke-width: 1.4; }
|
||||
.box-weak { fill: #eef3f7; stroke: #20666f; stroke-width: 1.4; }
|
||||
.box-accent { fill: #e5eff1; stroke: #20666f; stroke-width: 1.8; }
|
||||
.box-warn { fill: #f8f1e0; stroke: #8a5a08; stroke-width: 1.4; }
|
||||
.box-plain { fill: #fbfcfd; stroke: #dae0e8; stroke-width: 1.2; }
|
||||
.diamond { fill: #e5eff1; stroke: #20666f; stroke-width: 1.4; }
|
||||
.ellipse { fill: #fbfcfd; stroke: #5a6879; stroke-width: 1.2; }
|
||||
.box { fill: var(--calc-faint, #eef3f7); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.4; }
|
||||
.box-weak { fill: var(--calc-faint, #eef3f7); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.4; }
|
||||
.box-accent { fill: var(--calc-faint, #e5eff1); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.8; }
|
||||
.box-warn { fill: var(--calc-faint, #f8f1e0); stroke: var(--calc-accent-b, #D1541F); stroke-width: 1.4; }
|
||||
.box-plain { fill: var(--calc-surface, #fbfcfd); stroke: var(--calc-grid, #dae0e8); stroke-width: 1.2; }
|
||||
.diamond { fill: var(--calc-faint, #e5eff1); stroke: var(--calc-notecolor, #20666f); stroke-width: 1.4; }
|
||||
.ellipse { fill: var(--calc-surface, #fbfcfd); stroke: var(--calc-muted, #5a6879); stroke-width: 1.2; }
|
||||
|
||||
/* ---- lines ---------------------------------------------------------- */
|
||||
|
||||
.edge { fill: none; stroke: #5a6879; stroke-width: 1.3; }
|
||||
.edge-strong{ fill: none; stroke: #20666f; stroke-width: 1.8; }
|
||||
.edge-warn { fill: none; stroke: #8a5a08; stroke-width: 1.6; }
|
||||
.edge-dash { fill: none; stroke: #5a6879; stroke-width: 1.2; stroke-dasharray: 5 3; }
|
||||
.rule { stroke: #dae0e8; stroke-width: 1; }
|
||||
.edge { fill: none; stroke: var(--calc-muted, #5a6879); stroke-width: 1.3; }
|
||||
.edge-strong{ fill: none; stroke: var(--calc-notecolor, #20666f); stroke-width: 1.8; }
|
||||
.edge-warn { fill: none; stroke: var(--calc-accent-b, #D1541F); stroke-width: 1.6; }
|
||||
.edge-dash { fill: none; stroke: var(--calc-muted, #5a6879); stroke-width: 1.2; stroke-dasharray: 5 3; }
|
||||
.rule { stroke: var(--calc-grid, #dae0e8); stroke-width: 1; }
|
||||
|
||||
/* ---- text ----------------------------------------------------------- */
|
||||
|
||||
.t { fill: #1b2430; font-size: 13px; }
|
||||
.t-sm { fill: #1b2430; font-size: 11px; }
|
||||
.t-lead { fill: #1b2430; font-size: 14px; font-weight: 600; }
|
||||
.t-mut { fill: #5a6879; font-size: 11px; }
|
||||
.t-key { fill: #1b2430; font-size: 12px; text-decoration: underline; }
|
||||
.t-accent { fill: #20666f; font-size: 12px; font-weight: 600; }
|
||||
.t-warn { fill: #8a5a08; font-size: 12px; font-weight: 600; }
|
||||
.t-mono { fill: #1b2430; font-size: 11.5px;
|
||||
.t { fill: var(--calc-ink, #1b2430); font-size: 13px; }
|
||||
.t-sm { fill: var(--calc-ink, #1b2430); font-size: 11px; }
|
||||
.t-lead { fill: var(--calc-ink, #1b2430); font-size: 14px; font-weight: 600; }
|
||||
.t-mut { fill: var(--calc-muted, #5a6879); font-size: 11px; }
|
||||
.t-key { fill: var(--calc-ink, #1b2430); font-size: 12px; text-decoration: underline; }
|
||||
.t-accent { fill: var(--calc-notecolor, #20666f); font-size: 12px; font-weight: 600; }
|
||||
.t-warn { fill: var(--calc-accent-b, #D1541F); font-size: 12px; font-weight: 600; }
|
||||
.t-mono { fill: var(--calc-ink, #1b2430); font-size: 11.5px;
|
||||
font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
|
||||
|
||||
.mid { text-anchor: middle; }
|
||||
@@ -67,7 +74,7 @@ svg {
|
||||
.node:hover .box,
|
||||
.node:hover .box-accent,
|
||||
.node:hover .diamond { stroke-width: 2.6; }
|
||||
.node:hover .t, .node:hover .t-lead { fill: #20666f; }
|
||||
.node:hover .t, .node:hover .t-lead { fill: var(--calc-notecolor, #20666f); }
|
||||
|
||||
svg:hover .node:not(:hover) { opacity: .55; }
|
||||
|
||||
@@ -78,43 +85,14 @@ svg:not(:has(.node)) .node { opacity: 1; }
|
||||
.node { transition: none; }
|
||||
}
|
||||
|
||||
/* ---- dark theme ------------------------------------------------------ */
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.box { fill: #1d2b33; stroke: #4c9aa5; }
|
||||
.box-weak { fill: #1d2b33; stroke: #4c9aa5; }
|
||||
.box-accent { fill: #24363d; stroke: #4c9aa5; }
|
||||
.box-warn { fill: #332a18; stroke: #c99a3a; }
|
||||
.box-plain { fill: #161b22; stroke: #30363d; }
|
||||
.diamond { fill: #24363d; stroke: #4c9aa5; }
|
||||
.ellipse { fill: #161b22; stroke: #8b98a8; }
|
||||
|
||||
.edge { stroke: #8b98a8; }
|
||||
.edge-strong{ stroke: #4c9aa5; }
|
||||
.edge-warn { stroke: #c99a3a; }
|
||||
.edge-dash { stroke: #8b98a8; }
|
||||
.rule { stroke: #30363d; }
|
||||
|
||||
.t, .t-sm, .t-lead, .t-key, .t-mono { fill: #e6edf3; }
|
||||
.t-mut { fill: #8b98a8; }
|
||||
.t-accent { fill: #4c9aa5; }
|
||||
.t-warn { fill: #c99a3a; }
|
||||
|
||||
.node:hover .t, .node:hover .t-lead { fill: #7fc4cf; }
|
||||
|
||||
.arrow { fill: #8b98a8; }
|
||||
.arrow-strong { fill: #4c9aa5; }
|
||||
.arrow-warn { fill: #c99a3a; }
|
||||
}
|
||||
|
||||
/* ---- arrowheads ======================================================
|
||||
* marker contents cannot inherit the referencing element's fill, so each
|
||||
* arrowhead is its own class and is themed alongside the line it ends.
|
||||
*/
|
||||
|
||||
.arrow { fill: #5a6879; }
|
||||
.arrow-strong { fill: #20666f; }
|
||||
.arrow-warn { fill: #8a5a08; }
|
||||
.arrow { fill: var(--calc-muted, #5a6879); }
|
||||
.arrow-strong { fill: var(--calc-notecolor, #20666f); }
|
||||
.arrow-warn { fill: var(--calc-accent-b, #D1541F); }
|
||||
|
||||
]]></style>
|
||||
|
||||
@@ -203,9 +181,17 @@ svg:not(:has(.node)) .node { opacity: 1; }
|
||||
<!-- the four directories belong to one message board on one filesystem -->
|
||||
<path class="edge-dash" d="M436,98 H452 V580 H436"/>
|
||||
<text class="t-mono" x="460" y="330">messageBoard/</text>
|
||||
<text class="t-mut" data-label="board" x="460" y="348">répertoire = boîte, fichier = message</text>
|
||||
<!-- two lines: one line of this label ran past the 620-wide viewBox in
|
||||
German and French, where an svg root clips rather than overflows =
|
||||
a truncated label at phone width. -->
|
||||
<text class="t-mut" data-label="board" x="460" y="348">répertoire = boîte</text>
|
||||
<text class="t-mut" data-label="board2" x="460" y="363">fichier = message</text>
|
||||
|
||||
<!-- the five processes are started by hand, one terminal each -->
|
||||
<path class="edge-dash" d="M104,24 H88 V654 H104"/>
|
||||
<text class="t-warn" data-label="topology" x="14" y="686">Cinq processus lancés à la main. La topologie vit désormais dans les deux lignes de commande Mediator — chez celui qui les a tapées.</text>
|
||||
<!-- three lines: one ran well past the viewBox in every language, and an
|
||||
svg root clips rather than overflows. -->
|
||||
<text class="t-warn" data-label="topology" x="14" y="700">Cinq processus lancés à la main.</text>
|
||||
<text class="t-warn" data-label="topology2" x="14" y="716">La topologie vit désormais dans les deux lignes de commande</text>
|
||||
<text class="t-warn" data-label="topology3" x="14" y="732">Mediator — chez celui qui les a tapées.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
Reference in new issue
Block a user