-
Notifications
You must be signed in to change notification settings - Fork 343
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
Move to Docusaurus v3.x #847
Conversation
✅ Deploy Preview for moodledevdocs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Note: I haven't got the jest tests working yet. I'm going to defer that to another issue because it's not critical. It's just testing one set of remark features. |
02ccc24
to
6ffbb2c
Compare
⚡️ Lighthouse report for the deploy preview of this PR
|
f92a189
to
22a8aa7
Compare
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.
@andrewnicols , thanks for working on this. I love the way you organised the commits because it was easy to understand and follow them. Well done!
The changes look great and it is amazing we can upgrade to docusaurus 3! Good job!! <3
I'm super-happy to approve this!
@andrewnicols although the patch is ready, I was wondering whether we should warn developers about this upgrade (because dependencies like Node will change). |
With mdx2 data may only be defined with `import`, or `export`. See https://mdxjs.com/docs/troubleshooting-mdx/#could-not-parse-expression-with-acorn-unexpected-content-after-expression for further information.
We should use backticks and not curly braces for descriptors in markdown. We do not support the markdown terms feature, which is not even a feature of extended markdown.
When any JSX is used (import/export), it must be followed by at least one empty line before and MDX is used, whether that is Markdown, or a React component. https://mdxjs.com/docs/troubleshooting-mdx/#could-not-parse-importexports-with-acorn-error
mdx2 is stricter and will fail on a number of sillier things which mdx2 was more liberal with: - Use of `<` - used to open JSX tags https://docusaurus.io/blog/preparing-your-site-for-docusaurus-v3#bad-usage-of--1 - Use of `{` - used to open JS expressions in JSX https://docusaurus.io/blog/preparing-your-site-for-docusaurus-v3#bad-usage-of-
22a8aa7
to
71d1de9
Compare
This is a series of commits to allow us to migrate to Docusaurus 3.x