Skip to content

Commit

Permalink
dynamicPaths snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Oct 7, 2024
1 parent 388fb80 commit 94ec69c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions observablehq.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import * as snapshots from "./test/snapshots.js";

export default {
title: "d3-geo-polygon",
src: "root",
output: "dist/docs"
src: "docs",
output: "dist/docs",
async *dynamicPaths() {
for (const snapshot of Object.keys(snapshots)) {
yield `/snapshots/${snapshot}.png`;
yield `/snapshots/${snapshot}-dark.png`;
}
},
};

0 comments on commit 94ec69c

Please sign in to comment.