observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.57k stars 123 forks source link

Include page loaders and parameterized pages in the default sidebar #1628

Open Fil opened 2 months ago

Fil commented 2 months ago

(excerpted from #1624 / #1626)

mbostock commented 2 months ago

Not sure how we would include parameterized pages, unless we used the dynamicPaths option or link crawling #1627 to find the parameter values? But we definitely could include non-parameterized page loaders in the default sidebar; the main challenge there is that the default for the pages option is synchronous, but we could find a way around that by refactoring the code.