Automated docs#71
Conversation
✅ Deploy Preview for biongff-vizarr ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
can I suggest having a typedoc.json at root level like {
"entryPointStrategy": "packages",
"entryPoints": ["./*"], // or ["viewer"]
"packageOptions": {
"entryPoints": ["src/index.tsx"]
}
}and the typedoc.json in viewer like {
"projectDocuments": ["introduction.md"]
}so that we can have a command in the root package json to build the docs |
✅ Deploy Preview for biongff-vizarr ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
davehorsfall
left a comment
There was a problem hiding this comment.
LGTM. Thanks for making those changes.
There was a problem hiding this comment.
Pull request overview
This PR adds automated API documentation generation for the monorepo using TypeDoc (with the typedoc-github-theme plugin), along with initial viewer “Quick start” documentation and some additional inline API doc comments.
Changes:
- Add root TypeDoc configuration (
typedoc.json) and abuild:docsscript to generate docs intodocs/build. - Add initial viewer documentation (
docs/viewer/introduction.md) and reference it from a viewer-leveltypedoc.json. - Minor documentation/formatting adjustments in viewer types and props; ignore generated docs output via
.gitignore.
Reviewed changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
typedoc.json |
Adds monorepo TypeDoc configuration using entryPointStrategy: "packages". |
package.json |
Adds build:docs script and TypeDoc-related dev dependencies. |
pnpm-lock.yaml |
Locks new TypeDoc and theme dependencies. |
viewer/typedoc.json |
Adds viewer-specific TypeDoc config (project document reference). |
docs/viewer/introduction.md |
Adds a Quick start doc page for the viewer. |
viewer/src/state.ts |
Adds JSDoc comments to ViewState fields for generated docs. |
viewer/src/components/VizarrViewer.tsx |
Consolidates MUI imports and adds JSDoc comments to exported props/component. |
viewer/package.json |
Reformats files field to multi-line array. |
biome.json |
Updates Biome ignore list. |
.gitignore |
Ignores generated docs/build output directory. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| /**Level of zoom */ | ||
| zoom: number; | ||
| /** Coordinates to center the view state on */ | ||
| target: [number, number]; |
| /** Source image urls*/ | ||
| sources?: string[]; | ||
| /** View state of the viewer*/ | ||
| viewState?: ViewState; |
| /** | ||
| *Component to render source images | ||
| */ |
|
|
||
|
|
||
| ``` | ||
| npm install @hms-dbmi/vizarr |
| }, | ||
| "files": { | ||
| "ignore": ["python", "**/package.json"] | ||
| "ignore": ["python", "**/package.json", "viewer/package.json"] |
| ``` | ||
| import VizarrViewer from '@hms-dbmi/vizarr' | ||
|
|
||
| function App() { | ||
|
|
||
| const sources = ["https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.5/idr0062A/6001240_labels.zarr"] | ||
|
|
||
| return( | ||
| <VizarrViewer | ||
| sources={sources} | ||
| viewState={viewState} | ||
| /> | ||
| ) | ||
| } | ||
|
|
||
|
|
||
| ``` |
Description
cd viewer
npx typedoc --plugin typedoc-github-theme
Fixes # (issue)
Related to # (if applicable)
Type of change
Checklist
npm test)pre-commit run --all-files)