Skip to content

Commit c17e1a1

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

website/theme/components/AgentPrompt.tsx

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

122122
export function AgentPrompt() {
123+
if (import.meta.env.SSG_MD) {
124+
return <>{`\`\`\`\n${PROMPT_TEXT}\n\`\`\``}</>;
125+
}
126+
123127
const [index, setIndex] = useState(0);
124128
const [fading, setFading] = useState(false);
125129
const [copied, setCopied] = useState(false);

0 commit comments

Comments
 (0)