Skip to content

Commit d11de47

Browse files
authored
chore: Enhance documentation (#232)
1 parent 6bdd690 commit d11de47

File tree

10 files changed

+140
-18
lines changed

10 files changed

+140
-18
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"includes": ["**", "!**/dist/**/*", "!**/coverage/**/*", "!**/.astro/**/*"]
10+
"includes": ["**", "!**/dist/**/*", "!**/coverage/**/*", "!**/.astro/**/*", "!**/*.astro"]
1111
},
1212
"formatter": {
1313
"enabled": true,

site/astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineConfig({
2929
autogenerate: { directory: 'packages' },
3030
},
3131
{
32-
label: 'Developers',
32+
label: 'Vis Package Developers',
3333
autogenerate: { directory: 'developers' },
3434
},
3535
],
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
import { Tabs, TabItem, Code } from '@astrojs/starlight/components';
3+
4+
interface Props {
5+
npm: string;
6+
pnpm: string;
7+
yarn: string;
8+
}
9+
10+
const { npm, pnpm, yarn } = Astro.props;
11+
---
12+
13+
<Tabs syncKey="pkg">
14+
<TabItem label="npm">
15+
<Code code={npm} lang="bash" />
16+
</TabItem>
17+
<TabItem label="pnpm">
18+
<Code code={pnpm} lang="bash" />
19+
</TabItem>
20+
<TabItem label="yarn">
21+
<Code code={yarn} lang="bash" />
22+
</TabItem>
23+
</Tabs>

site/src/content/docs/getting-started/packages.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ sidebar:
77

88
The `AllenInstitute/vis` repository holds multiple published packages. The current list of packages is below:
99

10-
- `vis-core`: A collection of useful utilities used to build our big-data, scalable, data visualization tools, including the DZI viewer, OME-Zarr viewer, and our scatterplot tool "Scatterbrain" for the [ABC Atlas](https://knowledge.brain-map.org/abcatlas) in the Brain Knowledge Platform web application
11-
- `vis-dzi`: A renderer for [Deep Zoom Images](https://en.wikipedia.org/wiki/Deep_Zoom)
12-
- `vis-geometry`: A collection of vector functions for 2D and 3D geometry
13-
- `vis-omezarr`: A renderer for [OME-Zarr](https://ngff.openmicroscopy.org/latest/) datasets
10+
- `vis-core`: A collection of useful utilities used to build our big-data, scalable, data visualization tools, including the DZI viewer, OME-Zarr viewer, and our scatterplot tool "Scatterbrain" for the [ABC Atlas](https://knowledge.brain-map.org/abcatlas) in the Brain Knowledge Platform web application
11+
- `vis-dzi`: A renderer for [Deep Zoom Images](https://en.wikipedia.org/wiki/Deep_Zoom)
12+
- `vis-geometry`: A collection of vector functions for 2D and 3D geometry
13+
- `vis-omezarr`: A renderer for [OME-Zarr](https://ngff.openmicroscopy.org/latest/) datasets
14+
- `vis-scatterbrain`: A scatterplot viewer optimized for visualizing large datasets, such as those in the [ABC Atlas](https://knowledge.brain-map.org/abcatlas)
1415

1516
To install and use these packages, see the instructions on [using packages](../using-packages).
1617

1718
## Future Packages
1819

19-
- `@alleninstitute/vis-scatterbrain` - Code for building scatterplots
20-
- `@alleninstitute/vis-react` - React component implementations of each of the visualization packages.
20+
The following is a list of packages that we would like to create in the future.
21+
22+
If you are interested in contributing to the development of any of these packages, please reach out on GitHub to get started!
23+
- `vis-components` - A collection of web components for displaying visualizations built with our `vis` packages
24+
- `vis-react` - React component implementations of each of the visualization packages
25+
- `vis-[your favorite framework]` - Any other framework-specific implementations of our visualization packages, as driven by community needs

site/src/content/docs/index.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ hero:
77
image:
88
file: ../../assets/umap.png
99
actions:
10+
- text: Get Started
11+
link: /vis/getting-started/packages
12+
variant: primary
1013
- text: Examples
1114
link: /vis/examples/omezarr1
12-
icon: right-arrow
13-
- text: Read the docs
14-
link: /vis/getting-started/packages/
15-
variant: minimal
15+
variant: secondary
1616
---
1717

1818
import { Card, CardGrid } from '@astrojs/starlight/components';
@@ -22,14 +22,14 @@ import { Card, CardGrid } from '@astrojs/starlight/components';
2222
<CardGrid stagger>
2323
<Card title="ABC Atlas" icon="rocket">
2424
The [Allen Brain Cell Atlas (ABC Atlas)](https://knowledge.brain-map.org/abcatlas)
25-
uses `@alleninstitue/vis-core` to visualize millions of points of data in the browser.
25+
uses `@alleninstitute/vis-core` to visualize millions of points of data in the browser.
2626
</Card>
2727
<Card title="GTA" icon="magnifier">
2828
The [Genetic Tools Atlas (GTA)](https://knowledge.brain-map.org/data/7CVKSF7QGAKIQ8LM5LC/specimens/HTS03VQD4BBB67I3BAP)
2929
uses `@alleninstitute/vis-omezarr` to display OME-Zarr previews.
3030
</Card>
3131
<Card title="DZI" icon="information">
32-
The [SEA-AD project](https://dev-knowledge.brain-map.org/data/JGN327NUXRZSHEV88TN/specimens/JGCXWER774NLNWX2NNR)
32+
The [SEA-AD project](https://knowledge.brain-map.org/data/JGN327NUXRZSHEV88TN/specimens/JGCXWER774NLNWX2NNR)
3333
uses `@alleninstitute/vis-dzi` to display Deep Zoom Image (DZI) views.
3434
</Card>
3535
</CardGrid>
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
---
22
title: Core
3-
description: Documentation for the `@alleninstiute/vis-core` package
3+
description: Documentation for the `@alleninstitute/vis-core` package
44
---
55

6+
import PackageManagerTabs from '../../../components/PackageManagerTabs.astro';
7+
8+
## Installation
9+
10+
To install the `@alleninstitute/vis-core` package, make sure you've followed the instructions for [authenticating
11+
with the Allen Institute's npm registry on GitHub](../../getting-started/using-packages), then run the following command in your terminal:
12+
13+
<PackageManagerTabs
14+
npm="npm install @alleninstitute/vis-core"
15+
pnpm="pnpm add @alleninstitute/vis-core"
16+
yarn="yarn add @alleninstitute/vis-core"
17+
/>
18+
619
## How To use generic rendering tools for your cool data
720

821
### Use case
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
---
22
title: DZI
3-
description: Documentation for the `@alleninstiute/vis-dzi` package
3+
description: Documentation for the `@alleninstitute/vis-dzi` package
44
---
55

66
import { Aside } from '@astrojs/starlight/components';
7+
import PackageManagerTabs from '../../../components/PackageManagerTabs.astro';
8+
9+
# Installation
10+
11+
To install the `@alleninstitute/vis-dzi` package, make sure you've followed the instructions for [authenticating
12+
with the Allen Institute's npm registry on GitHub](../../getting-started/using-packages), then run the following command in your terminal:
13+
14+
<PackageManagerTabs
15+
npm="npm install @alleninstitute/vis-dzi"
16+
pnpm="pnpm add @alleninstitute/vis-dzi"
17+
yarn="yarn add @alleninstitute/vis-dzi"
18+
/>
19+
20+
## Examples
21+
22+
There is one DZI example to view:
23+
- [Linked views with an SVG overlay](../../examples/dzi)
24+
25+
## Usage
726

827
<Aside type="caution">Docs under construction</Aside>
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
---
22
title: Geometry
3-
description: Documentation for the `@alleninstiute/vis-geometry` package
3+
description: Documentation for the `@alleninstitute/vis-geometry` package
44
---
55

66
import { Aside } from '@astrojs/starlight/components';
7+
import PackageManagerTabs from '../../../components/PackageManagerTabs.astro';
8+
9+
## Installation
10+
11+
To install the `@alleninstitute/vis-geometry` package, make sure you've followed the instructions for [authenticating
12+
with the Allen Institute's npm registry on GitHub](../../getting-started/using-packages), then run the following command in your terminal:
13+
14+
<PackageManagerTabs
15+
npm="npm install @alleninstitute/vis-geometry"
16+
pnpm="pnpm add @alleninstitute/vis-geometry"
17+
yarn="yarn add @alleninstitute/vis-geometry"
18+
/>
19+
20+
## Usage
721

822
<Aside type="caution">Docs under construction</Aside>
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
---
22
title: OME-Zarr
3-
description: Documentation for the `@alleninstiute/vis-omezarr` package
3+
description: Documentation for the `@alleninstitute/vis-omezarr` package
44
---
55

66
import { Aside } from '@astrojs/starlight/components';
7+
import PackageManagerTabs from '../../../components/PackageManagerTabs.astro';
8+
9+
## Installation
10+
11+
To install the `@alleninstitute/vis-omezarr` package, make sure you've followed the instructions for [authenticating
12+
with the Allen Institute's npm registry on GitHub](../../getting-started/using-packages), then run the following command in your terminal:
13+
14+
<PackageManagerTabs
15+
npm="npm install @alleninstitute/vis-omezarr"
16+
pnpm="pnpm add @alleninstitute/vis-omezarr"
17+
yarn="yarn add @alleninstitute/vis-omezarr"
18+
/>
19+
20+
## Examples
21+
22+
There are three OME-Zarr examples to view:
23+
- [Basic example with a few selectable datasets that shows the viewer and the dataset metadata](../../examples/omezarr1)
24+
- [Basic example but using our priority cache from `@alleninstitute/vis-core`](../../examples/omezarr2-priority)
25+
- [Gallery example of multiple viewers sharing the same web context](../../examples/omezarr3-gallery)
26+
27+
## Usage
728

829
<Aside type="caution">Docs under construction</Aside>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Scatterbrain
3+
description: Documentation for the `@alleninstitute/vis-scatterbrain` package
4+
---
5+
6+
import { Aside } from '@astrojs/starlight/components';
7+
import PackageManagerTabs from '../../../components/PackageManagerTabs.astro';
8+
9+
## Installation
10+
11+
To install the `@alleninstitute/vis-scatterbrain` package, make sure you've followed the instructions for [authenticating
12+
with the Allen Institute's npm registry on GitHub](../../getting-started/using-packages), then run the following command in your terminal:
13+
14+
<PackageManagerTabs
15+
npm="npm install @alleninstitute/vis-scatterbrain"
16+
pnpm="pnpm add @alleninstitute/vis-scatterbrain"
17+
yarn="yarn add @alleninstitute/vis-scatterbrain"
18+
/>
19+
20+
## Examples
21+
22+
There is one Scatterbrain example to view:
23+
- [Basic example](../../examples/scatterbrain)
24+
25+
## Usage
26+
27+
<Aside type="caution">Docs under construction</Aside>

0 commit comments

Comments
 (0)