Skip to content

Commit 74819ab

Browse files
brunoborgesCopilot
andcommitted
Add generate.py to build HTML pages from JSON snippets
Python script reads category/*.json files and generates HTML detail pages using a consistent template. Replaces hand-crafted HTML with generated output. Main content sections are identical to originals. Related card sections now use canonical JSON data instead of hand-edited snippets, fixing stale code examples and inconsistent labels. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 663bdf6 commit 74819ab

31 files changed

+432
-56
lines changed

concurrency/completablefuture-chaining.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ <h3>Stable values</h3>
227227
}</pre>
228228
</div>
229229
<div class="card-code-layer modern-layer">
230-
<div class="mini-label">Java 25</div>
230+
<div class="mini-label">Java 25 (Preview)</div>
231231
<pre class="code-text">private final StableValue&lt;Logger&gt; logger =
232232
StableValue.of(this::createLogger);
233233

@@ -302,7 +302,7 @@ <h3>Structured concurrency</h3>
302302
} finally { exec.shutdown(); }</pre>
303303
</div>
304304
<div class="card-code-layer modern-layer">
305-
<div class="mini-label">Java 25</div>
305+
<div class="mini-label">Java 25 (Preview)</div>
306306
<pre class="code-text">try (var scope = new StructuredTaskScope
307307
.ShutdownOnFailure()) {
308308
var u = scope.fork(this::fetchUser);

concurrency/concurrent-http-virtual.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ <h3>Structured concurrency</h3>
232232
} finally { exec.shutdown(); }</pre>
233233
</div>
234234
<div class="card-code-layer modern-layer">
235-
<div class="mini-label">Java 25</div>
235+
<div class="mini-label">Java 25 (Preview)</div>
236236
<pre class="code-text">try (var scope = new StructuredTaskScope
237237
.ShutdownOnFailure()) {
238238
var u = scope.fork(this::fetchUser);
@@ -273,7 +273,7 @@ <h3>Stable values</h3>
273273
}</pre>
274274
</div>
275275
<div class="card-code-layer modern-layer">
276-
<div class="mini-label">Java 25</div>
276+
<div class="mini-label">Java 25 (Preview)</div>
277277
<pre class="code-text">private final StableValue&lt;Logger&gt; logger =
278278
StableValue.of(this::createLogger);
279279

@@ -315,7 +315,7 @@ <h3>Lock-free lazy initialization</h3>
315315
}</pre>
316316
</div>
317317
<div class="card-code-layer modern-layer">
318-
<div class="mini-label">Java 25</div>
318+
<div class="mini-label">Java 25 (Preview)</div>
319319
<pre class="code-text">class Config {
320320
private static final
321321
StableValue&lt;Config&gt; INST =

concurrency/lock-free-lazy-init.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,4 @@ <h3>Scoped values</h3>
343343

344344
<script src="../app.js"></script>
345345
</body>
346-
</html>
346+
</html>

concurrency/scoped-values.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,4 @@ <h3>Stable values</h3>
338338

339339
<script src="../app.js"></script>
340340
</body>
341-
</html>
341+
</html>

concurrency/stable-values.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,4 @@ <h3>Scoped values</h3>
338338

339339
<script src="../app.js"></script>
340340
</body>
341-
</html>
341+
</html>

concurrency/structured-concurrency.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,4 @@ <h3>Stable values</h3>
338338

339339
<script src="../app.js"></script>
340340
</body>
341-
</html>
341+
</html>

concurrency/thread-sleep-duration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ <h3>Stable values</h3>
229229
}</pre>
230230
</div>
231231
<div class="card-code-layer modern-layer">
232-
<div class="mini-label">Java 25</div>
232+
<div class="mini-label">Java 25 (Preview)</div>
233233
<pre class="code-text">private final StableValue&lt;Logger&gt; logger =
234234
StableValue.of(this::createLogger);
235235

0 commit comments

Comments
 (0)