-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Nextra 3 #1421
Comments
You got a rough timeline for this release? |
@juliusmarminge nope |
any plans for experimental support for React Server Components? or you'll wait for a stable |
no plans currently |
Whatever features you include, please try to document the breaking changes better. Migrating a simple site from 1 to 2 was a big headache due to the lack of documentation about renamed settings and other changes. |
Which renamed settings were not documented and other changes? |
This discussion was the only migration/upgrade guide I could find. It doesn't mention any of the renamed settings (specifically for Looking again at the nextra-theme-docs changelog, I now see there is an entry for "various theme config options was renamed" (under "patch" which is incorrect for a breaking change), but just linking out to a code file which doesn't mention the old names is not very helpful. There were also some settings like the The other break I noticed was an The simplest way to make future upgrades easier for your users is to make sure that any breaking changes have a changeset with type "major" (with a detailed description of any breaks) so that they end up in the "Major changes" section of the changelog--that would probably have been enough to help me. But it also doesn't hurt to have a separate upgrade/migration guide, sort of like these ones for Next.js, ESLint, or Fluent UI React (those are much larger tools/libraries, but it shows the general idea). It might also be worth more explicitly calling out that there were styling changes, with before/after screenshots of a demo site so people can see how their site will change (though this isn't quite as important, since it's automatic and people can see it in local testing). The parts of the v2 styling changes that confused me were the footer moving from the bottom of the main column to the bottom of the page, and the edit link moving from the footer to the right sidebar. When testing, I thought the edit link had disappeared or maybe I was missing a setting to make it show up--but it turns out this was just because my window width was under 1280px (laptop screen with vertical tabs) and the right sidebar isn't shown at that width. A before/after screenshot would have clarified that the link had moved and my screen was too small to see it. |
For theme config options just look at docs page https://nextra.site/docs/docs-theme/theme-configuration
Not a big deal, the most important thing is that it was released as Major release
it was made to avoid conflicts with the user's tailwind config
we already use changesets, we had 100 alpha releases and we can't catch everything
Unfortunately, Nextra is not a such popular as your mentioned repository where there are 5-10 maintainers and a LOT of contributors, we try to improve it as we can
As I mentioned I can't cover everything just feel free to contribute, @shuding already wrote amazing docs for Nextra v2 |
Any chance of supporting turbopack in the next major or will nextra wait for a stable release? |
@dacevedo12 no chances, pr welcome |
Thank you very much for this project and I can't wait to use the Nextra 3. https://grpcity.vercel.app/ is the use of the Nextra 3 online example, running very well, thanks again. |
I see that this site has been built with v3 branch https://github.com/chakhsu/grpcity-docs/blob/56e95759c2510d9103892e81dd6e28aeeba54eba/package.json#L21 |
I didn't encounter a bug. I just make sure that the configuration and usage are the same as in the v3 example. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
For anyone wants to try Nextra 3 here is my blog post with all the features and a migration guide from Nextra 2 |
Been waiting for Nextra 3 for too long <3 However, would really really need appDir support. Bumping up to >= Next 13 does not make sense if we can't use the new router; we're pretty much stuck at Next 13 because 14 doesn't even have the pages dir. Need this in appDir because I want to build a hybrid site which can have both docs and SaaS. Less maintenance, single repo, shared providers... that's the sweet deal. |
I disagree it does not make sense, pages router is going nowhere and will probably be supported several years by Next.js, given the huge amount of websites using it.
You can just set two different folders (a la monorepo). |
I'm more of a monolith guy :p
I thought Next was deprecating pages as they moved forward? It's still in the air and I wouldn't risk being on an old architecture for such an awesome library like Nextra which, honestly, has great potential to be the go-to static site maker. ++ Another reason why monolith is so I can get the sweet-sweet routes: |
I think from here onwards, given all the effort put in by the awesome @dimaMachina , a good way forward is:
|
|
@dimaMachina any ETA on when we will be able to try this out? Would rather use Nextra 3 than 2 if it's coming out soon. Looks great btw (https://the-guild.dev/blog/nextra-3) |
@hariria you can already try v3 alpha version, there is no date when it will be released since I maintain this framework alone |
@SaadBazaz were you successful on getting your setup right? I need exactly same structure but with i18n support, would you like to collab to get some PR maybe on that? |
@maciejkwas https://github.com/shuding/nextra/tree/v3/examples/swr-site here is working i18n example |
Hey @dimaMachina lots of love and regards to you for what you've built. |
Thank you 🙌. |
Haha fair enough. We at my work are looking forward to versioning support, plus the upgrade to |
@Genesis3800 thank you! It would be a huge help with v3 release 🙏. If you want to help with docs updates
|
Hi, not sure this is the right place to put this, but I didn't want to create a new issue since v3 is in alpha (feel free to mark as off topic and I can post as an issue). Looks like there's a small CSS bug in Example: https://www.pgkit.dev/packages/migrator - source code here: https://github.com/mmkal/slonik-tools/blob/pgkit/apps/docs/pages/packages/migrator.md It doesn't seem to affect code blocks: Also, the |
bug, will be fixed
use example nextra/examples/swr-site/theme.config.tsx Lines 65 to 68 in 399c330
|
Any hope to see this fixed with v3? The most easy and basic fix is this, just wrap nextra styles in a css layer.
|
Looks like we cant use Nextra with React19 because of this: Are there any efforts to upgrade to latest headlessui/react so that we can use Nextra with a React19 NextJS project? |
Configuring sidebar menus with explicit definition instead using the folder structure? No thanks. ;-) |
|
Nextra 3 is finally released today, feel free to update and create new issues, I will lock this thread to avoid spamming those who had a notification enabled on this PR Blog post / migration guide https://the-guild.dev/blog/nextra-3 Nextra 4 with app router support and server components will coming next, feel free to try v4 alpha versions as well https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.3 |
below of my thoughts on the next biggest release
next.config.mjs
ornext.config.js
with"type": "module"
[v3] bundle to ESM only, usenext.config.mjs
ornext.config.js
with"type": "module"
#2254implement new i18n proposal A directory instead of an extension at I18N. #176 [wip v3]: new i18n, remove
_app.mdx
, removenewNextLinkBehavior
#2070add support for
_meta.{js,jsx,ts,tsx}
with JSX support Proposal: replace_meta.json
in favor of_meta.{js,jsx,ts,tsx}
#852 [V3] experiment with_meta.{js,jsx,ts,tsx}
#2272official versioning support + new docs on how to setup it Versioned docs #20
set by default
loaderOptions.defaultShowCopyCode
totrue
and incompileMdx
alsonextra-theme-docs
sidebar.toggleButton
totrue
some major updates #2248nextra-theme-docs
Rename configurations #826 [v3/docs] rename theme config options #2258newNextLinkBehavior
option and in nextra loader also [wip v3]: new i18n, remove_app.mdx
, removenewNextLinkBehavior
#2070remove custom<Anchor />
component and use plainNextLink
everywhereComponentize the docs theme #332nextra-theme-blog
NextLink
withoutlegacyBehavior
prop [v3] blog changes #2252set
next
13 as minimal supported version [v3] set"peerDependencies.next": ">=13"
#2249rename
nextra/ssg
tonextra/data
[v3] more major updates #2251remove the current workaround to allow import MDX outside of CWD and add
console.error
if there are such as cases import mdx from parent directory cause Hydration fail #1424 (comment) [v3] more major updates #2251prefer to use _app.tsx/jsx over _app.mdx Feedback: using _app.mdx vs _app.tsx is weird and more error prone #1632 (comment) [wip v3]: new i18n, remove
_app.mdx
, removenewNextLinkBehavior
#2070Remove
Tab
in favourTabs.Tab
, removeCard
in favourCards.Card
[v3] more major updates #2251update
remark-math
to v6 TypeError: Cannot read properties of undefined (reading 'mathFlowInside') #2368tbd
The text was updated successfully, but these errors were encountered: