You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docs/upload): support .mdx file extension (#1198)
## 🧰 Changes
We definitely need to support `.mdx` files now, given the fact that the
syntax we use in refactored is MDX.
## 🧬 QA & Testing
Added a little tweak to ensure our tests capture this extension
properly.
Copy file name to clipboardExpand all lines: __tests__/commands/docs/__snapshots__/upload.test.ts.snap
+4-4
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ exports[`rdme docs upload > given that the file path is a directory > should cre
86
86
87
87
exports[`rdme docs upload > given that the file path is a directory > should error out if the directory does not contain any Markdown files 1`] =`
88
88
{
89
-
"error": [Error: Thedirectoryyouprovided (__tests__/__fixtures__/ref-oas) doesn't contain any of the following file extensions: .markdown, .md.],
89
+
"error": [Error: Thedirectoryyouprovided (__tests__/__fixtures__/ref-oas) doesn't contain any of the following file extensions: .markdown, .md, .mdx.],
90
90
"stderr": "- 🔍 Looking for Markdown files in __tests__/__fixtures__/ref-oas...
🚨 Unable to fetch data about the following 2 page(s):
117
-
- __tests__/__fixtures__/docs/mixed-docs/new-doc-slug.md: The ReadMe API responded with an unexpected error. Please try again and if this issue persists, get in touch with us at [email protected].
117
+
- __tests__/__fixtures__/docs/mixed-docs/new-doc-slug.mdx: The ReadMe API responded with an unexpected error. Please try again and if this issue persists, get in touch with us at [email protected].
118
118
- __tests__/__fixtures__/docs/mixed-docs/simple-doc.md: The ReadMe API responded with an unexpected error. Please try again and if this issue persists, get in touch with us at [email protected].
119
119
",
120
120
}
@@ -140,7 +140,7 @@ exports[`rdme docs upload > given that the file path is a directory > should han
140
140
⏭️ Skipped 1 page(s) in ReadMe due to no frontmatter data:
🚨 Received errors when attempting to upload 2 page(s):
143
-
- __tests__/__fixtures__/docs/mixed-docs/new-doc-slug.md: The ReadMe API responded with an unexpected error. Please try again and if this issue persists, get in touch with us at [email protected].
143
+
- __tests__/__fixtures__/docs/mixed-docs/new-doc-slug.mdx: The ReadMe API responded with an unexpected error. Please try again and if this issue persists, get in touch with us at [email protected].
144
144
- __tests__/__fixtures__/docs/mixed-docs/simple-doc.md: The ReadMe API responded with an unexpected error. Please try again and if this issue persists, get in touch with us at [email protected].
145
145
",
146
146
}
@@ -518,7 +518,7 @@ exports[`rdme docs upload > given that the file path is a single file > should e
0 commit comments