Skip to content

Commit 78f7242

Browse files
Inline single-use snippets and remove unused snippet files
- Inline html-video-syntax-callout.mdx content directly into markdown-media.mdx - Inline version-number-postman.mdx (0.4.3) directly into publishing-to-postman.mdx - Delete html-video-syntax-callout.mdx and version-number-postman.mdx snippet files These snippets were only used in a single file each, so inlining them reduces indirection and simplifies the codebase.
1 parent b549597 commit 78f7242

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

fern/products/docs/pages/component-library/writing-content/markdown-media.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ Embed PDFs using the `<iframe>` element. Don't use the `<embed>` element, as it
6969

7070
You can embed videos in your documentation using the HTML `<video>` tag. This gives you control over video playback settings like autoplay, looping, and muting. Don't use the `<embed>` element, as it has inconsistent browser support.
7171

72-
<Markdown src="/snippets/html-video-syntax-callout.mdx" />
72+
<Warning>
73+
`.mdx` files use JSX syntax, not pure HTML. Attributes for HTML elements like `<video>` and `<iframe>` that are embedded in `.mdx` pages must be written in `camelCase` rather than lowercase. For example, use `autoPlay` instead of `autoplay`.
74+
</Warning>
7375

7476
<Tabs>
7577
<Tab title="Rendered video">
@@ -138,7 +140,9 @@ For more details about the HTML video element and its attributes, see the [MDN d
138140

139141
You can embed videos from YouTube, Loom, Vimeo, and other streaming platforms using an `<iframe>` element.
140142

141-
<Markdown src="/snippets/html-video-syntax-callout.mdx" />
143+
<Warning>
144+
`.mdx` files use JSX syntax, not pure HTML. Attributes for HTML elements like `<video>` and `<iframe>` that are embedded in `.mdx` pages must be written in `camelCase` rather than lowercase. For example, use `autoPlay` instead of `autoplay`.
145+
</Warning>
142146

143147
<Tabs>
144148
<Tab title="Rendered Loom video">

fern/products/sdks/overview/postman/publishing-to-postman.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ You'll need to update your `generators.yml` file to configure the output locatio
6464
postman: # Group name for your Postman collection
6565
generators:
6666
- name: fernapi/fern-postman
67-
version: <Markdown src="/snippets/version-number-postman.mdx"/>
67+
version: 0.4.3
6868
output:
6969
location: postman
7070
```
@@ -79,7 +79,7 @@ groups:
7979
postman:
8080
generators:
8181
- name: fernapi/fern-postman
82-
version: <Markdown src="/snippets/version-number-postman.mdx"/>
82+
version: 0.4.3
8383
output:
8484
location: postman
8585
github:
@@ -102,7 +102,7 @@ groups:
102102
postman:
103103
generators:
104104
- name: fernapi/fern-postman
105-
version: <Markdown src="/snippets/version-number-postman.mdx"/>
105+
version: 0.4.3
106106
output:
107107
location: postman
108108
github:
@@ -120,7 +120,7 @@ groups:
120120
postman:
121121
generators:
122122
- name: fernapi/fern-postman
123-
version: <Markdown src="/snippets/version-number-postman.mdx"/>
123+
version: 0.4.3
124124
output:
125125
location: postman
126126
api-key: ${POSTMAN_API_KEY}
@@ -152,7 +152,7 @@ groups:
152152
postman:
153153
generators:
154154
- name: fernapi/fern-postman
155-
version: <Markdown src="/snippets/version-number-postman.mdx"/>
155+
version: 0.4.3
156156
output:
157157
location: postman
158158
api-key: ${POSTMAN_API_KEY}
@@ -187,7 +187,7 @@ groups:
187187
postman:
188188
generators:
189189
- name: fernapi/fern-postman
190-
version: <Markdown src="/snippets/version-number-postman.mdx"/>
190+
version: 0.4.3
191191
output:
192192
location: postman
193193
api-key: ${POSTMAN_API_KEY}

0 commit comments

Comments
 (0)