You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7d191a9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/example-quality-rubric.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Topic-specific gates:
23
23
-**Broad surface tours** — if a title names a broad surface area (`Testing`, `Packages`, `Regular Expressions`, `Type Hints`, `Async Await`, `Special Methods`, `Operators`, `Literals`), the page must either cover the reader's reasonable expectations or clearly frame itself as a first pass and link to focused neighbors. A broad title with one narrow demonstration is a scope bug, not just a content gap.
24
24
-**Reduce without distorting** — small examples are good only when the necessary boundary, contrast, or edge case remains visible. If compression removes the part that makes the concept understandable, split the example or add another cell.
25
25
-**Map-or-split rule** — broad pages must either be surface maps with explicit categories and `See also` links, or be split into narrower pages. Do not ship a broad page that merely samples unrelated forms.
26
-
-**Runtime-boundary examples** — when standard Python code cannot run in Dynamic Workers, teach the standard form first, state the runtime constraint once, and avoid repeated apology or caveat-heavy prose.
26
+
-**Runtime-boundary examples** — when standard Python code cannot run in this site's live example runner, teach the standard form first, state the runner constraint once, and avoid repeated apology or caveat-heavy prose.
Copy file name to clipboardExpand all lines: docs/lessons-learned.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This document records project lessons that should guide future changes to Python
43
43
- Beware broad-surface titles that quietly teach only one narrow slice. Pages named `Testing`, `Packages`, `Regular Expressions`, `Type Hints`, `Async Await`, or `Special Methods` must either cover the forms a reader reasonably expects or explicitly frame themselves as a first pass and link to focused neighbors.
44
44
- Do not let an important syntax form live only in a separate page if another page title strongly implies it. An umbrella `Operators` page should at least point to and lightly show `:=`, even though `Assignment Expressions` remains the focused lesson.
45
45
- Journey order should follow prerequisite thinking, not catalog order. Put booleans before truthiness and conditionals, scope before closures, bytes before networking, and environment boundaries before subprocess/thread boundaries.
46
-
- Runtime-boundary caveats should not become the hero. For Dynamic Worker limitations, teach normal Python first and state the constraint once in the marked boundary cell.
46
+
- Runtime-boundary caveats should not become the hero. For live runner limitations, teach normal Python first and state the site-specific constraint once in the marked boundary cell.
47
47
- Algebrica's useful editorial principle is “reduce without distorting.” Python examples should be compact, but not so compressed that the concept loses its necessary contrast, edge case, or progression.
48
48
- Broad examples need a visible learning arc. If a page reads like a tray of samples, either add a map-like progression or split it into narrower examples.
49
49
- Keep teaching artifacts inspectable. Markdown sources, editable programs, teaching cells, expected output, and diagrams/screenshots should be clean enough to serve as public educational material, not just implementation input.
@@ -98,7 +98,7 @@ git diff --check
98
98
-**Emphasis is scarce.** With site `--accent` saturated for UI use, a coral arrow on every line reads as no emphasis at all. `closed_arrow` defaults to `emphasis=False`; figures opt in only for the single element the prose names. Same rule for accent dots, gates, and ring highlights.
99
99
-**Soft fills should be neutral, not accent-tinted.** A 5% warm-brown tint reads as a quiet container. An accent-tinted soft fill makes every object box look highlighted, which breaks the scarcity rule a second way.
100
100
-**Two rubrics, one craft section.** Journey-section figures depict a *conceptual shift* across multiple lessons; example-cell figures depict the *single move* the surrounding cell discusses. `docs/journey-visualisation-rubric.md` and `docs/example-figure-rubric.md` score each on 10 points: content fidelity, craft, context. Topic gates per kind of section / cell shape.
101
-
-**Constraint-shaped sections can improve when the constraint is drawn as a boundary, not a caveat.**Workers' runtime sections originally scored below target when the figure merely said an API was unavailable. They became rubric-complete once the diagrams showed the standard Python contract, the Worker boundary, and the portable evidence that preserves the lesson. If a constraint-shaped section cannot be reframed this way, then use the no-figure rationale registry instead of shipping a weak mechanism picture.
101
+
-**Constraint-shaped material improves when the constraint is drawn as a boundary, not a caveat.**Runtime-boundary teaching works best when it shows the standard Python contract, the site-specific runner boundary, and the portable evidence that preserves the lesson. If a constraint-shaped section cannot be reframed this way, then use the no-figure rationale registry instead of shipping a weak mechanism picture.
102
102
-**Authoring stays on the contributor; figures stay on the curator.** Example markdown does not include figure references. `src/marginalia.py` holds `FIGURES` (paint functions) and `ATTACHMENTS` (slug → cell → figure → caption). Curating figures is a single-file edit that contributors never see.
103
103
-**Inline between prose and code is the production layout; banners between cells is the prototyped richer grammar.** Cells with figures drop to single-column stacking (prose, figure, code) via `.lp-cell.has-figure { grid-template-columns: 1fr }`. Cells without figures keep today's `prose | code` 2-column grid bit-for-bit. The banner-between approach (`/prototyping/layout-banner-*`) supports multi-figure small-multiples between cells when one inline figure isn't enough.
104
104
-**Centralised gestalt pages catch drift that page-by-page review misses.**`/prototyping/marginalia-gestalt`, `/prototyping/journey-figures-gestalt`, and `/prototyping/production-figures-gestalt` show every figure in three different framings. Seeing all section figures of a journey in one 3-up row exposes inconsistencies invisible across six tabs.
Copy file name to clipboardExpand all lines: docs/quality-search.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Use these moves when a page is already close and the weakest criterion is clear:
15
15
-**Add a before/after contrast** when the feature exists to remove boilerplate or clarify a shape.
16
16
-**Add a runtime/static boundary cell** for typing pages where runtime behavior differs from type-checker behavior.
17
17
-**Add a failure/recovery cell** for parsing, exceptions, warnings, and validation examples.
18
-
-**Add a standard-Python/Worker-boundary unsupported cell** for runtime features constrained by Dynamic Workers.
18
+
-**Add a standard-Python/runner-boundary unsupported cell** for runtime features constrained by this site's live example runner.
19
19
-**Strengthen graph edges** with prerequisite, neighboring, and next-depth `see_also` links.
20
20
-**Replace generic prose** with a concrete domain pressure: user input, package setup, protocol bytes, record shape, service logging, or state transition.
21
21
@@ -58,5 +58,6 @@ Future improvements that create new quality headroom:
58
58
- Add an authoring command that proposes the top three rewrite moves for a slug from the criterion deficits.
59
59
- Add browser snapshots for representative low-score shapes, not only layout smoke.
60
60
- Track page archetypes (`foundational`, `protocol-boundary`, `static-typing`, `aggregator`, `runtime-constrained`) so rubrics can apply the right expectations.
61
+
- TODO: Design a future learner-facing journey about the limitations and adaptation choices in this site's editable examples, without framing those constraints as Cloudflare Workers platform limitations.
61
62
- Add a no-figure review path to avoid weak diagrams for constraint-shaped pages.
62
63
- Let CI post a quality delta comment for PRs: scores changed, graph edges changed, weak criteria changed.
Copy file name to clipboardExpand all lines: public/prototyping/layout-banner-pair.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@
50
50
<divclass="prototype-banner"><strong>Prototype</strong> · One banner with two figures — list mutates, tuple does not. Same grammar, just more figures in the slot. · <ahref="/prototyping/">all prototypes</a></div>
51
51
52
52
<articleclass="example-shell">
53
-
<divclass="example-top"><aclass="text-link" href="/">← All examples</a><aclass="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
53
+
<divclass="example-top"><aclass="text-link" href="/">↑ All examples</a><aclass="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
Copy file name to clipboardExpand all lines: public/prototyping/layout-banner-single.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@
50
50
<divclass="prototype-banner"><strong>Prototype</strong> · Cells keep their prose|code grid; one figure sits in a banner row between cell 0 and cell 1. · <ahref="/prototyping/">all prototypes</a></div>
51
51
52
52
<articleclass="example-shell">
53
-
<divclass="example-top"><aclass="text-link" href="/">← All examples</a><aclass="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
53
+
<divclass="example-top"><aclass="text-link" href="/">↑ All examples</a><aclass="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
Copy file name to clipboardExpand all lines: public/prototyping/layout-banner-trio.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@
50
50
<divclass="prototype-banner"><strong>Prototype</strong> · Demonstrates that the grammar accepts multiple banners at any position: lead-in figure, mid-walkthrough small-multiple pair, summary figure. Cells never reflow. · <ahref="/prototyping/">all prototypes</a></div>
51
51
52
52
<articleclass="example-shell">
53
-
<divclass="example-top"><aclass="text-link" href="/">← All examples</a><aclass="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
53
+
<divclass="example-top"><aclass="text-link" href="/">↑ All examples</a><aclass="text-link" href="https://docs.python.org/3.13/reference/datamodel.html#objects-values-and-types">Python docs reference</a></div>
0 commit comments