diff --git a/fern/docs.yml b/fern/docs.yml index 03757f7..3fc9b25 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -23,6 +23,9 @@ navigation: - page: SDKs path: docs/pages/sdks.mdx slug: sdks + - page: Snippet Templates + path: docs/pages/snippet-templates.mdx + hidden: true - api: API Reference navbar-links: @@ -45,3 +48,7 @@ logo: href: https://buildwithfern.com/?utm_campaign=demo&utm_medium=plantstore&utm_source=logo favicon: docs/assets/favicon.svg + +experimental: + mdx-components: + - ./docs/snippets diff --git a/fern/docs/pages/snippet-templates.mdx b/fern/docs/pages/snippet-templates.mdx new file mode 100644 index 0000000..3265fc8 --- /dev/null +++ b/fern/docs/pages/snippet-templates.mdx @@ -0,0 +1,15 @@ +import Template from "../snippets/code-template.mdx"; + +Below are 2 code snippets that are templated using the `code-template` mdx-based component. + + + + diff --git a/fern/docs/snippets/code-template.mdx b/fern/docs/snippets/code-template.mdx new file mode 100644 index 0000000..94a4559 --- /dev/null +++ b/fern/docs/snippets/code-template.mdx @@ -0,0 +1,3 @@ +This is a templated code snippet for {props.title}: + +{props.children} diff --git a/fern/fern.config.json b/fern/fern.config.json index 26d1b83..2c0bf5b 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "plantstore", - "version": "0.37.6" + "version": "0.45.0" } \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml new file mode 100644 index 0000000..5406252 --- /dev/null +++ b/fern/generators.yml @@ -0,0 +1,2 @@ +api: + path: openapi/openapi.yaml