shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.
https://nextra.site
MIT License
11.75k stars 1.27k forks source link

Nextra 4 #2600

Open dimaMachina opened 10 months ago

dimaMachina commented 10 months ago
jellli commented 10 months ago

I'm currently adding twoslash in v3, would that be a problem?

dimaMachina commented 10 months ago

I'm currently adding twoslash in v3, would that be a problem?

no, go with it, ty

TheMikeyRoss commented 9 months ago

why drop support for pages? why not support both?

dimaMachina commented 9 months ago

why drop support for pages? why not support both?

because it requires a lot of engineering time, I already maintain this repo alone

andriilive commented 7 months ago

Thanks for an awesome job you're doing.

I'd really really like to see some kind of primitive static data collections API in v14, like Astro's collections or json-server. https://docs.astro.build/en/tutorials/add-content-collections/ https://github.com/typicode/json-server

Waylon-Firework commented 2 months ago

when will the v4 be release

dimaMachina commented 3 weeks ago

Nextra v3 was finally released. And Nextra v4 prerelease just out! Currently without docs changes update or migration guide.

Nextra v4 will support a file-based router for your mdx files, for anyone who wants to give it a try, feel free to take a look at nextra.site migration https://github.com/shuding/nextra/tree/v4-v2/docs or blog https://github.com/shuding/nextra/tree/v4-v2/examples/blog

Nextra v4 will also support rendering your docs from a single catch-all route app/[[...slug]].jsx. Currently, as unstable and without hot reloading working, but I will fix it before stable releasing Fixed.

Feel free to take a look at docs and i18n docs examples that were migrated to it! https://github.com/shuding/nextra/tree/v4-v2/examples

Prerelease v4 last versions: https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.6 https://github.com/shuding/nextra/releases/tag/nextra-theme-docs%404.0.0-app-router.6 https://github.com/shuding/nextra/releases/tag/nextra-theme-blog%404.0.0-app-router.6

Feel free to share your feedback and create separated issues for problems you encountered

Have fun!

dimaMachina commented 2 weeks ago

Yes, the search needs to index built .html files, you must to add postbuild script as follows https://github.com/shuding/nextra/blob/c9d0ffc8687644401412b8adc34af220cccddf82/docs/package.json#L9

Also, nextra-theme-blog in v4 has search as well

Check out the last preview https://nextra-v2-6bnfo6seg-shud.vercel.app/ where you can see working search

dimaMachina commented 3 days ago

https://github.com/shuding/nextra/releases/tag/nextra%404.0.0-app-router.13 is just out with Turbopack support

lacymorrow commented 3 days ago

Fak yeah dude

dimaMachina commented 21 hours ago

For everybody waiting for Nextra v4, I am finishing the Blogpost announcement for Nextra v4 RC.0 with all features and migration guide, so stay tuned 😁

codewreaker commented 17 hours ago

For everybody waiting for Nextra v4, I am finishing the Blogpost announcement for Nextra v4 RC.0 with all features and migration guide, so stay tuned 😁

Looking forward to it. I am currently using next 15 and searching the whole v4-v2 branch for any information. I will wait for you then

olegchursin commented 3 hours ago

Nextra v4 is looking πŸ”₯ ! Can't wait for RC.0 and a blogpost @dimaMachina . Thanks for all the work!

officialrajdeepsingh commented 2 hours ago

For everybody waiting for Nextra v4, I am finishing the Blogpost announcement for Nextra v4 RC.0 with all features and migration guide, so stay tuned 😁

Waiting