Skip to content
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

chore: Updated TypeDoc workflow to generate API docs #1060

Merged
merged 6 commits into from
Oct 19, 2020
Merged

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Oct 9, 2020

Single API Extractor/API Documenter integration can take a while, I'm fixing our existing TypeDoc pipeline to work with the auto-generated typings.

  • Updated the API docs generator to run against auto-generated d.ts files in the lib/ directory.
  • Updated the affected TOC entries.
  • Adding RTDB type aliases to the generated HTML (in a manner similar to how Firestore type aliases are handled)
  • Fixed a bunch of broken cross links.
  • Defined Database as a type that extends the @firebase/database package, as opposed to using module augmentation. TypeDoc generates a much better HTML output for RTDB types with this change.

Preview at cl/336354281

@@ -115,25 +117,13 @@ toc:
path: /docs/reference/admin/node/admin.credential
section:
- title: "Credential"
path: /docs/reference/admin/node/admin.credential.Credential
path: /docs/reference/admin/node/admin.credential.Credential-1
Copy link
Member

Choose a reason for hiding this comment

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

Sorry if I missed something obvious! Why do we suffix these with -1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the name of the auto-generated file now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is that something we want, or is it kind of forced on us?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not by choice. It was the name auto picked by typedoc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe this is because we have merged declarations. credential is both a module and a namespace. TypeDoc is probably not handling that well.

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

LGTM!

@lahirumaramba lahirumaramba removed their assignment Oct 16, 2020
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.

Thanks Hiranya!

@hiranya911 hiranya911 assigned hiranya911 and unassigned egilmorez Oct 19, 2020
@hiranya911 hiranya911 merged commit 597ea40 into typegen Oct 19, 2020
@hiranya911 hiranya911 deleted the hkj-typedoc branch October 19, 2020 22:33
hiranya911 added a commit that referenced this pull request Nov 2, 2020
* chore: Removing ambient typing files (#1032)

* chore: Removing ambient typing files

* chore: Added some TODOs to keep track of WIP

* chore: Added the credentials API signatures and exposed admin.credential (#1035)

* chore: Added the credentials API signatures and exposed admin.credential

* fix: Updated ServiceAccountCredential constructor signature

* chore: Declared admin and admin.app namespaces (#1037)

* chore: Added some TODOs to keep track of WIP

* chore: Declared admin and admin.app namespaces

* fix: Fixing an indentation issue

* fix(rc): Exposed admin.remoteConfig namespace (#1038)

* fix(fcm): Exposed admin.messaging namespace (#1039)

* chore(iid): Exposed admin.instanceId namespace (#1046)

* chore(iid): Exposed admin.instanceId namespace

* fix: Fixing some bad indentation in comments

* chore(rtdb): Exposed admin.database namespace (#1043)

* chore(rules): Exposed admin.securiryRules namespace (#1050)

* chore: Exposed admin.projectManagement namespace (#1054)

* chore(auth): Exposed admin.auth namespace (#1053)

* chore(auth): Exposed admin.auth namespace

* fix(auth): Fixing unit tests for SAMLConfig

* fix(auth): Removing more auth. prefixed direct references

* fix(auth): Using CreateTenantRequest explicitly where appropriate

* chore(ml): Exposed admin.machineLearning namespace (#1055)

* chore(ml): Exposed admin.machineLearning namespace

* fix(ml): Fixing some code formatting issues

* chore: Exposed admin.storage and admin.firestore namespaces (#1056)

* chore(ml): Exposed admin.machineLearning namespace

* chore: Exposed admin.firestore and admin.storage namespaces

* chore: Merged with upstream; Re-enabled build:tests CI task

* chore: Using public API types in FirebaseNamespace impl (#1057)

* chore: Updated TypeDoc workflow to generate API docs (#1060)

* chore: Experimental typedoc pipeline for doc generation

* chore: Adding RTDB type aliases to the API docs

* Updated comments

* Cleaned up the docgen script; Fixed a file name check warning

* fix: Fixed cross links; Fixed a faulty regex replacement in links

* fix: Fixing the remaining cross linkage errors

* chore: Enabled quotes rule in eslint config (#1067)

* chore: Enabled quotes rule in esline config

* fix: Enabled avoidEscape option

* fix: Fixed a typo in an error message
BorntraegerMarc pushed a commit to BorntraegerMarc/firebase-admin-node that referenced this pull request Jan 28, 2021
* chore: Removing ambient typing files (firebase#1032)

* chore: Removing ambient typing files

* chore: Added some TODOs to keep track of WIP

* chore: Added the credentials API signatures and exposed admin.credential (firebase#1035)

* chore: Added the credentials API signatures and exposed admin.credential

* fix: Updated ServiceAccountCredential constructor signature

* chore: Declared admin and admin.app namespaces (firebase#1037)

* chore: Added some TODOs to keep track of WIP

* chore: Declared admin and admin.app namespaces

* fix: Fixing an indentation issue

* fix(rc): Exposed admin.remoteConfig namespace (firebase#1038)

* fix(fcm): Exposed admin.messaging namespace (firebase#1039)

* chore(iid): Exposed admin.instanceId namespace (firebase#1046)

* chore(iid): Exposed admin.instanceId namespace

* fix: Fixing some bad indentation in comments

* chore(rtdb): Exposed admin.database namespace (firebase#1043)

* chore(rules): Exposed admin.securiryRules namespace (firebase#1050)

* chore: Exposed admin.projectManagement namespace (firebase#1054)

* chore(auth): Exposed admin.auth namespace (firebase#1053)

* chore(auth): Exposed admin.auth namespace

* fix(auth): Fixing unit tests for SAMLConfig

* fix(auth): Removing more auth. prefixed direct references

* fix(auth): Using CreateTenantRequest explicitly where appropriate

* chore(ml): Exposed admin.machineLearning namespace (firebase#1055)

* chore(ml): Exposed admin.machineLearning namespace

* fix(ml): Fixing some code formatting issues

* chore: Exposed admin.storage and admin.firestore namespaces (firebase#1056)

* chore(ml): Exposed admin.machineLearning namespace

* chore: Exposed admin.firestore and admin.storage namespaces

* chore: Merged with upstream; Re-enabled build:tests CI task

* chore: Using public API types in FirebaseNamespace impl (firebase#1057)

* chore: Updated TypeDoc workflow to generate API docs (firebase#1060)

* chore: Experimental typedoc pipeline for doc generation

* chore: Adding RTDB type aliases to the API docs

* Updated comments

* Cleaned up the docgen script; Fixed a file name check warning

* fix: Fixed cross links; Fixed a faulty regex replacement in links

* fix: Fixing the remaining cross linkage errors

* chore: Enabled quotes rule in eslint config (firebase#1067)

* chore: Enabled quotes rule in esline config

* fix: Enabled avoidEscape option

* fix: Fixed a typo in an error message
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.

None yet

3 participants