Skip to content

Commit e9c5ed9

Browse files
committed
docs: send the badge's no-clipboard fallback to the docs that show its prompt
1 parent 4f02aa3 commit e9c5ed9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎website/src/pages/index.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Head from "@docusaurus/Head";
22
import Link from "@docusaurus/Link";
33
import Translate, { translate } from "@docusaurus/Translate";
4+
import useBaseUrl from "@docusaurus/useBaseUrl";
45
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
56
import Heading from "@theme/Heading";
67
import Layout from "@theme/Layout";
@@ -58,12 +59,13 @@ function CopyButton({ text }: { text: string }) {
5859

5960
// Beside the download button: one click copies the demo prompt, and the label says where it goes.
6061
function AgentBadge() {
61-
// Without a clipboard, the agent section below has the same kind of prompt to select by hand.
62+
// Without a clipboard, the AI editing docs show this same prompt to select by hand.
63+
const docs = useBaseUrl("/docs/ai-editing#letting-an-agent-make-the-whole-video");
6264
// Long enough to read the instruction that replaces the label.
6365
const [copied, copy] = useCopy(
6466
DEMO_PROMPT,
6567
() => {
66-
window.location.hash = "coding-agents";
68+
window.location.assign(docs);
6769
},
6870
4000,
6971
);

0 commit comments

Comments
 (0)