| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Updates Node.js doc build configuration to experiment with the redesigned documentation output by switching doc-kit templates away from the legacy “all-in-one HTML” generation.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Makefile | Uses the web doc-kit template and removes all.html from declared doc build outputs. |
| vcbuild.bat | Uses the web doc-kit template during Windows doc generation. |
Makefile:838
# Generate all doc files (individual and all.html/all.json) in a single doc-kit call # Using grouped targets (&:) so Make knows one command produces all outputs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #62045 +/- ##
==========================================
- Coverage 90.13% 90.08% -0.06%
==========================================
Files 751 751
Lines 253639 254070 +431
Branches 47790 47900 +110
==========================================
+ Hits 228618 228868 +250
- Misses 16264 16411 +147
- Partials 8757 8791 +34 see 44 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
|
The notable-change PRs with changes that should be highlighted in changelogs. label has been added by @avivkeller. Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
Sorry, something went wrong.
|
cc @nodejs/build @nodejs/web-infra @nodejs/TSC for reviews |
Sorry, something went wrong.
|
Can't quite verify. ➜ node git:(main) gh pr checkout 62045 Switched to branch 'doc/redesign' ➜ node git:(doc/redesign) make doc-only mkdir -p out/doc/api cp -r doc/api out/doc added 374 packages in 2s error: too many arguments for 'generate'. Expected 0 arguments but got 1. make: *** [out/doc/api/addons.html] Error 1 |
Sorry, something went wrong.
|
@panva Sorry! I'm still trying to get the thread count to work on all CI machines, but the output from https://github.com/nodejs/node/actions/runs/25992332792?pr=62045 's artifacts have the generated docs. A lot of the runners use slim machines, which it appears interfere with the generation, so I need to see which CI checks fail. |
Sorry, something went wrong.
|
@avivkeller footnotes don't seem to work, I don't know if it's being tracked or not but leaving that here, also don't know if they don't work generally or as a side effect of the bundle here. There are 100% docs where this is an improvement and it will take some getting used to. Very subjective. Some oddities I notice upon first (well, first this time around) look, take it with a grain of salt, I'm very used to the old docs and it's easy to focus on what stands out really quickly. In that way I hope this might be valuable (non-blocking) feedback.
|
Sorry, something went wrong.
There was a problem hiding this comment.
what about the documentation.md file ? we should remove it but there are a blocker with that the explaining of the stability level will be lost
Sorry, something went wrong.
|
@panva we've done rounds of feedback, and based on our current iteration, note:
The word "Attributes" allows us to use the same word consistently for these "typed lists", as they appear in several places where it's not easy to identify what they are describing.
We attempted this in the past, and unfortunately, the general consensus was that having the full parameter list is much more 'exact', as in, no two entries will be identical.
The main prose is 16px. Inside of "typed lists", the font size is 14px.
The photo you shared is displaying a very large table. Smaller tables render fine. Such tables should be broken down, most likely.
I'm afraid I don't understand the concern. The "tags" refer to the type of the entry, similar to the text prefix. @AugustinMauroy I have no idea what you are saying. That file should not be removed. |
Sorry, something went wrong.
|
@avivkeller i was referencing to this discussion about this file nodejs/doc-kit#780 (comment) |
Sorry, something went wrong.
|
At this point in time, we still need the /about page, since we don't put the overview on the index. But yes, a follow-up to move that would be worth a discussion. I'm aware I said previously that we'd need to remove it when we land this generator, but we actually first need to generate a new home for the overview, or just leave it as is. |
Sorry, something went wrong.
|
okay right ! |
Sorry, something went wrong.
|
In the meantime, @nodejs/build any suggestions for the memory issues on CI? We don't have any issues running on most machines, should we skip the docs build on these ones? |
Sorry, something went wrong.
|
Opened nodejs/doc-kit#941 for parity |
Sorry, something went wrong.
|
Hey @pimterry @MikeMcC399 @trivikr. We've attempted to resolve all your concerns. We have a few pending changes (e.g. better light mode, a small UI fix, partial hydration), but I'd love a re-review on the current progress, and an approval if you feel that you are confident in the design at https://beta.docs.nodejs.org (or, for a better light mode coming soon, https://api-docs-tooling-khhh5bmq7-openjs.vercel.app/) |
Sorry, something went wrong.
this was fixed, and now i see it again too on Windows - suspect we regressed nodejs/nodejs.org#9015 possibly by nodejs/nodejs.org#9028 |
Sorry, something went wrong.
Landed! |
Sorry, something went wrong.
Sorry, something went wrong.
|
QUIC should NOT be listed in the api docs yet... the API is still in flux and it's not built by default yet. |
Sorry, something went wrong.
+1 |
Sorry, something went wrong.
|
@jasnell that was a now resolved oversight in the preview environment |
Sorry, something went wrong.
Sorry, something went wrong.
|
Hey @mcollina @jasnell! Thanks for the feedback! We've made some changes, such as making the index page and the about page one, see https://beta.docs.nodejs.org/. We can continue to iterate on specific designs of how to display the index information, but for now, does that resolve your concerns? |
Sorry, something went wrong.
|
@mcollina we changed the index page to use a more response design:
|
Sorry, something went wrong.
Signed-off-by: Aviv Keller <me@aviv.sh>
|
cc @nodejs/web-infra all CI machines are working except MacOS, which ran out of memory when I set the minimum memory needed to run to 6GB and 8GB, even though we only take 4-5GB, any ideas? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR shouldn't change much from it's current form. Most changes will go in doc-kit. test-make-doc was removed, since our new generator minifies the output HTML (so it's format is structurally inconsistent) and can't be easily parsed with the existing regular expressions.
Furthermore, such tests are not needed due to our tests in doc-kit.
Preview: https://beta.docs.nodejs.org
On behalf of the Node.js Web Team, we are so please to merge our work on the redesign. This has been the culmination of multiple years of effort, and we are so excited to hear what you all have to say!
Notable Change:
Node.js is thrilled to announce a brand new redesign of our documentation experience! The updated documentation now features HTML structure and styling that are much more closely aligned with the main Node.js website UI, creating a more consistent experience across the brand. You can check out the redesigned documentation today at https://nodejs.org/api (Striked out since this isn't correct until this PR lands).