Skip to content

docs: update the guides and READMEs for 0.10 - #865

Merged
kylebarron merged 5 commits into
mainfrom
kyle/docs-pass-0.10
Nov 9, 2026
Merged

kylebarron merged 5 commits into
mainfrom
kyle/docs-pass-0.10

Conversation

@kylebarron

Copy link
Copy Markdown
Member

Note

This PR was written by Claude (Claude Code), not by @kylebarron.

A docs pass for 0.10, so that the site deployed with the release describes the 0.10 API.

Changes

  • Intro guide (docs/guides/intro.md):
    • The first sentence names Zarr. The features list adds merged range requests and shared sources, and nodata masks leave the "Soon" list, since the default pipeline applies a COG's mask.
    • The packages table gets a range-reader row.
    • The "How It Works" diagram drops GeoTIFFLayer, which no longer exists, and adds the other layers, the sources, RasterTileLayer, the range reader and zarrita.
    • A new "Sources" paragraph, and "Tile Streaming" says how the range reader merges and caches reads.
  • deck.gl-geotiff README: a "Layers and sources" section, with the source each layer takes, opening a source yourself, and a MosaicLayer over parseVRT items.
  • deck.gl-raster README: points Zarr users to ZarrLayer. Both layer links are now URLs. A {@link} to another package's symbol renders as plain text on the docs site, and literally on GitHub and npm.
  • deck.gl-zarr README: arrays may have other dimensions in any position, as long as y comes before x (feat(deck.gl-zarr): render arrays whose spatial dims aren't last, such as [y, x, band] #788).
  • range-reader README: "Status" points to Read Zarr through the range reader: merged shard reads, per-read cancellation, a cache shared with COGs #855 for Zarr, instead of saying that sharded Zarr is next.
  • Relative links: the geotiff and deck.gl-geotiff READMEs linked ../range-reader/README.md, which TypeDoc turns into a copy of the raw file (_media/README.md). They now link the range-reader API page.
  • API docs: TypeDoc links a type from another package only through crossPackageLinks, which had no entries for the 0.10 types. It now maps RasterSource, DEFAULT_RANGE_READER, COGSource, MultiCOGSource, ZarrSource, the range-reader types and the proj types they use. COGSource's page, for example, now links "Extends RasterSource".
  • GetTileDataOptions JSDoc linked ZarrLayerProps.getTileData, which TypeDoc can't resolve. That was the only TypeDoc warning.

Checked

  • docusaurus generate-typedoc reports no warnings, down from one, and every page that crossPackageLinks maps to exists in its output.
  • docusaurus build succeeds and reports no broken links. Its two warnings are on main too: onBrokenMarkdownLinks is deprecated, and docs/docs doesn't exist.
  • The deck.gl-geotiff README's snippets typecheck against the package, except for noUnusedParameters on renderSource's item, which MosaicLayer's own docs also leave unused.
  • Biome is clean.

Closes #853

🤖 Written by Claude Code

@kylebarron kylebarron added this to the 0.10 milestone Nov 6, 2026
@github-actions github-actions Bot added the docs label Nov 6, 2026
Comment thread docs/guides/intro.md
- **Flexible reprojection**: GPU-based raster reprojection from most projections[^1]
- **Efficient streaming**: Intelligent COG rendering fetches only visible image portions
- **Efficient streaming**: Intelligent COG rendering fetches only visible image portions, merging nearby reads into few HTTP range requests
- **Shared sources**: Open a dataset once with `COGSource`, `MultiCOGSource` or `ZarrSource`, and draw it with any number of layers

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe a question for later, especially when we revamp caching. I think right now caching lives on the layer (i.e. maxCacheSize and maxCacheByteSize refer to the layer's cache) but perhaps we should move caching to the source instead of the layer.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note

This comment was written by Claude (Claude Code), not by @kylebarron.

No change here; agreed, it's a question for the caching revamp. Today there are two caches:

  • The range reader's byte cache already sits below the layers. Every COG source reads through DEFAULT_RANGE_READER by default, so layers that share a source, or open the same file, share its bytes.
  • Each layer's tile cache (maxCacheSize, maxCacheByteSize) holds decoded tiles and their GPU textures.

Moving the decoded tiles to the source would let the layers that share a source share decoded pixels. The textures would likely stay with the layer that draws them. That's the CPU/GPU split in #516. For comparison, OpenLayers went the other way in v10: it moved its tile cache from the source into the layer renderer, keyed by source and tile, and keeps only file-level state, such as headers and byte caches, on the source.

🤖 Written by Claude Code

Comment thread docs/guides/intro.md Resolved
Comment thread packages/range-reader/README.md Resolved
Comment thread packages/deck.gl-zarr/README.md Resolved
Comment thread packages/deck.gl-geotiff/README.md Outdated

| Layer | Source | Draws |
| --- | --- | --- |
| {@link COGLayer} | {@link COGSource} | One COG. |

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is this {@link syntax markdown?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note

This comment was written by Claude (Claude Code), not by @kylebarron.

Is this {@link syntax markdown?

No, it's TSDoc. TypeDoc resolves it when it renders this README as the package's page on the docs site, where it becomes a link to the symbol's page. GitHub and npm render the README as plain Markdown, so they show {@link COGLayer} as is. The README already used it in the line above this table, and the deck.gl-zarr and geotiff READMEs use it too.

Markdown links to the docs site work in all three places. This PR already uses them in the deck.gl-raster README, where {@link} can't reach another package anyway. Should I switch these READMEs to Markdown links too? That's this table, the line above it, and {@link ZarrLayer} and {@link RasterArray} in the deck.gl-zarr and geotiff READMEs.

🤖 Written by Claude Code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note

This comment was written by Claude (Claude Code), not by @kylebarron.

Switched in 3bb14922: every {@link} in the READMEs is now a Markdown link to the symbol's page on the docs site. That's the 7 in this README, ZarrLayer in deck.gl-zarr's and RasterArray in geotiff's. TypeDoc still reports no warnings.

🤖 Written by Claude Code

@kylebarron
kylebarron merged commit 10ce603 into main Nov 9, 2026
3 checks passed
@kylebarron
kylebarron deleted the kyle/docs-pass-0.10 branch November 9, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs pass for 0.10

1 participant