diff --git a/docs/app/components/demos/recovery-demo.tsx b/docs/app/components/demos/recovery-demo.tsx index c0fcb816..aba26ccc 100644 --- a/docs/app/components/demos/recovery-demo.tsx +++ b/docs/app/components/demos/recovery-demo.tsx @@ -194,6 +194,12 @@ export default function RecoveryDemo(_props: DemoProps) { setPlaying(true); }, [reduced, DUR]); + // Auto-play on open; startPlay() shows the finished frame under reduced motion. + // biome-ignore lint/correctness/useExhaustiveDependencies: run once on mount. + useEffect(() => { + startPlay(); + }, []); + const setFromX = useCallback( (clientX: number) => { const track = trackRef.current; diff --git a/docs/app/components/landing/footer.tsx b/docs/app/components/landing/footer.tsx index ac0e5e3a..84ae03c6 100644 --- a/docs/app/components/landing/footer.tsx +++ b/docs/app/components/landing/footer.tsx @@ -1,22 +1,32 @@ import { Link } from "react-router"; +import { useActiveSdk } from "@/hooks"; -const COLS = [ +type FootLink = { + label: string; + /** When `sdk` is set, this is an SDK-relative path (prefixed with /python|/node). */ + href: string; + external?: boolean; + sdk?: boolean; +}; + +const COLS: { title: string; links: FootLink[] }[] = [ { title: "Docs", links: [ { label: "Getting Started", - href: "/python/getting-started/installation", + href: "getting-started/installation", + sdk: true, }, - { label: "Guides", href: "/python/guides" }, + { label: "Guides", href: "guides", sdk: true }, { label: "Architecture", href: "/architecture" }, - { label: "API Reference", href: "/python/api-reference" }, + { label: "API Reference", href: "api-reference", sdk: true }, ], }, { title: "More", links: [ - { label: "Examples", href: "/python/more/examples" }, + { label: "Examples", href: "more/examples", sdk: true }, { label: "Celery comparison", href: "/resources/comparison" }, { label: "FAQ", href: "/resources/faq" }, { label: "Changelog", href: "/resources/changelog" }, @@ -50,6 +60,7 @@ const COLS = [ ]; export function Footer() { + const sdk = useActiveSdk(); return (