-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
build, doc: use new api doc tooling #57343
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
Review requested:
|
77ede22
to
3423c21
Compare
3423c21
to
451f8a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flakey5 I guess you also need to check our GitHub Action Workflows, and also other mentions of these files within the source.
Like within the Contributor Docs, there is a file that describes how the legacy API doc tooling works, and I believe there are other references also.
cf2609b
to
a3ce99d
Compare
It also looks like |
Also not sure what's going on with |
REPLACEME shouldn't error, imo, just give a warning. Our linter should have warn and error levels. And yes introduced_in must be top level! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57343 +/- ##
==========================================
- Coverage 90.27% 90.19% -0.09%
==========================================
Files 630 628 -2
Lines 186124 185689 -435
Branches 36469 36339 -130
==========================================
- Hits 168021 167475 -546
- Misses 10974 11140 +166
+ Partials 7129 7074 -55 🚀 New features to boost your workflow:
|
I’m not sure either, but I’ll check it out. |
On the README.md file you updated ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!
cc @nodejs/collaborators can we have another approval here? 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM because it is hard to review and outside of my comfort zone.
Odd, it should be getting the version from the process variable. Running locally on main it gives me 24.0.0 (or something similar, gotta double check) |
Probably b/c you are using the built node executable, whereas this is building from v22.14.0 (Github Actions uses the latest LTS). |
There are already checks for that, added in #24575: Lines 1072 to 1078 in 1a6bef2
|
ef6e54e
to
2ecd61f
Compare
Where was this seen? |
This has been addressed :-)
This can probably be solved by explicitly passing the version of Node.js we are trying to generate to the new tooling. IIRC there should be some parsing logic in the Makefile. (I think it's Line 895 in ca74d64
|
If you run |
@flakey5 have you restored index.md? |
That shouldn't be the case? The |
I can confirm that |
@aduh95 |
Here's what we currently have: https://github.com/nodejs/remark-preset-lint-node/blob/79792fc74f48f467b8c649672c08003a55bba4ed/remark-lint-nodejs-yaml-comments.js#L55-L60 |
We just fixed it upstream. @flakey5 can you update the version used here? And rebase the PR so that @aduh95 can remove the block and we can finally merge this? 🙏 |
7df263f
to
a418c13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issues that need to be addressed:
- We should keep the existing tests (at least for now, can be removed in a follow up).
We should not reportaddressed, thank you!REPLACEME
as an invalid version.We should report invalid versions as a hard failure.addressed, thank you!- It pretends it generates the docs for Node.js 22.14.0 instead of 24.0.0 🤨
make: *** No rule to make target 'out/doc/api/index.html'
I would note that it seems there no cache mecanism, running make docserve
takes forever on my quite powerful machine, even if I've made no changes to the files since the last doc build. Just a complain, not a blocker.
Hey @avivkeller, I noticed that you pushed a commit to @flakey5's pull request. It’s generally not common practice for contributors to push changes to someone else's pull request on the nodejs/node repository without explicit permission from the author. Please keep that in mind! Additionally, since you’re not a core collaborator, you shouldn’t perform actions that are reserved for core collaborators, which I believe this would qualify as. If I’m wrong or if anyone has a different perspective, please feel free to correct me. |
I don't have direct push permissions, even if I wanted to (I have See flakey5#1 |
Now,
Why? The files they are testing no longer exist. There's no point in testing files that aren't present or don't serve any function. Instead, we should incorporate any missing tests into the new tooling, rather than leaving them here to be ineffective. |
It was a pr that I merged.
I've re-added the tests that are still applicable. Note however that some of the tests need to be removed because the new tooling doesn't expose the same things. Also noteworthy that we have tests for these things in the api-docs-tooling repo |
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>
ddaa32a
to
279e51f
Compare
Noted, that makes more sense. For me it looked like @flakey5 rebased his PR; But indeed it was a PR they merged; Disregard my comment :D |
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