Skip to content

Commit d6d2e57

Browse files
fi3eworkampagent
andcommitted
fix(docs): render AgentPrompt as plain code block in .md SSG output
Amp-Thread-ID: https://ampcode.com/threads/T-019d3e1c-5433-735f-a525-96ee6ffb303f Co-authored-by: Amp <amp@ampcode.com>
1 parent 467892b commit d6d2e57

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

website/theme/components/AgentPrompt.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ function RotatingIcon({ index, fading }: { index: number; fading: boolean }) {
120120
}
121121

122122
export function AgentPrompt() {
123+
if (import.meta.env.SSG_MD) {
124+
return (
125+
<pre>
126+
<code>{PROMPT_TEXT}</code>
127+
</pre>
128+
);
129+
}
130+
123131
const [index, setIndex] = useState(0);
124132
const [fading, setFading] = useState(false);
125133
const [copied, setCopied] = useState(false);

0 commit comments

Comments
 (0)