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

Set up typedoc for realm-react, realm-web #5709

Merged
merged 2 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ integration-tests/**/.lock

# Generated docs
/packages/realm/docs/
/packages/realm-react/docs/
/packages/realm-web/docs/
File renamed without changes
2 changes: 1 addition & 1 deletion packages/realm-react/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img height="140" src="logo.svg" alt="Realm React Logo"/>
<img height="140" src="media/realm-react-logo.svg" alt="Realm React Logo"/>
</p>

<h1 align="center">
Expand Down
1 change: 1 addition & 0 deletions packages/realm-react/media
10 changes: 8 additions & 2 deletions packages/realm-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"scripts": {
"bundle": "wireit",
"start": "npm run build -- --watch",
"test": "jest --forceExit",
"test": "wireit",
"lint": "eslint --ext .tsx ."
"lint": "eslint --ext .tsx .",
"docs": "wireit"
},
"wireit": {
"bundle": {
Expand All @@ -30,6 +30,12 @@
"../realm:build:node",
"../realm-common:bundle"
]
},
"docs": {
"command": "typedoc",
"dependencies": [
"bundle"
]
}
},
"dependencies": {
Expand Down
11 changes: 11 additions & 0 deletions packages/realm-react/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"entryPoints": ["src/index.tsx"],
"tsconfig": "./tsconfig.json",
"excludeInternal": true,
"customCss": "../../typedoc/style.css",
"media": "./media",
"name": "Realm React",
"includeVersion": true,
"sourceLinkTemplate": "https://github.com/realm/realm-js/blob/{gitRevision}/{path}#L{line}",
"favicon": "../../media/favicon.ico"
}
7 changes: 6 additions & 1 deletion packages/realm-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"start": "npm run build -- --watch",
"lint": "eslint --ext .js,.ts .",
"test": "mocha 'src/tests/**/*.test.ts'",
"postversion": "ts-node --project scripts/tsconfig.json scripts/postversion.ts"
"postversion": "ts-node --project scripts/tsconfig.json scripts/postversion.ts",
"docs": "wireit"
},
"wireit": {
"bundle": {
Expand All @@ -35,6 +36,10 @@
"command": "ts-node --project scripts/tsconfig.json scripts/update-types.ts",
"files": ["../../types"],
"output": ["types/realm"]
},
"docs": {
"command": "typedoc",
"dependencies": ["bundle"]
}
},
"files": [
Expand Down
11 changes: 11 additions & 0 deletions packages/realm-web/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"entryPoints": ["src/index.ts"],
"tsconfig": "./tsconfig.json",
"excludeInternal": true,
"customCss": "../../typedoc/style.css",
"media": "../../media",
"name": "Realm Web",
"includeVersion": true,
"sourceLinkTemplate": "https://github.com/realm/realm-js/blob/{gitRevision}/{path}#L{line}",
"favicon": "../../media/favicon.ico"
}
2 changes: 1 addition & 1 deletion packages/realm/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"entryPoints": ["src/index.ts"],
"tsconfig": "./tsconfig.json",
"excludeInternal": true,
"customCss": "./typedoc/styles.css",
"customCss": "../../typedoc/style.css",
"media": "../../media",
"name": "Realm JavaScript",
"includeVersion": true,
Expand Down
File renamed without changes.