cvpfus Codex commited on
Commit ·
0897844
1
Parent(s): dfd3402
Remove field notes section from UI
Browse filesCo-authored-by: Codex <codex@openai.com>
- scripts/verify.py +2 -0
- static/index.html +0 -15
scripts/verify.py
CHANGED
|
@@ -36,6 +36,8 @@ def verify_static_assets() -> None:
|
|
| 36 |
index_html = (ROOT / "static" / "index.html").read_text(encoding="utf-8")
|
| 37 |
assert_true('data-reader-type="heading"' in index_html, "Article should mark heading reader nodes")
|
| 38 |
assert_true('data-reader-type="image"' in index_html, "Article should mark image reader nodes")
|
|
|
|
|
|
|
| 39 |
assert_true('alt=""' not in index_html, "Article images should not start with empty alt text")
|
| 40 |
assert_true(
|
| 41 |
"reader brain, vision, speech, and image generation models" in index_html,
|
|
|
|
| 36 |
index_html = (ROOT / "static" / "index.html").read_text(encoding="utf-8")
|
| 37 |
assert_true('data-reader-type="heading"' in index_html, "Article should mark heading reader nodes")
|
| 38 |
assert_true('data-reader-type="image"' in index_html, "Article should mark image reader nodes")
|
| 39 |
+
assert_true('href="#notes"' not in index_html, "Article navigation should not include the Field Notes section")
|
| 40 |
+
assert_true('id="notes"' not in index_html, "Article UI should not render the Field Notes section")
|
| 41 |
assert_true('alt=""' not in index_html, "Article images should not start with empty alt text")
|
| 42 |
assert_true(
|
| 43 |
"reader brain, vision, speech, and image generation models" in index_html,
|
static/index.html
CHANGED
|
@@ -15,7 +15,6 @@
|
|
| 15 |
<nav class="topnav" aria-label="Article sections">
|
| 16 |
<a href="#why">Why</a>
|
| 17 |
<a href="#models">Models</a>
|
| 18 |
-
<a href="#notes">Field Notes</a>
|
| 19 |
</nav>
|
| 20 |
<button id="readerToggle" class="reader-toggle" type="button" aria-pressed="false">
|
| 21 |
<span class="toggle-dot" aria-hidden="true"></span>
|
|
@@ -70,20 +69,6 @@
|
|
| 70 |
</figure>
|
| 71 |
</section>
|
| 72 |
|
| 73 |
-
<section id="notes" aria-labelledby="notesTitle">
|
| 74 |
-
<h2 id="notesTitle" class="speakable" data-reader-type="heading">Field notes as a feature</h2>
|
| 75 |
-
<p class="speakable" data-reader-type="paragraph">
|
| 76 |
-
The build report will show parameter counts, latency notes, keyboard decisions, and where the app
|
| 77 |
-
uses deterministic fallbacks so the accessibility layer remains dependable during a live demo.
|
| 78 |
-
</p>
|
| 79 |
-
<figure class="inline-figure speakable" data-reader-type="image" data-image-id="field-notes">
|
| 80 |
-
<img
|
| 81 |
-
src="/static/generated/field-notes.svg"
|
| 82 |
-
alt="Notebook-style field notes about model sizes, keyboard controls, and accessibility checks."
|
| 83 |
-
/>
|
| 84 |
-
<figcaption>Field notes document the choices behind the screen-reader behavior.</figcaption>
|
| 85 |
-
</figure>
|
| 86 |
-
</section>
|
| 87 |
</article>
|
| 88 |
|
| 89 |
<aside class="status-panel" aria-label="Tiny Narrator status">
|
|
|
|
| 15 |
<nav class="topnav" aria-label="Article sections">
|
| 16 |
<a href="#why">Why</a>
|
| 17 |
<a href="#models">Models</a>
|
|
|
|
| 18 |
</nav>
|
| 19 |
<button id="readerToggle" class="reader-toggle" type="button" aria-pressed="false">
|
| 20 |
<span class="toggle-dot" aria-hidden="true"></span>
|
|
|
|
| 69 |
</figure>
|
| 70 |
</section>
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
</article>
|
| 73 |
|
| 74 |
<aside class="status-panel" aria-label="Tiny Narrator status">
|