Conversation
|
Review requested:
|
77ede22 to
3423c21
Compare
3423c21 to
451f8a7
Compare
cf2609b to
a3ce99d
Compare
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #57343 +/- ##
=======================================
Coverage 89.72% 89.72%
=======================================
Files 675 675
Lines 204797 204797
Branches 39344 39353 +9
=======================================
+ Hits 183752 183758 +6
- Misses 13324 13329 +5
+ Partials 7721 7710 -11 🚀 New features to boost your workflow:
|
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.
ovflowd
left a comment
There was a problem hiding this comment.
This is the result of many months of arduous work between many awesome folks, including @flakey5 @AugustinMauroy @araujogui @ovflowd @avivkeller and others.
I'm so proud of what we are achieving here and this is a huge step towards a modern tooling and a revamped API docs within Node.js
Approving, as I believe this is ready!
This comment was marked as resolved.
This comment was marked as resolved.
I'd argue we should fix that specific Markdown file before we land this PR, otherwise that section is broken. |
|
See #61756 |
b21ec68 to
0791d1e
Compare
|
A few bugs I've found while browsing the JSON diff: When a function has multiple signatures, on this PR it's no longer taken into account, the JSON no longer contains info about e.g. return type or history
|
It still does, however, it correctly places the return type, history, etc with the signature it is associated with. (i.e. you'll find all the
Noted. We can just remove the
There's a give/take here. The more exclusive the parsing is, the higher the chance of a false-negative. The less exclusive, the higher the chance of a false positive. That being said, I don't think it'll break anything if we exclude |
There are two cases:
That's a regression, not a major one, but still one worth fixing before we can safely backport.
It definitely matters for the DX though |
It is called time travel, Antoine, never heard of? Future versions actually came before! 😛 |
@avivkeller are you working on a fix for this? |
It's a little more complex than you'd think. We currently handle parsing "entry by entry" so, one heading section is passed at a time. Passing multiple would require re-thinking the way we |
@aduh95 are we fine as is-then? |
5956e06 to
d3830b4
Compare
aduh95
left a comment
There was a problem hiding this comment.
I think all blockers have been resolved, and tradeoffs have been identified, let's proceed
f60729c to
efb7c12
Compare
|
Looks like swc (our minifier), does not support all builds, causing most of the CI failures. |
What minifier? The HTML one? |
|
Yes. SWC's HTML minifier doesn't have bindings for some of the more niche machines. It has the following bindings: |
Switches over to using the new doc generation tooling. For more background on this, please see nodejs#52343 Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com> Co-authored-by: Claudio W <cwunder@gnome.org> Co-authored-by: avivkeller <me@aviv.sh> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
fa670b4 to
95a3dc8
Compare
|
@Renegade334 I removed a test you added 17h ago as this test becomes irrelevant with doc-kit (it tests for that already and that's also covered (or planned to be covered, if not yet) on the new linting package for @node-core's lint pkg) |
|
de nada 🫡 |
That doesn't sound like a good reason to remove it, if it already passes why not keep it? If it doesn't, we should investigate why. |
It would have passed, the issue is that it relies on the old tooling internals, you can compare the imports. Also seems like René is fine with the removal. |






Switches over to using the new doc generation tooling. For more background on this, please see #52343
Currently a draft just to get feedback on the approach to this integration.cc @nodejs/web-infra
Notable Change info (by @avivkeller):
The Node.js Website and Website Infrastructure teams have introduced a brand-new documentation pipeline, modernizing how our API docs are generated. While the documentation site may look familiar today, this infrastructure we are hard at work making a completely refreshed user interface in the very near future!