Skip to content

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

Merged
merged 3 commits into from
Jul 25, 2022
Merged

Conversation

hsubox76
Copy link
Contributor

Add a toc command to the docgen script for finer control of calling api-documenter toc, so we can temporarily remove api.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.

@hsubox76 hsubox76 requested a review from dwyfrequency as a code owner July 22, 2022 20:53
@changeset-bot
Copy link

changeset-bot bot commented Jul 22, 2022

⚠️ No Changeset found

Latest commit: d4af3e2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@hsubox76 hsubox76 changed the title Ch docgen exclude Exclude unwanted packages in docgen script Jul 22, 2022
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 22, 2022

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 22, 2022

@hsubox76 hsubox76 requested a review from egilmorez July 22, 2022 23:05
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Contributor

@dwyfrequency dwyfrequency left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hsubox76 hsubox76 merged commit 572e111 into master Jul 25, 2022
@hsubox76 hsubox76 deleted the ch-docgen-exclude branch July 25, 2022 21:46
@firebase firebase locked and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants