-
Notifications
You must be signed in to change notification settings - Fork 13
feat(web): add web generator #285
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
base: main
Are you sure you want to change the base?
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
🎉 The code now dehydrates to the client so it can render without JavaScript! |
Wow 😵💫 and what about codetab |
It rehydrates and runs with JS, but if you don't have JS, you can still view the docs. I used React's SSRing |
@AugustinMauroy and I got search to finally work 🎉 |
024bbea
to
dbfe55d
Compare
@nodejs/nodejs-website @nodejs/web-infra |
@avivkeller I found the issue, the files on .vercelignore get deleted before the build cache gets restored 🤦 |
Takes around 2m to build all these generators on CI. Eventually I'd be good to check:
|
Rebasing to include #347 |
What piece is not working? 👀 |
(Oops, I accidentally deleted the comment) It's causing a SyntaxError in some of the compiled code, which I'm investigating. It has to do with the string interpolation 🤔 If you look at https://api-docs-tooling-7fvr17mt4-openjs.vercel.app/, it doesn't generate most of the documentation. |
🤦 I was using |
Based on my estimates, it should decrease the compile time, but we will see. |
Is the latest version using Rolldown? |
|
Note that this is around 10s faster than the previous one. Are we still thinking on LightningCSS? BTW, I still find impressive building all these react pages under 1 minute. They are huge long massive pages. |
The 10s improvement comes from LightningCSS + Rolldown, yes. Based on my testing, Rolldown is slightly faster than ESBuild, the LightningCSS is much faster than PostCSS, hence the improvement.
🎉 (My goal to make them even faster 🚀) |
Fixes #7.
This PR adds the web generator.
Tasks / Issues
P1 – Must Complete Before Merge
P2 – Must complete before migration
ChangeHistory
component doesn’t render Markdown correctly. (Seeentry.changes
aren't converted to HTML #326)P3 – Can Be Done in a Follow-up
mustache
dependencyGet a preview
Footnotes
Add things as they appear, or leave review comments. ↩ ↩2 ↩3