Skip to content

chore: generate the API from the upstream docs with a TypeScript script - #2066

Merged
Yury Semikhatsky (yury-s) merged 2 commits into
microsoft:mainfrom
yury-s:ts-api-generator
Nov 19, 2026
Merged

Yury Semikhatsky (yury-s) merged 2 commits into
microsoft:mainfrom
yury-s:ts-api-generator

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • scripts/generate_java_api.mts parses docs/src/api/*.md of the upstream checkout with the upstream parser and writes the Java interfaces, options classes and enums. Node.js runs the file as is.
  • It replaces tools/api-generator and the intermediate api.json.
  • The generated files do not change.

scripts/generate_java_api.mts parses docs/src/api/*.md of the upstream
checkout with the upstream parser and writes the Java interfaces, options
classes and enums. It replaces tools/api-generator and the intermediate
api.json. The generated files do not change.
Render the member links in the upstream link renderer, wrap the text with
the upstream wrapText, keep the top-level types in one registry and drop
the dead special cases. The generated files do not change.
@yury-s
Yury Semikhatsky (yury-s) merged commit 4036ca4 into microsoft:main Nov 19, 2026
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants