From b41d9311bdb58a4bd20df05ea2ad770225da7c76 Mon Sep 17 00:00:00 2001 From: Melissa Henderson <57110301+melissahenderson@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:45:26 -0400 Subject: [PATCH] Small content updates --- astro.config.mjs | 6 ++++++ src/content/config.ts | 8 ++++---- src/content/docs/classes/img-outline.mdx | 17 +++++++++++++++++ src/content/docs/components/snippets.mdx | 21 +++++++++++++++++++++ tsconfig.json | 2 +- 5 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 src/content/docs/classes/img-outline.mdx create mode 100644 src/content/docs/components/snippets.mdx diff --git a/astro.config.mjs b/astro.config.mjs index a96e029..c76e952 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -33,6 +33,12 @@ export default defineConfig({ directory: "components", }, }, + { + label: "Classes", + autogenerate: { + directory: "classes", + }, + }, ], }), ], diff --git a/src/content/config.ts b/src/content/config.ts index 9df91b6..f043fb4 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -1,7 +1,7 @@ -import { defineCollection } from 'astro:content'; -import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'; +import { defineCollection } from "astro:content"; +import { docsSchema, i18nSchema } from "@astrojs/starlight/schema"; export const collections = { - docs: defineCollection({ schema: docsSchema() }), - i18n: defineCollection({ type: 'data', schema: i18nSchema() }), + docs: defineCollection({ schema: docsSchema() }), + i18n: defineCollection({ type: "data", schema: i18nSchema() }), }; diff --git a/src/content/docs/classes/img-outline.mdx b/src/content/docs/classes/img-outline.mdx new file mode 100644 index 0000000..83b2fdb --- /dev/null +++ b/src/content/docs/classes/img-outline.mdx @@ -0,0 +1,17 @@ +--- +title: img-outline +--- + +import { LinkOut } from "@interledger/docs-design-system"; + +Use the `img-outline` class to add a border to an image. The border is 1px solid gray with rounded edges and a bit of a drop shadow. + +```html +Alt text goes here +``` + +See the Web Monetization flow sequence diagram for an example. diff --git a/src/content/docs/components/snippets.mdx b/src/content/docs/components/snippets.mdx new file mode 100644 index 0000000..e8dec8f --- /dev/null +++ b/src/content/docs/components/snippets.mdx @@ -0,0 +1,21 @@ +--- +title: Snippet +--- + +:::danger +HJ is still building out this component to work the way we need it to. +::: + +## Usage + +Import the `Snippets` component like so: + +```jsx +import Snippet from "/src/components/Snippet.astro"; +``` + +Use the `` component within your content like so: + +``` + +``` diff --git a/tsconfig.json b/tsconfig.json index 032ad64..b7243b9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,4 +4,4 @@ "jsx": "react-jsx", "jsxImportSource": "react" } -} \ No newline at end of file +}