diff --git a/src/components/DocumentCloud/DocumentCloud.mdx b/src/components/DocumentCloud/DocumentCloud.mdx new file mode 100644 index 00000000..88dec3d1 --- /dev/null +++ b/src/components/DocumentCloud/DocumentCloud.mdx @@ -0,0 +1,26 @@ +import { Meta, Canvas } from '@storybook/blocks'; + +import * as DocumentCloudStories from './DocumentCloud.stories.svelte'; + + + +# DocumentCloud + +The `DocumentCloud` component embeds a document hosted by [DocumentCloud](https://documentcloud.org). + +The document must have its access level set to **public** before it can be embedded. The `slug` can be found after the final slash in the document's URL. + +For instance, the document included in the example is found at [documentcloud.org/documents/3259984-Trump-Intelligence-Allegations](https://www.documentcloud.org/documents/3259984-Trump-Intelligence-Allegations). The `slug` is `3259984-Trump-Intelligence-Allegations`. + +```svelte + + + +``` + + diff --git a/src/components/DocumentCloud/DocumentCloud.stories.svelte b/src/components/DocumentCloud/DocumentCloud.stories.svelte index 7a111585..22f69e6d 100644 --- a/src/components/DocumentCloud/DocumentCloud.stories.svelte +++ b/src/components/DocumentCloud/DocumentCloud.stories.svelte @@ -1,38 +1,23 @@ - - - - diff --git a/src/components/DocumentCloud/DocumentCloud.svelte b/src/components/DocumentCloud/DocumentCloud.svelte index 195c4c8a..01a86cc6 100644 --- a/src/components/DocumentCloud/DocumentCloud.svelte +++ b/src/components/DocumentCloud/DocumentCloud.svelte @@ -1,43 +1,41 @@ - diff --git a/src/components/DocumentCloud/stories/docs/component.md b/src/components/DocumentCloud/stories/docs/component.md deleted file mode 100644 index 6b52ec2a..00000000 --- a/src/components/DocumentCloud/stories/docs/component.md +++ /dev/null @@ -1,17 +0,0 @@ -Embed a document hosted by [DocumentCloud](https://documentcloud.org) - ---- - -The document must have its access level set to public before it can be embedded. The `slug` argument can be found after the final slash in the document's URL. For instance, the document included in the example is found at [documentcloud.org/documents/3259984-Trump-Intelligence-Allegations](https://www.documentcloud.org/documents/3259984-Trump-Intelligence-Allegations). The slug is "3259984-Trump-Intelligence-Allegations". - -```svelte - - - -```