-
Notifications
You must be signed in to change notification settings - Fork 948
Exclude unwanted packages in docgen script #6469
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
Conversation
|
Size Report 1Affected ProductsNo changes between base commit (57b00d4) and merge commit (0601a80).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (57b00d4) and merge commit (0601a80).Test Logs |
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.
LGTM, thanks!
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.
LGTM
Add a
toc
command to the docgen script for finer control of callingapi-documenter toc
, so we can temporarily removeapi.json
files for packages we don't want to get into the TOC, including app-compat, util, and rules-unit-testing.Also added code to remove the actual markdown documentation files of those excluded packages as a post-process step when running regular
api-documenter devsite
. Packages are interdependent on each other in some ways when api-extractor is running, so excluding them before that step might cause unexpected results.Also the toc.yaml got accidentally checked in at some point. Removed it and added it to .gitignore.
When this is merged we should update https://source.corp.google.com/piper///depot/google3/firebase/jscore/tools/regenerate-reference-latest;l=26 to simply use
yarn docgen toc
instead of calling api-documenter-devsite directly, and we don't need the manual cleanup steps anymore.