-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore(website): add 'Automated Rule Docs with Docusaurs and Remark' post #5593
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
chore(website): add 'Automated Rule Docs with Docusaurs and Remark' post #5593
Conversation
Thanks for the PR, @JoshuaKGoldberg! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
Thanks for mentioning me! I have some copy edit suggestions
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
Docusaurus supports MDX using [remark](https://remark.js.org), a Markdown processor powered by plugins. | ||
Remark plugins take in Markdown files in a format known as an Abstract Syntax Trees, or AST, and output modified versions of those ASTs. | ||
|
||
You can see what Remark's AST equivalent of a Markdown document looks like by visiting [AST Explorer](https://astexplorer.net) and selecting the Markdown language. |
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.
I strongly suggest adding https://mdx-git-renovate-babel-monorepo-mdx.vercel.app/playground here—I think you fell on the type: "jsx"
node because you were not using the MDX playground 😄
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.
And thus we hit the classic issue in frontend tooling of a million tools, each out of date and/or wrong in their own unique way...
For my edification, what's the different/problem with astexplorer.net? Since astexplorer.net is such as great & widely used tool, I'd rather fix the issue there if possible.
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.
AST explorer using Remark, not MDX. <div />
produces type: "html"
in Remark, but type: "jsx"
in MDX. import
is also only supported in MDX. AST explorer's MDX mode only shows MDXHAST for some reason, without the MDXAST. Docusaurus' own docs recommend using the MDX playground.
(The "website" there is actually a deploy preview snapshot. We are using it because mdxjs.com is now only hosting MDX v2)
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.
Got it, thanks - my main hiccup is I don't want to link to something that still references a conference from two years ago. If you can get that updated / removed then I'm happy to link!
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
…saurus-and-remark.md Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2022-09-03-automated-rule-docs-with-docusaurus-and-remark.md
Outdated
Show resolved
Hide resolved
…saurus-and-remark.md Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
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.
Or, I'll just admin merge... |
PR Checklist
Overview
Enables the Docusaurus blog preset with a single article about how we automated rule docs (#5386).