From 44ce1841f2207ea615fa507fb570a29a794ae2ec Mon Sep 17 00:00:00 2001 From: Iveta Date: Mon, 17 Jul 2023 16:28:20 -0400 Subject: [PATCH] Quick example creating docs with TypeDoc (#159) * Quick example creating docs with TypeDoc * Attempt to fix broken build * Fix gitignore --- .gitignore | 3 + .../docs/{intro.md => intro.mdx} | 20 ++++- .../components/ComponentDescription/index.tsx | 24 ++++++ .../src/components/ComponentProps/index.tsx | 82 +++++++++++++++++++ .../src/components/Element.tsx | 24 ++++++ .../src/theme/MDXComponents.js | 9 ++ @stellar/design-system-website/tsconfig.json | 3 +- @stellar/design-system/package.json | 4 +- .../src/components/Button/index.tsx | 27 +++++- .../src/components/Link/index.tsx | 26 +++++- @stellar/design-system/typedoc.json | 6 ++ package.json | 3 +- yarn.lock | 50 +++++++++++ 13 files changed, 271 insertions(+), 10 deletions(-) rename @stellar/design-system-website/docs/{intro.md => intro.mdx} (83%) create mode 100644 @stellar/design-system-website/src/components/ComponentDescription/index.tsx create mode 100644 @stellar/design-system-website/src/components/ComponentProps/index.tsx create mode 100644 @stellar/design-system-website/src/components/Element.tsx create mode 100644 @stellar/design-system-website/src/theme/MDXComponents.js create mode 100644 @stellar/design-system/typedoc.json diff --git a/.gitignore b/.gitignore index 33c49961..0cbbfc84 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,9 @@ node_modules */**/dist */**/build +# SDS docs +@stellar/design-system/docs + # misc .DS_Store .env diff --git a/@stellar/design-system-website/docs/intro.md b/@stellar/design-system-website/docs/intro.mdx similarity index 83% rename from @stellar/design-system-website/docs/intro.md rename to @stellar/design-system-website/docs/intro.mdx index 351b1b29..da637c1d 100644 --- a/@stellar/design-system-website/docs/intro.md +++ b/@stellar/design-system-website/docs/intro.mdx @@ -5,6 +5,12 @@ sidebar_position: 1 # Intro +Let's discover **Docusaurus in less than 5 minutes**. + +## SDS Button component + + + ```tsx live