-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add mdx support #16
add mdx support #16
Conversation
6bd9390
to
02a91e3
Compare
@@ -40,17 +41,21 @@ export const Prose: FC<{ children: ReactNode; className?: string }> = ({ | |||
</div> | |||
); | |||
|
|||
export const PageContent: FC<{ md: string }> = ({ md }) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is backwards compatible until / if we migrate documentation to support mdx
@@ -6,7 +6,10 @@ | |||
"dev": "vite --force", | |||
"build": "tsc && vite build" | |||
}, | |||
"type": "module", | |||
"dependencies": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mdxjs plays nicer with ESM
@@ -3,20 +3,14 @@ import { PageTitle } from "../components/PageTitle"; | |||
import { PageContent } from "../components/PageContent"; | |||
import { packageUrls } from "../constants"; | |||
|
|||
export const content = ` | |||
|
|||
<PageTitle pretitle="Introduction" title="Getting started" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
example mdx translation
packages/website/src/routes.tsx
Outdated
@@ -160,7 +160,7 @@ export const routes: { | |||
{ | |||
label: "Getting started", | |||
url: "/headless-getting-started", | |||
element: <HeadlessSetup />, | |||
element: <HeadlessGettingStarted />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated cleanup I did along the way
2f7d94f
to
c04c95c
Compare
c04c95c
to
78d99f3
Compare
20f620c
to
417143a
Compare
this seems to be a bad fit considering mdx doesn't have native interpolation in code blocks the workarounds make dealing with code / pre decoration annoying. So stick with the status quo |
adding mdx support for easier documentation writing (and proper markdown syntax highlighting)
quick side-track while writing voice compass docs