-
Notifications
You must be signed in to change notification settings - Fork 4
Automated docs #71
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
base: dev
Are you sure you want to change the base?
Automated docs #71
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,4 +37,6 @@ coverage/ | |
|
|
||
| # Temporary files | ||
| *.tmp | ||
| *.swp | ||
| *.swp | ||
|
|
||
| docs/build | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| title: Quick start | ||
| --- | ||
|
|
||
|
|
||
| ### Getting started | ||
|
|
||
| ## Installation | ||
|
|
||
|
|
||
| ``` | ||
| npm install @hms-dbmi/vizarr | ||
| ``` | ||
|
|
||
| ## Basic Usage | ||
|
|
||
| ``` | ||
| 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} | ||
| /> | ||
| ) | ||
| } | ||
|
|
||
|
|
||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ | |
| "check": "pnpm build:viewer && pnpm -r run check", | ||
| "build:viewer": "pnpm --filter vizarr build", | ||
| "build:app": "pnpm --filter app build", | ||
| "build:docs": "pnpm typedoc --plugin typedoc-github-theme", | ||
| "build": "pnpm build:viewer && pnpm build:app", | ||
| "test": "vitest" | ||
| }, | ||
|
|
@@ -28,6 +29,8 @@ | |
| "@vitejs/plugin-react": "^4.3.4", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we add a
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, could you add instructions to the contributing guide about how to build and check the automated docs after changes are made? |
||
| "@vitest/coverage-v8": "4.0.15", | ||
| "semantic-release": "^25.0.2", | ||
| "typedoc": "^0.28.18", | ||
| "typedoc-github-theme": "^0.4.0", | ||
| "typescript": "^5.8.2", | ||
| "vite": "^6.2.7", | ||
| "vitest": "^4.0.15" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can expect there to be several static content pages for the documentation website. Instead of putting these in the viewer root (which might get cluttered), could we perhaps move these into
docs, and move the build directory todocs/build, which can be excluded in.gitignore?