-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66116de
commit 3eb8a59
Showing
174 changed files
with
141 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '!main' | ||
|
||
paths: | ||
- 'component-docs/**' | ||
|
||
name: Deploy Seed Component Docs Alpha Pages | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy Seed Component Docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.12.1 | ||
cache: yarn | ||
|
||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Build `Seed Component Docs` | ||
working-directory: ./component-docs | ||
run: | | ||
yarn build | ||
- name: Alpha Deploy `Seed Docs` at Cloudflare pages | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
command: pages publish ./component-docs/out --project-name=seed-component-design --branch=${{ github.ref_name }} |
36 changes: 36 additions & 0 deletions
36
.github/workflows/component-docs-deploy-production-pages.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'component-docs/**' | ||
|
||
name: Deploy Seed Component Docs Production Pages | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy Seed Component Docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.12.1 | ||
cache: yarn | ||
|
||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Build `Seed Component Docs` | ||
working-directory: ./component-docs | ||
run: | | ||
yarn build | ||
- name: Production Deploy `Seed Docs` at Cloudflare pages | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
command: pages publish ./component-docs/out --project-name=seed-component-design |
Binary file not shown.
Binary file removed
BIN
-7.27 KB
.yarn/cache/@contentlayer-client-npm-0.3.4-a3ac448c32-ccb591c83a.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-134 KB
.yarn/cache/@contentlayer-source-files-npm-0.3.4-97b63e7deb-1dab61004b.zip
Binary file not shown.
Binary file removed
BIN
-4.55 KB
.yarn/cache/@contentlayer-source-remote-files-npm-0.3.4-b92fbd827f-88ea1aeba7.zip
Binary file not shown.
Binary file removed
BIN
-96.6 KB
.yarn/cache/@contentlayer-utils-npm-0.3.4-6d0a662e7c-2bde956fd2.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.33 KB
.yarn/cache/@contentlayer2-client-npm-0.4.3-be1e54c364-ab1eb1b96b.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+135 KB
.yarn/cache/@contentlayer2-source-files-npm-0.4.3-351ce63637-a9349c969d.zip
Binary file not shown.
Binary file added
BIN
+4.58 KB
.yarn/cache/@contentlayer2-source-remote-files-npm-0.4.3-86e507a45d-e10bad8027.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-8.21 KB
.yarn/cache/@effect-ts-otel-exporter-trace-otlp-grpc-npm-0.15.1-02047ea55d-5f81693c72.zip
Binary file not shown.
Binary file removed
BIN
-20.2 KB
.yarn/cache/@esbuild-plugins-node-resolve-npm-0.1.4-fffd1de563-eba359dd17.zip
Binary file not shown.
Binary file added
BIN
+20.4 KB
.yarn/cache/@esbuild-plugins-node-resolve-npm-0.2.2-e46ccf8c9d-4cb460a946.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+157 KB
.yarn/cache/@jsonjoy.com-json-pack-npm-1.0.4-52a7eae8bc-21e5166d5b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+108 KB
...logs-npm-0.39.1-03b1dc4b9f-96efdaa9f2.zip → ...logs-npm-0.51.1-8cf4a62f4d-b1c99f544b.zip
Binary file not shown.
Binary file renamed
BIN
+449 KB
...core-npm-1.13.0-fbc9ece5ad-a69916bcb7.zip → ...core-npm-1.24.1-e9e93c4caa-69ddaf4e07.zip
Binary file not shown.
Binary file removed
BIN
-16 KB
.yarn/cache/@opentelemetry-exporter-trace-otlp-grpc-npm-0.39.1-4b3fdfe47e-2b75379f68.zip
Binary file not shown.
Binary file added
BIN
+16 KB
.yarn/cache/@opentelemetry-exporter-trace-otlp-grpc-npm-0.51.1-738cf35a1e-299837009a.zip
Binary file not shown.
Binary file renamed
BIN
+142 KB
...base-npm-0.39.1-3f8221c3e3-df3adcf43d.zip → ...base-npm-0.51.1-4bf4f33c7d-f4636f9855.zip
Binary file not shown.
Binary file removed
BIN
-167 KB
.yarn/cache/@opentelemetry-otlp-grpc-exporter-base-npm-0.39.1-480db48308-30eece12d4.zip
Binary file not shown.
Binary file added
BIN
+175 KB
.yarn/cache/@opentelemetry-otlp-grpc-exporter-base-npm-0.51.1-94fc00fe81-85f4b0a2b5.zip
Binary file not shown.
Binary file removed
BIN
-126 KB
.yarn/cache/@opentelemetry-otlp-transformer-npm-0.39.1-6253c96fb5-e8501850fc.zip
Binary file not shown.
Binary file added
BIN
+145 KB
.yarn/cache/@opentelemetry-otlp-transformer-npm-0.51.1-7812cddbe1-0efb7de6e0.zip
Binary file not shown.
Binary file removed
BIN
-309 KB
.yarn/cache/@opentelemetry-resources-npm-1.13.0-148d4b22aa-ef0a11596f.zip
Binary file not shown.
Binary file added
BIN
+350 KB
.yarn/cache/@opentelemetry-resources-npm-1.24.1-18af878015-4f1aa8c1ee.zip
Binary file not shown.
Binary file removed
BIN
-199 KB
.yarn/cache/@opentelemetry-sdk-logs-npm-0.39.1-7a91e29635-de9ca8b86e.zip
Binary file not shown.
Binary file added
BIN
+211 KB
.yarn/cache/@opentelemetry-sdk-logs-npm-0.51.1-877f6aa886-360db59c41.zip
Binary file not shown.
Binary file removed
BIN
-742 KB
.yarn/cache/@opentelemetry-sdk-metrics-npm-1.13.0-a6cafa2e90-2f87444b6c.zip
Binary file not shown.
Binary file added
BIN
+762 KB
.yarn/cache/@opentelemetry-sdk-metrics-npm-1.24.1-9c887eb7a7-0c19926487.zip
Binary file not shown.
Binary file renamed
BIN
+345 KB
...base-npm-1.13.0-c89ec95ad8-bfe95d56de.zip → ...base-npm-1.24.1-abf5712c77-74d37cdaeb.zip
Binary file not shown.
Binary file removed
BIN
-190 KB
.yarn/cache/@opentelemetry-semantic-conventions-npm-1.13.0-acc1d46565-9cccf1d733.zip
Binary file not shown.
Binary file added
BIN
+290 KB
.yarn/cache/@opentelemetry-semantic-conventions-npm-1.24.1-cbaaeb04f0-af5c16528b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.9 KB
.yarn/cache/@ungap-structured-clone-npm-1.2.0-648f0b82e0-4f656b7b46.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.19 KB
.yarn/cache/estree-util-attach-comments-npm-3.0.0-9a9d33e548-56254eaef3.zip
Binary file not shown.
Binary file added
BIN
+12.9 KB
.yarn/cache/estree-util-build-jsx-npm-3.0.1-e6ce7e25ac-185eff060e.zip
Binary file not shown.
Binary file removed
BIN
-6.87 KB
.yarn/cache/estree-util-is-identifier-name-npm-1.1.0-cceaeaec69-ec55a74708.zip
Binary file not shown.
Binary file added
BIN
+6.03 KB
.yarn/cache/estree-util-is-identifier-name-npm-3.0.0-7815ea9f20-ea3909f018.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-5.7 KB
.yarn/cache/estree-util-value-to-estree-npm-1.3.0-f3eedabb7c-a13c65f071.zip
Binary file not shown.
Binary file added
BIN
+16.3 KB
.yarn/cache/estree-util-value-to-estree-npm-3.1.2-ca10a54ec5-31c4b9f3a2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-9.94 KB
.yarn/cache/hast-util-from-parse5-npm-7.1.2-bf968822e1-7b4ed5b508.zip
Binary file not shown.
Binary file added
BIN
+10.4 KB
.yarn/cache/hast-util-from-parse5-npm-8.0.1-5ed6a912d8-fdd1ab8b03.zip
Binary file not shown.
Binary file removed
BIN
-7.18 KB
.yarn/cache/hast-util-parse-selector-npm-3.1.1-5db0acb665-511d373465.zip
Binary file not shown.
Binary file added
BIN
+6.45 KB
.yarn/cache/hast-util-parse-selector-npm-4.0.0-adea10ab8c-76087670d3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+20 KB
.yarn/cache/hast-util-to-jsx-runtime-npm-2.3.0-c0e033a67f-599a97c6ec.zip
Binary file not shown.
Binary file removed
BIN
-8.14 KB
.yarn/cache/hast-util-to-parse5-npm-7.1.0-2dbc15eb61-3a7f2175a3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+24.6 KB
...ction-npm-2.0.1-c08c5f0aa7-bb095b495e.zip → ...ction-npm-3.0.0-1581c4d576-6a3b21cb01.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+27.6 KB
.yarn/cache/mdast-util-from-markdown-npm-2.0.1-37ffa6064d-2e50be7127.zip
Binary file not shown.
Binary file removed
BIN
-8.25 KB
.yarn/cache/mdast-util-frontmatter-npm-1.0.1-85b4a608f4-0b0552047b.zip
Binary file not shown.
Binary file added
BIN
+8.4 KB
.yarn/cache/mdast-util-frontmatter-npm-2.0.1-7fb656bf3d-86a7c8d9eb.zip
Binary file not shown.
Binary file added
BIN
+8.71 KB
.yarn/cache/mdast-util-mdx-expression-npm-2.0.0-442ccac045-4e1183000e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+70.7 KB
.yarn/cache/mdast-util-to-markdown-npm-2.1.0-450939723c-3a2cf3957e.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+21 KB
...ndler-npm-9.2.1-bb67dc2697-3a7e9269d8.zip → ...dler-npm-10.0.2-e4769de9b3-06227050ed.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+102 KB
.yarn/cache/micromark-core-commonmark-npm-2.0.1-47bd3ea994-6a9891cc88.zip
Binary file not shown.
Binary file removed
BIN
-20.4 KB
.yarn/cache/micromark-extension-frontmatter-npm-1.1.1-0a36f80ea9-fd3941c2f3.zip
Binary file not shown.
Binary file added
BIN
+23.4 KB
.yarn/cache/micromark-extension-frontmatter-npm-2.0.0-a54996ce3a-f68032df38.zip
Binary file not shown.
Binary file added
BIN
+13.6 KB
.yarn/cache/micromark-extension-mdx-expression-npm-3.0.0-4efecb7218-abd6ba0acd.zip
Binary file not shown.
Binary file added
BIN
+29.3 KB
.yarn/cache/micromark-extension-mdx-jsx-npm-3.0.0-9128341ebb-5e2f45d381.zip
Binary file not shown.
Binary file added
BIN
+5.16 KB
.yarn/cache/micromark-extension-mdx-md-npm-2.0.0-eba668824c-7daf03372f.zip
Binary file not shown.
Binary file added
BIN
+14.4 KB
.yarn/cache/micromark-extension-mdxjs-esm-npm-3.0.0-f09fb4b82d-fb33d85020.zip
Binary file not shown.
Binary file added
BIN
+5.86 KB
.yarn/cache/micromark-extension-mdxjs-npm-3.0.0-c1ee8da220-7da6f0fb0e.zip
Binary file not shown.
Binary file added
BIN
+7.18 KB
.yarn/cache/micromark-factory-destination-npm-2.0.0-1b8de67781-d36e65ed1c.zip
Binary file not shown.
Binary file added
BIN
+6.96 KB
.yarn/cache/micromark-factory-label-npm-2.0.0-9e92e5cd87-c021dbd0ed.zip
Binary file not shown.
Binary file added
BIN
+11.4 KB
.yarn/cache/micromark-factory-mdx-expression-npm-2.0.1-98802cfda0-2ba0ae939d.zip
Binary file not shown.
Binary file added
BIN
+6.44 KB
.yarn/cache/micromark-factory-space-npm-2.0.0-715185b38a-4ffdcdc2f7.zip
Binary file not shown.
Binary file added
BIN
+6.48 KB
.yarn/cache/micromark-factory-title-npm-2.0.0-9107a1e877-39e1ac23af.zip
Binary file not shown.
Binary file added
BIN
+5.64 KB
.yarn/cache/micromark-factory-whitespace-npm-2.0.0-53940ab034-9587c2546d.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.2 KB
.yarn/cache/micromark-util-character-npm-2.1.0-86cf4a520e-36ee910f84.zip
Binary file not shown.
Binary file added
BIN
+6.92 KB
.yarn/cache/micromark-util-chunked-npm-2.0.0-97063efe7b-324f95cccd.zip
Binary file not shown.
Binary file added
BIN
+5.53 KB
.yarn/cache/micromark-util-classify-character-npm-2.0.0-a260c97f86-086e52904d.zip
Binary file not shown.
Binary file added
BIN
+4.44 KB
.yarn/cache/micromark-util-combine-extensions-npm-2.0.0-6af1824ca7-107c477003.zip
Binary file not shown.
Binary file added
BIN
+5.74 KB
...che/micromark-util-decode-numeric-character-reference-npm-2.0.1-2db25e156f-9512507722.zip
Binary file not shown.
Binary file added
BIN
+5.23 KB
.yarn/cache/micromark-util-decode-string-npm-2.0.0-111ff2ba19-a75daf32a4.zip
Binary file not shown.
Binary file added
BIN
+3.56 KB
.yarn/cache/micromark-util-encode-npm-2.0.0-c2e70ee7cb-853a3f33fc.zip
Binary file not shown.
Binary file added
BIN
+13.9 KB
.yarn/cache/micromark-util-events-to-acorn-npm-2.0.2-57370cc568-bcb3eeac52.zip
Binary file not shown.
Binary file added
BIN
+4.46 KB
.yarn/cache/micromark-util-html-tag-name-npm-2.0.0-b09431e16f-d786d4486f.zip
Binary file not shown.
Binary file added
BIN
+5.98 KB
.yarn/cache/micromark-util-normalize-identifier-npm-2.0.0-1bfb89b3be-b36da2d3fd.zip
Binary file not shown.
Binary file added
BIN
+4.26 KB
.yarn/cache/micromark-util-resolve-all-npm-2.0.0-113e659bd2-31fe703b85.zip
Binary file not shown.
Binary file added
BIN
+7.61 KB
.yarn/cache/micromark-util-sanitize-uri-npm-2.0.0-6c6c9b7f33-ea4c28bbff.zip
Binary file not shown.
Binary file added
BIN
+20.3 KB
.yarn/cache/micromark-util-subtokenize-npm-2.0.1-6236be35f3-5d338883ad.zip
Binary file not shown.
Binary file added
BIN
+13.9 KB
.yarn/cache/micromark-util-symbol-npm-2.0.0-dbed08e1a1-fa4a05bff5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.62 KB
.yarn/cache/remark-mdx-frontmatter-npm-1.1.1-5b0eb57637-a2d87e0d6c.zip
Binary file not shown.
Binary file added
BIN
+4.49 KB
.yarn/cache/remark-mdx-frontmatter-npm-4.0.0-bce801d390-01f3874bf5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.99 KB
.yarn/cache/unist-util-position-from-estree-npm-2.0.0-adf063eee5-d3b3048a57.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.06 KB
.yarn/cache/unist-util-remove-position-npm-5.0.0-1f2a181e0a-8aabdb9d0e.zip
Binary file not shown.
Binary file added
BIN
+6.54 KB
.yarn/cache/unist-util-stringify-position-npm-4.0.0-2362acd217-e2e7aee4b9.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.7 KB
.yarn/cache/unist-util-visit-parents-npm-6.0.1-29ba152125-08927647c5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.52 MB
.yarn/cache/web-streams-polyfill-npm-3.3.3-f24b9f8c34-21ab5ea08a.zip
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { allContents } from "contentlayer/generated"; | ||
import { getMDXComponent } from "next-contentlayer2/hooks"; | ||
|
||
interface ContentPageProps { | ||
params: { | ||
slug: string; | ||
}; | ||
} | ||
|
||
async function getContentFromParams({ params }: ContentPageProps) { | ||
const slug = params.slug; | ||
const doc = allContents.find((doc) => doc.slug === slug); | ||
|
||
if (!doc) { | ||
return null; | ||
} | ||
|
||
return doc; | ||
} | ||
|
||
export async function generateStaticParams(): Promise<ContentPageProps["params"][]> { | ||
return allContents.map((content) => ({ | ||
slug: content.slug, | ||
})); | ||
} | ||
|
||
export default async function ContentPage({ params }: ContentPageProps) { | ||
const content = await getContentFromParams({ params }); | ||
const MDXComponent = getMDXComponent(content?.body.code || ""); | ||
|
||
if (!content) { | ||
return <div>Not found</div>; | ||
} | ||
|
||
return ( | ||
<div className="max-w-xl py-8 mx-auto"> | ||
<h1>{content?.title}</h1> | ||
<MDXComponent /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters