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
Docusaurus v2 #174
Docusaurus v2 #174
Conversation
The main change is adding `slug: /` frontmatter to the home page doc.
I've just pushed up a couple of commits to reduce maintenance by bring us closer to the default preset: minimum config and custom styles. Styling dark mode is tricky to get right, so we'll want to offload this to Docusaurus. We'll need to rustle up something for the demo, though. The only custom styling is for validity patterns, which I've used a subtle box shadow for (in colours that work for both modes) so that we don't have to worry about clashes with the prism theme. There's not much left to do before we can go live:
I reckon I'll have time to look into the demo styles, but not the other two items. Shout if you fancy picking up these. |
Latest commit fixes 2 of the 3 rule page issues listed in #125 (comment). Unlike docusaurus 1, version 2 can:
We can leverage this, and simplify the generation step to:
Docusaurus can then do the rest. |
The next step is making |
Link to deploy preview
Related to #125
This doesn't need merging yet. We can leave it in draft state until Docusaurus v2 is out of alpha.
I noticed some dependabot security alerts for Docusaurus v1, so I was curious to see what the v2 migration would be like.
(The v1 alerts seem ok to ignore for now, see facebook/docusaurus#4093)
This mostly works, there are a few bits to investigate:
patch-package
to add closing slashes to<img>
tags in the stylelint README. This should be done directly in stylelint insteadThis also picked up a couple of broken links. e.g. the improve the documentation link on the contributing page.