Skip to content

Conversation

@snebjorn
Copy link
Contributor

@snebjorn snebjorn commented Oct 22, 2025

I had some fun updating the docs project.

I updated the various packages. Switched some packages that was abandoned for maintained ones.
I changed the MDX setup so it's closer to docs https://nextjs.org/docs/pages/guides/mdx
I changed react files from .js to .tsx
I changed MDX files from .md to .mdx

Unfortunately we can't use the turbopack feature of next@16 because our mdx plugins does not have serializable options.

Good to know:
remark and rehype plugins without serializable options cannot be used yet with Turbopack, because JavaScript functions can't be passed to Rust.

source: https://nextjs.org/docs/pages/guides/mdx#using-plugins-with-turbopack

@melloware
Copy link
Collaborator

This is awesome!

@snebjorn
Copy link
Contributor Author

I didn't click all the buttons, but it appears to work

@melloware melloware added the documentation Improvements or additions to documentation label Oct 23, 2025
@melloware melloware merged commit 4454f83 into orval-labs:master Oct 25, 2025
2 checks passed
@melloware melloware added this to the 8.0.0-rc.0 milestone Oct 25, 2025
zhu-hong pushed a commit to zhu-hong/orval that referenced this pull request Oct 29, 2025
* use yarn workspace

* fresh lockfile

* align package versions (if possible)

* configure tsup

* it finally runs again!!!

* sample tests are green

* tests can generate again

* tests now pass

* docs works again

* goto code reference now works

* fixes tests

* fixes build error in samples trying to apply their rules to the orval packages

* missed a few things

* WIP

* WIP

* update tailwind

* migrate to tailwind 4

* intersection-observer polyfill no longer needed

* replace gray-matter

* WIP

* mdx components works again

* update react-query

* pre code blocks works again

* WIP

* show error msg from malformed throws

* reset to changes from master

* WIP

* fixes bad rebase

* updated to next@16

* rename .md -> .mdx to emphasize they're special

* remarkEmoji seems to be fixed

* formatting

* removed config no longer needed

* restored webpack config as we cannot use turbopack yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants