Skip to content

Automated docs#71

Merged
davehorsfall merged 9 commits into
devfrom
automated-docs
Jul 3, 2026
Merged

Automated docs#71
davehorsfall merged 9 commits into
devfrom
automated-docs

Conversation

@AlexSurtees

@AlexSurtees AlexSurtees commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

Description

cd viewer
npx typedoc --plugin typedoc-github-theme

Fixes # (issue)
Related to # (if applicable)

Type of change

  • 🐛 Bug fix (non-breaking change that resolves an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • ⚡ Optimisation (non-breaking improvement to performance or efficiency)
  • 🧩 Documentation (adds or improves documentation)
  • 🧱 Maintenance (refactor, dependency update, CI/CD, etc.)
  • 🔥 Breaking change (fix or feature that causes existing functionality to change)

Checklist

  • All tests pass (eg. npm test)
  • Pre-commit hooks run successfully (eg. pre-commit run --all-files)
  • Documentation updated (if required)

@netlify

netlify Bot commented Apr 1, 2026

Copy link
Copy Markdown

Deploy Preview for biongff-vizarr ready!

Name Link
🔨 Latest commit 2b4b008
🔍 Latest deploy log https://app.netlify.com/projects/biongff-vizarr/deploys/69ce30b38ea8de0009e946c2
😎 Deploy Preview https://deploy-preview-71--biongff-vizarr.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@AlexSurtees AlexSurtees changed the base branch from main to dev April 1, 2026 09:13
@dannda

dannda commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

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
"build:docs": "pnpm typedoc --plugin typedoc-github-theme"
for all the packages (viewer and plugins) together

Comment thread package.json
Comment thread docs/viewer/introduction.md
@netlify

netlify Bot commented May 15, 2026

Copy link
Copy Markdown

Deploy Preview for biongff-vizarr ready!

Name Link
🔨 Latest commit c360487
🔍 Latest deploy log https://app.netlify.com/projects/biongff-vizarr/deploys/6a475f3900b12600084f309e
😎 Deploy Preview https://deploy-preview-71--biongff-vizarr.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

q
@codecov

codecov Bot commented May 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@davehorsfall davehorsfall requested review from davehorsfall and removed request for dannda June 29, 2026 12:36

@davehorsfall davehorsfall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks for making those changes.

@davehorsfall davehorsfall marked this pull request as ready for review July 2, 2026 08:40
Copilot AI review requested due to automatic review settings July 2, 2026 08:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 a build:docs script to generate docs into docs/build.
  • Add initial viewer documentation (docs/viewer/introduction.md) and reference it from a viewer-level typedoc.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.

Comment thread pnpm-lock.yaml
Comment thread viewer/src/state.ts
Comment on lines +29 to 32
/**Level of zoom */
zoom: number;
/** Coordinates to center the view state on */
target: [number, number];
Comment on lines +42 to 45
/** Source image urls*/
sources?: string[];
/** View state of the viewer*/
viewState?: ViewState;
Comment on lines +272 to +274
/**
*Component to render source images
*/


```
npm install @hms-dbmi/vizarr
Comment thread biome.json
},
"files": {
"ignore": ["python", "**/package.json"]
"ignore": ["python", "**/package.json", "viewer/package.json"]
Comment on lines +17 to +33
```
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}
/>
)
}


```
@davehorsfall davehorsfall merged commit 4f6f670 into dev Jul 3, 2026
7 checks passed
@davehorsfall davehorsfall deleted the automated-docs branch July 3, 2026 07:33
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.

4 participants