MCPcopy Create free account
hub / github.com/observablehq/framework / normalizePages

Function normalizePages

src/config.ts:440–444  ·  view source on GitHub ↗
(spec: unknown)

Source from the content-addressed store, hash-verified

438}
439
440function normalizePages(spec: unknown): Config["pages"] {
441 return normalizeArray(spec, (spec: any) =>
442 "pages" in spec ? normalizeSection(spec, normalizePage) : normalizePage(spec)
443 );
444}
445
446function normalizeSection<T>(
447 spec: SectionSpec,

Callers 1

normalizeConfigFunction · 0.85

Calls 3

normalizeArrayFunction · 0.85
normalizeSectionFunction · 0.85
normalizePageFunction · 0.85

Tested by

no test coverage detected