Skip to content

Commit 0bcee7b

Browse files
committed
docs: use typedoc monorepo mode to generate an html reference API site
1 parent c701840 commit 0bcee7b

File tree

19 files changed

+299
-1
lines changed

19 files changed

+299
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ Pods/*
538538
packages/**/version.js
539539
packages/**/version.ts
540540
typedoc.raw.json
541+
reference/
541542
tests/ios/Firebase
542543
tests/ios/resetXcode.sh
543544
.tmp

.spellcheck.dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ NoSQL
132132
Notifee
133133
notifee
134134
NPE
135+
npm
135136
NPM
136137
OAuth
137138
onboarding

docs/reference-api-readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# API reference
2+
3+
This site documents the TypeScript and JavaScript APIs for the [`react-native-firebase`](https://github.com/invertase/react-native-firebase) packages published on npm under the `@react-native-firebase/*` scope.
4+
5+
The **app** module is required; all other modules are optional peer packages. Use the sidebar to open each package. Cross-package types (for example `FirebaseApp`) link between modules when they are part of this documentation build.
6+
7+
For guides and setup, see the [main documentation](https://rnfirebase.io).

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.md\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter",
2323
"tsc:compile": "tsc --project .",
2424
"lint:all": "yarn lint && yarn lint:markdown && yarn lint:spellcheck && yarn tsc:compile",
25+
"reference:api": "typedoc",
26+
"reference:api:gh-pages": "typedoc --out apidocs-out --hostedBaseUrl https://invertase.github.io/react-native-firebase/ --useHostedBaseUrlForAbsoluteLinks",
2527
"tests:ai:mocks": "yarn ts-node ./scripts/fetch_ai_mock_responses.ts && yarn ts-node ./packages/ai/__tests__/test-utils/convert-mocks.ts",
2628
"tests:jest": "jest",
2729
"tests:jest-watch": "jest --watch",
@@ -106,6 +108,7 @@
106108
"spellchecker-cli": "^7.0.2",
107109
"ts-jest": "^29.4.6",
108110
"ts-node": "^10.9.2",
111+
"typedoc": "^0.28.18",
109112
"typescript": "^5.9.3"
110113
},
111114
"resolutions": {

packages/ai/typedoc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/index.ts"],
4+
"tsconfig": "tsconfig.json"
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/index.d.ts"]
4+
}

packages/app/typedoc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/index.ts"],
4+
"tsconfig": "tsconfig.json"
5+
}

packages/auth/typedoc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/index.d.ts"]
4+
}

packages/database/typedoc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/index.d.ts"]
4+
}

packages/firestore/typedoc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/index.ts", "lib/pipelines/index.ts"],
4+
"tsconfig": "tsconfig.json"
5+
}

0 commit comments

Comments
 (0)