Skip to content

Commit

Permalink
Improving typedoc config
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen committed Feb 26, 2024
1 parent e2fd4b5 commit a53958f
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 11 deletions.
27 changes: 21 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/realm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,15 @@
"@types/mocha": "^10.0.0",
"@types/node": "^18.19.8",
"@types/path-browserify": "^1.0.0",
"command-line-args": "^5.2.1",
"chai": "4.3.6",
"cmake-js": "6.3.2",
"command-line-args": "^5.2.1",
"cross-env": "^7.0.3",
"mocha": "^10.1.0",
"path-browserify": "^1.0.1",
"prebuild": "^12.1.0",
"react-native": "0.73.2",
"typedoc-plugin-missing-exports": "^2.2.0"
"typedoc-plugin-rename-defaults": "^0.7.0"
},
"engines": {
"node": ">=18"
Expand Down
19 changes: 19 additions & 0 deletions packages/realm/tsconfig.docs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"noEmit": true,
"strict": true,
"lib": [
"es2020"
],
"types": [
"bson",
"@realm/fetch"
]
},
"include": [
"dist/public-types"
],
"exclude": [
"./binding/generated/native.d.ts"
]
}
6 changes: 3 additions & 3 deletions packages/realm/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"entryPoints": ["src/index.ts"],
"tsconfig": "./tsconfig.json",
"entryPoints": ["dist/public-types/index.d.ts"],
"tsconfig": "./tsconfig.docs.json",
"excludeInternal": true,
"excludePrivate": true,
"customCss": "../../typedoc/style.css",
"media": "../../media",
"name": "Realm JavaScript",
"includeVersion": true,
"sourceLinkTemplate": "https://github.com/realm/realm-js/blob/{gitRevision}/{path}#L{line}",
"plugin": ["typedoc-plugin-missing-exports"]
"plugin": ["typedoc-plugin-rename-defaults"]
}

0 comments on commit a53958f

Please sign in to comment.