docs(website): add Notion case study and improve onboarding

The Electron guide currently uses a teaching fixture. Add a real Notion clipboard case with REA findings, short source excerpts and responsive figures, alongside the existing DX-Ball reconstruction.

- Trace the saved Notion 7.6.1 preload API through its wrappers to the clipboard receiver. Attribute the separate web-cache module probes to their original harness. Public content uses relative source locations and generic example data; packages and complete captures stay local.
- Add a Showcases index and links from the homepage and JavaScript guide. Simplify homepage copy while preserving the approved headline and closing question.
- Show copyable agent installation prompts and the direct setup command. Keep terminal cursors blinking consistently and respect reduced-motion settings.
- Provide one Notes example ZIP. Generate it from the six public source files before website checks and manual Pages deployment; verify its contents against the source. Pages remains manual-only.

Validation:
- `npm run check:fast`
- `python3 scripts/prepare-website.py` and `python3 scripts/verify-website.py`
- Browser checks at `/` and `/rea/`: downloads, prompt/command copying, responsive layouts, keyboard navigation, reduced motion and DX-Ball comparison controls.
- Published REA 4.1.0 preload analysis and feature traces; source/claim/privacy review.
- Real Hopper/Ghidra verification: not performed (website-only change).
This commit is contained in:
ysopwnable
2026-10-07 20:59:56 +08:00
committed by GitHub
parent a65755728f
commit a6ba772c08
19 changed files with 1099 additions and 143 deletions
+73 -5
View File
@@ -766,9 +766,7 @@ pre code {
margin-left: 0.4em;
vertical-align: -0.12em;
background: #9bbfe5;
}
.agent-terminal.is-visible .terminal-cursor {
animation: terminal-blink 1s step-end 6;
animation: terminal-blink 1s step-end infinite;
}
@keyframes terminal-blink {
50% {
@@ -840,6 +838,61 @@ pre code {
color: var(--ink);
font-size: 0.9rem;
}
.notion-bridge-flow {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.notion-channel {
color: var(--accent);
background: #edf2f8;
border-radius: 2px;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
.notion-clipboard-grid,
.notion-table-example {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.notion-clipboard-grid .code-block,
.notion-table-example .code-block {
min-width: 0;
margin: 0;
}
.notion-clipboard-grid pre,
.notion-table-example pre {
padding: 1rem;
font-size: 0.75rem;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.notion-mini-flow {
display: flex;
flex-wrap: wrap;
gap: 0.6rem 1.8rem;
margin: 1.3rem 0 0;
padding: 0;
list-style: none;
font-size: 0.8rem;
}
.notion-mini-flow li {
position: relative;
margin: 0;
}
.notion-mini-flow li:not(:last-child)::after {
content: "→";
position: absolute;
right: -1.3rem;
color: #8191a2;
}
.case-preview {
margin: 0;
}
.case-preview pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
font-size: 0.8rem;
}
.workflow-figure figcaption {
margin-top: 1rem;
color: var(--muted);
@@ -940,7 +993,8 @@ pre code {
.rea-query-pair {
grid-template-columns: 1fr;
}
.flow-steps {
.flow-steps,
.notion-bridge-flow {
grid-template-columns: 1fr;
gap: 2rem;
}
@@ -1048,6 +1102,20 @@ pre code {
.workflow-figure {
padding: 1rem;
}
.notion-clipboard-grid,
.notion-table-example {
grid-template-columns: 1fr;
}
.notion-mini-flow {
display: grid;
gap: 1.5rem;
}
.notion-mini-flow li:not(:last-child)::after {
content: "↓";
right: auto;
left: 0.4rem;
bottom: -1.4rem;
}
.step-selector {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@@ -1061,7 +1129,7 @@ pre code {
}
@media (prefers-reduced-motion: reduce) {
.agent-terminal.is-visible .terminal-cursor {
.terminal-cursor {
animation: none;
}
}