Skip to content

Commit 82c317a

Browse files
committed
chore: update intro hero copy and sync chapter test comments
1 parent e58e41f commit 82c317a

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

‎website/src/components/SiteHero/index.tsx‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,24 @@ import { type ReactNode } from 'react';
33

44
import styles from './index.module.css';
55

6+
/* Orientation first: the H1 states both what this is (a field guide) and its
7+
payoff (agents whose output you can stand behind). The recognition hook lives
8+
in the lead, one layer down.
9+
10+
Copy note: no adversarial/security metaphors and none of the words other
11+
sections own (operator, machine, run, ships, trust, verify, decision, final
12+
call, discipline). */
613
function HeroCopy() {
714
return (
815
<div className={styles.copy}>
9-
<p className={styles.eyebrow}>For people responsible for what ships</p>
16+
<p className={styles.eyebrow}>For people taking back control</p>
1017
<Heading as="h1" className={styles.title}>
11-
It looks done. That’s when the real work starts.
18+
A field guide to AI agents you can stand behind.
1219
</Heading>
1320
<p className={styles.lead}>
1421
An agent can turn a request into a convincing change before you have
15-
time to understand its consequences. Keep the speed—and know what you
16-
are shipping.
22+
time to understand its consequences. This book is how you keep that
23+
speed—and stay accountable.
1724
</p>
1825
</div>
1926
);

‎website/src/navigation/chapters.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ test('exactly one beforeGroups entry occupies index 0 so section numbers stay st
102102
);
103103
});
104104

105-
test('first numbered chapter is how-llms-work (SiteHero CTA depends on this)', () => {
106-
// SiteHero derives number, route, and title from the first numbered chapter.
107-
// If the first numbered chapter changes, the CTA must update accordingly.
105+
test('first numbered chapter is how-llms-work (intro Next link depends on this)', () => {
106+
// The intro page's "Next:" link points at the first numbered chapter. If the
107+
// first numbered chapter changes, that link must be updated with it.
108108
const firstNumbered = chapters.find(isNumbered);
109109
assert.equal(
110110
firstNumbered?.id,
111111
'how-llms-work',
112-
'SiteHero CTA title "LLMs Demystified" is coupled to this chapter ID'
112+
'intro.mdx Next link "LLMs Demystified" is coupled to this chapter ID'
113113
);
114114
});
115115

@@ -185,8 +185,8 @@ test('Toolbox is the final category before About and has no chapter numbers', ()
185185

186186
test('chapter titles match the frontmatter titles the sidebar displays', () => {
187187
// The sidebar label comes from each doc's frontmatter, while chapters.ts
188-
// titles are the declared single source of truth (chapters.ts header);
189-
// SiteHero consumes the first one. Drift here desyncs those consumers.
188+
// titles are the declared single source of truth (chapters.ts header).
189+
// Drift here desyncs the two descriptions of the same chapter.
190190
for (const group of chapterGroups) {
191191
for (const chapter of group.chapters) {
192192
assert.equal(

0 commit comments

Comments
 (0)