diff --git a/src/lib/layouts/DocsArticle.svelte b/src/lib/layouts/DocsArticle.svelte index 2fdb351aa5..18c093f560 100644 --- a/src/lib/layouts/DocsArticle.svelte +++ b/src/lib/layouts/DocsArticle.svelte @@ -27,6 +27,7 @@ import { Button, Icon } from '$lib/components/ui'; import Info from '$markdoc/tags/Info.svelte'; import CopyAsMarkdown from '$lib/components/blog/copy-as-markdown.svelte'; + import { hasRoutePrompt } from '$lib/utils/routePrompts'; export let title: string; export let toc: Array; @@ -37,6 +38,8 @@ const headerSectionInfoAlert = hasContext('headerSectionInfoAlert') ? getContext>('headerSectionInfoAlert') : readable(null); + + const showCopyPage = !hasRoutePrompt();
@@ -49,9 +52,11 @@ {/if} -
- -
+ {#if showCopyPage} +
+ +
+ {/if}