[@types/node] Upcoming changes within Node.js API docs JSON format #70298
Replies: 4 comments 10 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Bumping - would like to hear if there's anything y'all like/dislike about the current format before I start working on changing it! |
Beta Was this translation helpful? Give feedback.
-
|
Indeed, we're blocked by downstream; since we would like to change the format. |
Beta Was this translation helpful? Give feedback.
-
At the moment, when it encounters an anchor tag within a description block, generate-docs attempts to parse the href to see whether or not it's a documentation link to a symbol within the same module, in which case it renders a JSDoc {@link}, or if it's unrelated, in which case it renders a Markdown URL link. Admittedly this behaviour could probably be done away with entirely, but I'm just wondering if there's any way to represent "link to the documentation for another Node.js entity" in any sort of parseable way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Reposting here as advised by this comment on #70216.
Hi, y'all 👋 (Node.js project here). We are rewriting our API docs infrastructure and tooling, which will allow us to change the format of the .json files we generate within our API docs tooling.
The new project being crafted is https://github.com/nodejs/api-docs-tooling. It will contain numerous QoL updates and changes to how things are generated.
This includes our JSON-generated API docs, which are used here https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/scripts/generate-docs to generate the TypeScript types within this repository (and which is used for @types/node)
We will make a few changes to the current format, as this opens the possibility of improving the structure of said types. We want to collaborate with the maintainers of
@types/nodeto understand better current pain points and what we can improve on the JSON format.This is the issue on our side to track the JSON generation: nodejs/doc-kit#57.
cc @ovflowd
Beta Was this translation helpful? Give feedback.
All reactions