-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(docs): update nextra #4792
chore(docs): update nextra #4792
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
10 Ignored Deployments
|
@@ -1,2 +1,2 @@ | |||
auto-install-peers = true | |||
hoist = false | |||
hoist-pattern[]=vfile-message |
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.
rehype-katex
was added to nextra
in 2.0.2 to support LaTeX which brings in hast-util-from-html
which has a dependency issue.
I sent them a PR here: syntax-tree/hast-util-from-html#4, but need to patch it on our end for now.
unstable_flexsearch: true, | ||
unstable_staticImage: true, | ||
themeConfig: "./theme.config.tsx", | ||
defaultShowCopyCode: true, |
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 don't know why this isn't set by default, have to check on that one (cc @shuding)
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.
Will make that the default!
@@ -1,6 +1,5 @@ | |||
{ | |||
"*": { | |||
"//": "Hide all the links from the sidebar or navbar, and disable ToC and Sidebar for these pages.", |
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.
New nextra isn't a fan of this key in meta (jsonc support wen)
* @type {import('nextra-theme-docs').DocsThemeConfig} | ||
*/ | ||
const theme = { | ||
const config: DocsThemeConfig = { |
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.
Thank god we have real types here now!
✅ This change can build |
🟢 CI successful 🟢Thanks |
Description
Needed to fix the missing copy code button on the docs, ended up updating Nextra and Next while I was in there.
Testing Instructions
Checkout the preview!