nimbus-docs 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -1285,7 +1285,7 @@ async function main() {
1285
1285
  return;
1286
1286
  }
1287
1287
  if (args.version) {
1288
- process.stdout.write(`0.1.14\n`);
1288
+ process.stdout.write(`0.1.16\n`);
1289
1289
  return;
1290
1290
  }
1291
1291
  const [command, slug] = args._;
package/dist/content.d.ts CHANGED
@@ -24,6 +24,12 @@ interface DocsCollectionOptions<TFields extends Record<string, z.ZodTypeAny> = R
24
24
  * resolves to `string`, not `unknown`.
25
25
  */
26
26
  schemaFields?: TFields;
27
+ /**
28
+ * When `false`, unknown frontmatter keys pass through instead of erroring
29
+ * (default `true`). For ingesting byte-identical content with keys the
30
+ * schema doesn't model. Declared fields in `schemaFields` stay typed.
31
+ */
32
+ strictFrontmatter?: boolean;
27
33
  }
28
34
  interface PartialsCollectionOptions<TFields extends Record<string, z.ZodTypeAny> = Record<string, never>> {
29
35
  /**
@@ -237,13 +243,13 @@ declare function docsCollection<TFields extends Record<string, z.ZodTypeAny> = R
237
243
  */
238
244
  declare function partialsCollection<TFields extends Record<string, z.ZodTypeAny> = Record<string, never>>(options?: PartialsCollectionOptions<TFields>): {
239
245
  loader: astro_loaders0.Loader;
240
- schema: z.ZodDefault<z.ZodObject<{
241
- params: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
- }, z.core.$strip>> | z.ZodObject<("params" & keyof TFields extends never ? {
246
+ schema: z.ZodObject<("params" & keyof TFields extends never ? {
243
247
  params: z.ZodOptional<z.ZodArray<z.ZodString>>;
244
248
  } & { -readonly [P in keyof TFields]: TFields[P] } : ({
245
249
  params: z.ZodOptional<z.ZodArray<z.ZodString>>;
246
- } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof TFields ? never : K]: T_1[K] } : never) & { [K_1 in keyof { -readonly [P in keyof TFields]: TFields[P] }]: { -readonly [P in keyof TFields]: TFields[P] }[K_1] }) extends infer T ? { [k in keyof T]: T[k] } : never, z.core.$strip>;
250
+ } extends infer T_1 extends z.core.util.SomeObject ? { [K in keyof T_1 as K extends keyof TFields ? never : K]: T_1[K] } : never) & { [K_1 in keyof { -readonly [P in keyof TFields]: TFields[P] }]: { -readonly [P in keyof TFields]: TFields[P] }[K_1] }) extends infer T ? { [k in keyof T]: T[k] } : never, z.core.$strip> | z.ZodDefault<z.ZodObject<{
251
+ params: z.ZodOptional<z.ZodArray<z.ZodString>>;
252
+ }, z.core.$strip>>;
247
253
  };
248
254
  interface ComponentsCollectionOptions {
249
255
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","names":[],"sources":["../src/content.ts"],"mappings":";;;;;UA0CiB,qBAAA,iBACC,MAAA,SAAe,CAAA,CAAE,UAAA,IAAc,MAAA;EAqBzB;;AAGxB;;EAlBE,IAAA;EAmBiC;;;;EAdjC,OAAA;EAgCsB;;;;;;;;;EAtBtB,YAAA,GAAe,OAAA;AAAA;AAAA,UAGA,yBAAA,iBACC,MAAA,SAAe,CAAA,CAAE,UAAA,IAAc,MAAA;EA2BjC;;;;EArBd,IAAA;EAsB+C;;;;EAjB/C,OAAA;;;;;;;EAOA,YAAA,GAAe,OAAA;AAAA;;;;;iBASD,cAAA,iBACE,MAAA,SAAe,CAAA,CAAE,UAAA,IAAc,MAAA,gBAAA,CAC/C,OAAA,GAAS,qBAAA,CAAsB,OAAA;UAAD,cAAA,CAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBhB,kBAAA,iBACE,MAAA,SAAe,CAAA,CAAE,UAAA,IAAc,MAA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A;UAAgC,cAAA,CAAA,MAAA"}
package/dist/content.js CHANGED
@@ -29,7 +29,10 @@ const DEFAULT_PATTERN = "**/*.{md,mdx}";
29
29
  function docsCollection(options = {}) {
30
30
  const base = `./src/content/${options.base ?? "docs"}`;
31
31
  const pattern = options.pattern ?? DEFAULT_PATTERN;
32
- const schema = defineDocSchema({ fields: options.schemaFields });
32
+ const schema = defineDocSchema({
33
+ fields: options.schemaFields,
34
+ strictFrontmatter: options.strictFrontmatter
35
+ });
33
36
  return {
34
37
  loader: glob({
35
38
  base,
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","names":[],"sources":["../src/content.ts"],"sourcesContent":["/**\n * Content collection helpers for `nimbus-docs/content`.\n *\n * Users plug these into their `src/content.config.ts`:\n *\n * import { defineCollection } from \"astro:content\";\n * import { docsCollection, partialsCollection } from \"nimbus-docs/content\";\n *\n * export const collections = {\n * docs: defineCollection(docsCollection()),\n * partials: defineCollection(partialsCollection()),\n * };\n *\n * Extend the docs schema with extra frontmatter fields:\n *\n * docs: defineCollection(docsCollection({\n * schemaFields: { author: z.string(), tags: z.array(z.string()) },\n * })),\n */\n\nimport { glob } from \"astro/loaders\";\nimport type { z } from \"astro/zod\";\n\nimport {\n componentsSchema,\n defineDocSchema,\n definePartialsSchema,\n partialsSchema,\n} from \"./schemas.js\";\n\n// Re-export the public schema factories from `nimbus-docs/content` so users\n// have a single import for content-config concerns (collections + schemas).\nexport {\n defineDocSchema,\n definePartialsSchema,\n defineSchema,\n docsSchema,\n partialsSchema,\n componentsSchema,\n} from \"./schemas.js\";\nexport type { DefineSchemaOptions, DocSchemaConfig, ComponentProp } from \"./schemas.js\";\n\nexport interface DocsCollectionOptions<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n> {\n /**\n * Directory under `src/content/` to load docs from.\n * Default: `\"docs\"`.\n */\n base?: string;\n /**\n * Glob pattern relative to `base`.\n * Default: `\"** /*.{md,mdx}\"` (space added to avoid breaking this comment).\n */\n pattern?: string;\n /**\n * Extra fields merged into the default docs schema. Lets users add\n * project-specific frontmatter (author, tags, etc.) without rebuilding\n * the whole schema.\n *\n * Generic-typed so the call-site shape (`{ author: z.string() }`) is\n * preserved through to the emitted entry data type — `entry.data.author`\n * resolves to `string`, not `unknown`.\n */\n schemaFields?: TFields;\n}\n\nexport interface PartialsCollectionOptions<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n> {\n /**\n * Directory under `src/content/` to load partials from.\n * Default: `\"partials\"`.\n */\n base?: string;\n /**\n * Glob pattern relative to `base`.\n * Default: `\"** /*.{md,mdx}\"`.\n */\n pattern?: string;\n /**\n * Extra frontmatter fields merged into the default partials schema.\n * Useful for partials with product-specific metadata (e.g. CF's\n * `inputParameters`). Same generic-preserving shape as\n * `DocsCollectionOptions.schemaFields`.\n */\n schemaFields?: TFields;\n}\n\nconst DEFAULT_PATTERN = \"**/*.{md,mdx}\";\n\n/**\n * Returns an Astro content-collection config (`{ loader, schema }`) for the\n * docs collection. Pass to `defineCollection()`.\n */\nexport function docsCollection<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n>(options: DocsCollectionOptions<TFields> = {}) {\n const base = `./src/content/${options.base ?? \"docs\"}`;\n const pattern = options.pattern ?? DEFAULT_PATTERN;\n const schema = defineDocSchema({ fields: options.schemaFields });\n\n return {\n loader: glob({ base, pattern }),\n schema,\n };\n}\n\n/**\n * Returns an Astro content-collection config (`{ loader, schema }`) for the\n * partials collection. Pass to `defineCollection()`.\n *\n * `schemaFields` extends the default partials schema with extra\n * frontmatter — same shape as `docsCollection({ schemaFields })`.\n */\nexport function partialsCollection<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n>(options: PartialsCollectionOptions<TFields> = {}) {\n const base = `./src/content/${options.base ?? \"partials\"}`;\n const pattern = options.pattern ?? DEFAULT_PATTERN;\n // Avoid re-deriving the schema when no fields were declared — keeps the\n // default behaviour (`partialsSchema` with its `.default({})`) exact for\n // existing users who don't opt in.\n const schema = options.schemaFields\n ? definePartialsSchema({ fields: options.schemaFields })\n : partialsSchema;\n\n return {\n loader: glob({ base, pattern }),\n schema,\n };\n}\n\nexport interface ComponentsCollectionOptions {\n /**\n * Directory under `src/content/` to load component entries from.\n * Default: `\"components\"`.\n */\n base?: string;\n /**\n * Glob pattern relative to `base`.\n * Default: `\"**\\/*.{md,mdx}\"`.\n */\n pattern?: string;\n}\n\n/**\n * Returns an Astro content-collection config (`{ loader, schema }`) for the\n * components collection — for sites documenting their own UI components.\n *\n * Pairs with the `component-showcase` registry recipe, which installs the\n * matching `<Showcase>` / `<Example>` MDX wrappers and the `/components`\n * route. Frontmatter shape: `{ title, tagline, props }`.\n */\nexport function componentsCollection(options: ComponentsCollectionOptions = {}) {\n const base = `./src/content/${options.base ?? \"components\"}`;\n const pattern = options.pattern ?? DEFAULT_PATTERN;\n\n return {\n loader: glob({ base, pattern }),\n schema: componentsSchema,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyFA,MAAM,kBAAkB;;;;;AAMxB,SAAgB,eAEd,UAA0C,EAAE,EAAE;CAC9C,MAAM,OAAO,iBAAiB,QAAQ,QAAQ;CAC9C,MAAM,UAAU,QAAQ,WAAW;CACnC,MAAM,SAAS,gBAAgB,EAAE,QAAQ,QAAQ,cAAc,CAAC;AAEhE,QAAO;EACL,QAAQ,KAAK;GAAE;GAAM;GAAS,CAAC;EAC/B;EACD;;;;;;;;;AAUH,SAAgB,mBAEd,UAA8C,EAAE,EAAE;CAClD,MAAM,OAAO,iBAAiB,QAAQ,QAAQ;CAC9C,MAAM,UAAU,QAAQ,WAAW;CAInC,MAAM,SAAS,QAAQ,eACnB,qBAAqB,EAAE,QAAQ,QAAQ,cAAc,CAAC,GACtD;AAEJ,QAAO;EACL,QAAQ,KAAK;GAAE;GAAM;GAAS,CAAC;EAC/B;EACD;;;;;;;;;;AAwBH,SAAgB,qBAAqB,UAAuC,EAAE,EAAE;AAI9E,QAAO;EACL,QAAQ,KAAK;GAAE,MAJJ,iBAAiB,QAAQ,QAAQ;GAIvB,SAHP,QAAQ,WAAW;GAGH,CAAC;EAC/B,QAAQ;EACT"}
1
+ {"version":3,"file":"content.js","names":[],"sources":["../src/content.ts"],"sourcesContent":["/**\n * Content collection helpers for `nimbus-docs/content`.\n *\n * Users plug these into their `src/content.config.ts`:\n *\n * import { defineCollection } from \"astro:content\";\n * import { docsCollection, partialsCollection } from \"nimbus-docs/content\";\n *\n * export const collections = {\n * docs: defineCollection(docsCollection()),\n * partials: defineCollection(partialsCollection()),\n * };\n *\n * Extend the docs schema with extra frontmatter fields:\n *\n * docs: defineCollection(docsCollection({\n * schemaFields: { author: z.string(), tags: z.array(z.string()) },\n * })),\n */\n\nimport { glob } from \"astro/loaders\";\nimport type { z } from \"astro/zod\";\n\nimport {\n componentsSchema,\n defineDocSchema,\n definePartialsSchema,\n partialsSchema,\n} from \"./schemas.js\";\n\n// Re-export the public schema factories from `nimbus-docs/content` so users\n// have a single import for content-config concerns (collections + schemas).\nexport {\n defineDocSchema,\n definePartialsSchema,\n defineSchema,\n docsSchema,\n partialsSchema,\n componentsSchema,\n} from \"./schemas.js\";\nexport type { DefineSchemaOptions, DocSchemaConfig, ComponentProp } from \"./schemas.js\";\n\nexport interface DocsCollectionOptions<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n> {\n /**\n * Directory under `src/content/` to load docs from.\n * Default: `\"docs\"`.\n */\n base?: string;\n /**\n * Glob pattern relative to `base`.\n * Default: `\"** /*.{md,mdx}\"` (space added to avoid breaking this comment).\n */\n pattern?: string;\n /**\n * Extra fields merged into the default docs schema. Lets users add\n * project-specific frontmatter (author, tags, etc.) without rebuilding\n * the whole schema.\n *\n * Generic-typed so the call-site shape (`{ author: z.string() }`) is\n * preserved through to the emitted entry data type — `entry.data.author`\n * resolves to `string`, not `unknown`.\n */\n schemaFields?: TFields;\n /**\n * When `false`, unknown frontmatter keys pass through instead of erroring\n * (default `true`). For ingesting byte-identical content with keys the\n * schema doesn't model. Declared fields in `schemaFields` stay typed.\n */\n strictFrontmatter?: boolean;\n}\n\nexport interface PartialsCollectionOptions<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n> {\n /**\n * Directory under `src/content/` to load partials from.\n * Default: `\"partials\"`.\n */\n base?: string;\n /**\n * Glob pattern relative to `base`.\n * Default: `\"** /*.{md,mdx}\"`.\n */\n pattern?: string;\n /**\n * Extra frontmatter fields merged into the default partials schema.\n * Useful for partials with product-specific metadata (e.g. CF's\n * `inputParameters`). Same generic-preserving shape as\n * `DocsCollectionOptions.schemaFields`.\n */\n schemaFields?: TFields;\n}\n\nconst DEFAULT_PATTERN = \"**/*.{md,mdx}\";\n\n/**\n * Returns an Astro content-collection config (`{ loader, schema }`) for the\n * docs collection. Pass to `defineCollection()`.\n */\nexport function docsCollection<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n>(options: DocsCollectionOptions<TFields> = {}) {\n const base = `./src/content/${options.base ?? \"docs\"}`;\n const pattern = options.pattern ?? DEFAULT_PATTERN;\n const schema = defineDocSchema({\n fields: options.schemaFields,\n strictFrontmatter: options.strictFrontmatter,\n });\n\n return {\n loader: glob({ base, pattern }),\n schema,\n };\n}\n\n/**\n * Returns an Astro content-collection config (`{ loader, schema }`) for the\n * partials collection. Pass to `defineCollection()`.\n *\n * `schemaFields` extends the default partials schema with extra\n * frontmatter — same shape as `docsCollection({ schemaFields })`.\n */\nexport function partialsCollection<\n TFields extends Record<string, z.ZodTypeAny> = Record<string, never>,\n>(options: PartialsCollectionOptions<TFields> = {}) {\n const base = `./src/content/${options.base ?? \"partials\"}`;\n const pattern = options.pattern ?? DEFAULT_PATTERN;\n // Avoid re-deriving the schema when no fields were declared — keeps the\n // default behaviour (`partialsSchema` with its `.default({})`) exact for\n // existing users who don't opt in.\n const schema = options.schemaFields\n ? definePartialsSchema({ fields: options.schemaFields })\n : partialsSchema;\n\n return {\n loader: glob({ base, pattern }),\n schema,\n };\n}\n\nexport interface ComponentsCollectionOptions {\n /**\n * Directory under `src/content/` to load component entries from.\n * Default: `\"components\"`.\n */\n base?: string;\n /**\n * Glob pattern relative to `base`.\n * Default: `\"**\\/*.{md,mdx}\"`.\n */\n pattern?: string;\n}\n\n/**\n * Returns an Astro content-collection config (`{ loader, schema }`) for the\n * components collection — for sites documenting their own UI components.\n *\n * Pairs with the `component-showcase` registry recipe, which installs the\n * matching `<Showcase>` / `<Example>` MDX wrappers and the `/components`\n * route. Frontmatter shape: `{ title, tagline, props }`.\n */\nexport function componentsCollection(options: ComponentsCollectionOptions = {}) {\n const base = `./src/content/${options.base ?? \"components\"}`;\n const pattern = options.pattern ?? DEFAULT_PATTERN;\n\n return {\n loader: glob({ base, pattern }),\n schema: componentsSchema,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA+FA,MAAM,kBAAkB;;;;;AAMxB,SAAgB,eAEd,UAA0C,EAAE,EAAE;CAC9C,MAAM,OAAO,iBAAiB,QAAQ,QAAQ;CAC9C,MAAM,UAAU,QAAQ,WAAW;CACnC,MAAM,SAAS,gBAAgB;EAC7B,QAAQ,QAAQ;EAChB,mBAAmB,QAAQ;EAC5B,CAAC;AAEF,QAAO;EACL,QAAQ,KAAK;GAAE;GAAM;GAAS,CAAC;EAC/B;EACD;;;;;;;;;AAUH,SAAgB,mBAEd,UAA8C,EAAE,EAAE;CAClD,MAAM,OAAO,iBAAiB,QAAQ,QAAQ;CAC9C,MAAM,UAAU,QAAQ,WAAW;CAInC,MAAM,SAAS,QAAQ,eACnB,qBAAqB,EAAE,QAAQ,QAAQ,cAAc,CAAC,GACtD;AAEJ,QAAO;EACL,QAAQ,KAAK;GAAE;GAAM;GAAS,CAAC;EAC/B;EACD;;;;;;;;;;AAwBH,SAAgB,qBAAqB,UAAuC,EAAE,EAAE;AAI9E,QAAO;EACL,QAAQ,KAAK;GAAE,MAJJ,iBAAiB,QAAQ,QAAQ;GAIvB,SAHP,QAAQ,WAAW;GAGH,CAAC;EAC/B,QAAQ;EACT"}
package/dist/index.d.ts CHANGED
@@ -1316,28 +1316,6 @@ interface IndexedTopLevel {
1316
1316
  */
1317
1317
  groups: IndexedTopLevelGroup[];
1318
1318
  }
1319
- /**
1320
- * Cross-collection entry list for the agent-facing routes
1321
- * (`llms.txt`, per-page `.md` alternates, future `llms-full.txt` and
1322
- * `rag.jsonl`). Implements the indexing baseline of the two-layer
1323
- * architecture documented at `/features/llms-txt`:
1324
- *
1325
- * - **Multi-collection by default, zero opt-in.** Iterates every
1326
- * collection registered in `src/content.config.ts` except names
1327
- * matching `partials` or starting with `_` (reserved).
1328
- * - **Schema-tolerant.** Reads `title` and `description` if present;
1329
- * falls back to the entry id for the title and omits the
1330
- * description otherwise.
1331
- * - **Per-page filters baked in.** Drops entries with `draft: true`;
1332
- * absent fields read as the docs-schema default (`draft: false`).
1333
- * All published pages are indexed — there is no per-page opt-out.
1334
- * A page that genuinely shouldn't be agent-readable should be kept
1335
- * out of the content collection entirely.
1336
- *
1337
- * The returned shape is identical regardless of which factory created
1338
- * the collection: hand-rolled `defineCollection({ loader, schema })`
1339
- * collections work without modification.
1340
- */
1341
1319
  declare function getIndexedEntries(): Promise<IndexedEntry[]>;
1342
1320
  /**
1343
1321
  * Partition the indexed entries into the shape the root `/llms.txt`
@@ -1397,6 +1375,8 @@ declare function getSidebar(currentSlug: string, options?: {
1397
1375
  declare function getSidebarSections(currentSlug: string, options?: {
1398
1376
  collection?: string;
1399
1377
  }): Promise<SidebarSection[]>;
1378
+ /** Drop all nav caches (dev content-change invalidation). */
1379
+ declare function clearNavCaches(): void;
1400
1380
  /**
1401
1381
  * Resolve prev/next links for the current page.
1402
1382
  *
@@ -1766,5 +1746,5 @@ declare function getCollectionLlmsUrl(collectionId: string): Promise<string>;
1766
1746
  declare function getVersionLandingUrl(version: string): Promise<string | null>;
1767
1747
  declare function getVersionStatus(collectionId: string): Promise<VersionStatus | null>;
1768
1748
  //#endregion
1769
- export { type BadgeVariant, type Breadcrumb, IndexedEntry, IndexedTopLevel, IndexedTopLevelGroup, type NimbusConfig, type NimbusIntegrationOptions, type PrevNext, type PrevNextLink, type PrevNextOverrides, type ResolvedVersions, RouteNavigation, RouteNavigationOptions, type SearchProvider, type SearchResult, SectionTitle, SectionTitleResolver, type SidebarBadge, type SidebarConfig, type SidebarConfigItem, type SidebarExternalLinkItem, type SidebarGroupItem, type SidebarItem, type SidebarLinkItem, type SidebarSection, type SidebarTransform, type TOCItem, type VersionAlternateRecord, type VersionAlternatesTable, type VersionPageRef, type VersionStatus, type VersionsConfig, nimbus as default, defaultCodeTransformers, defineConfig, getBreadcrumbs, getCanonicalUrl, getCollectionLlmsUrl, getCollectionPageProps, getCollectionStaticPaths, getCurrentVersion, getDocsPageProps, getDocsStaticPaths, getEditUrl, getIndexedEntries, getIndexedTopLevel, getLastUpdated, getPrevNext, getRouteNavigation, getSectionTitle, getSidebar, getSidebarSections, getTOC, getVersionAlternates, getVersionLandingUrl, getVersionStatus, getVersions, getVisibleEntries, renderEntryAsMarkdown, sidebarHash };
1749
+ export { type BadgeVariant, type Breadcrumb, IndexedEntry, IndexedTopLevel, IndexedTopLevelGroup, type NimbusConfig, type NimbusIntegrationOptions, type PrevNext, type PrevNextLink, type PrevNextOverrides, type ResolvedVersions, RouteNavigation, RouteNavigationOptions, type SearchProvider, type SearchResult, SectionTitle, SectionTitleResolver, type SidebarBadge, type SidebarConfig, type SidebarConfigItem, type SidebarExternalLinkItem, type SidebarGroupItem, type SidebarItem, type SidebarLinkItem, type SidebarSection, type SidebarTransform, type TOCItem, type VersionAlternateRecord, type VersionAlternatesTable, type VersionPageRef, type VersionStatus, type VersionsConfig, clearNavCaches, nimbus as default, defaultCodeTransformers, defineConfig, getBreadcrumbs, getCanonicalUrl, getCollectionLlmsUrl, getCollectionPageProps, getCollectionStaticPaths, getCurrentVersion, getDocsPageProps, getDocsStaticPaths, getEditUrl, getIndexedEntries, getIndexedTopLevel, getLastUpdated, getPrevNext, getRouteNavigation, getSectionTitle, getSidebar, getSidebarSections, getTOC, getVersionAlternates, getVersionLandingUrl, getVersionStatus, getVersions, getVisibleEntries, renderEntryAsMarkdown, sidebarHash };
1770
1750
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["Data","Point","line","column","offset","Position","start","end","Literal","Node","value","type","data","position","Parent","children","Data","UnistData","Literal","UnistLiteral","Node","UnistNode","Parent","UnistParent","Properties","Array","PropertyName","ElementContent","ElementContentMap","Comment","Element","Text","comment","element","text","RootContent","RootContentMap","Doctype","doctype","Content","Literals","Nodes","Extract","Root","Parents","data","value","children","CommentData","type","DoctypeData","ElementData","tagName","properties","content","RootData","TextData","ruleIdSymbol","RuleId","__brand","endRuleId","IRuleRegistry","T","Rule","getRule","ruleId","registerRule","id","factory","IGrammarRegistry","IRawRepository","IRawGrammar","getExternalGrammar","scopeName","repository","IRuleFactoryHelper","ILocation","IOnigCaptureIndex","RegExpSourceList","IOnigLib","RegExpString","CompiledRule","$location","_nameIsCapturing","_name","_contentNameIsCapturing","_contentName","constructor","name","contentName","dispose","debugName","getName","lineText","captureIndices","getContentName","collectPatterns","grammar","out","compile","endRegexSource","compileAG","allowA","allowG","RegExpSource","TRuleId","source","hasAnchor","hasBackReferences","_anchorCache","regExpSource","clone","setSource","newSource","resolveBackReferences","_buildAnchorCache","resolveAnchors","_items","_hasAnchors","_cached","_disposeCaches","push","item","unshift","length","index","onigLib","_resolveAnchors","OnigString","FindOption","OrMask","IFindNextMatchResult","regExps","rules","scanner","toString","findNextMatchSync","string","startPosition","options","ScopeName","IRawRule","ILocatable","patterns","injections","expression","injectionSelector","fileTypes","firstLineMatch","IncludeString","RegExp","IRawRepositoryMap","IRawCaptures","include","match","captures","begin","beginCaptures","end","endCaptures","while","whileCaptures","applyEndPatternLast","IRawCapturesMap","captureId","filename","line","char","$vscodeTextmateLocation","OnigScanner","createOnigScanner","sources","createOnigString","str","start","IOnigMatch","None","NotBeginString","NotEndString","NotBeginPosition","DebugCall","content","disposeOnigString","Theme","IRawTheme","ParsedThemeRule","ColorMap","StyleAttributes","ThemeTrieElement","ScopeStack","_colorMap","_defaults","_root","createFromRawTheme","colorMap","createFromParsedTheme","_cachedMatchRoot","getColorMap","getDefaults","scopePath","ScopePath","ScopePattern","IRawThemeSetting","settings","scope","fontStyle","foreground","background","parent","path","scopeNames","from","first","segments","getSegments","extends","other","getExtensionIfDefined","base","FontStyle","foregroundId","backgroundId","parentScopes","NotSet","Italic","Bold","Underline","Strikethrough","_isFrozen","_lastColorId","_id2color","_color2id","getId","color","ThemeTrieElementRule","scopeDepth","cloneArr","arr","acceptOverwrite","ITrieChildrenMap","segment","_mainRule","_children","_rulesWithParentScopes","rulesWithParentScopes","_cmpBySpecificity","insert","_doInsertHere","EncodedTokenAttributes","EncodedTokenMetadata","StandardTokenType","OptionalStandardTokenType","toBinaryStr","encodedTokenAttributes","print","getLanguageId","getTokenType","containsBalancedBrackets","getFontStyle","getForeground","getBackground","set","languageId","tokenType","Other","Comment","String","RegEx","Matcher","matcherInput","BasicScopeAttributes","IThemeProvider","themeMatch","IGrammarRepository","lookup","Injection","debugSelector","matcher","priority","Grammar","IEmbeddedLanguagesMap","ITokenTypeMap","BalancedBracketSelectors","StateStackImpl","ITokenizeLineResult","ITokenizeLineResult2","IGrammar","_rootScopeName","balancedBracketSelectors","_onigLib","_rootId","_lastRuleId","_ruleId2desc","_includedGrammars","_grammarRepository","_grammar","_injections","_basicScopeAttributesProvider","_tokenTypeMatchers","themeProvider","initialLanguage","embeddedLanguages","tokenTypes","grammarRepository","getMetadataForScope","_collectInjections","getInjections","tokenizeLine","prevState","timeLimit","tokenizeLine2","_tokenize","AttributedScopeStack","AttributedScopeStackFrame","tokenAttributes","fromExtension","namesScopeList","contentNameScopesList","createRoot","createRootAndLookUpScopeName","equals","a","b","mergeAttributes","pushAttributed","_pushAttributed","getScopeNames","StateStackFrame","StateStack","beginRuleCapturedEOL","endRule","nameScopesList","_stackElementBrand","NULL","_enterPos","_anchorPos","depth","enterPos","anchorPos","_equals","_structuralEquals","_reset","reset","pop","safePop","getEnterPos","getAnchorPos","_writeString","withContentNameScopesList","contentNameScopeStack","withEndRule","hasSameRuleAs","toStateStackFrame","pushFrame","self","frame","balancedBracketScopes","unbalancedBracketScopes","allowAny","matchesAlways","matchesNever","scopes","SyncRegistry","Map","_grammars","_rawGrammars","_injectionGrammars","_theme","theme","setTheme","addGrammar","injectionScopeNames","targetScope","grammarForScopeName","StackDiff","pops","newFrames","RegistryOptions","loadGrammar","selector","IGrammarConfiguration","unbalancedBracketSelectors","Registry","_options","_syncRegistry","_ensureGrammarCache","loadGrammarWithEmbeddedLanguages","initialScopeName","loadGrammarWithConfiguration","configuration","_loadGrammar","_loadSingleGrammar","_doLoadSingleGrammar","rawGrammar","_grammarForScopeName","IToken","tokens","ruleStack","stoppedEarly","Uint32Array","startIndex","endIndex","INITIAL","Element","Root","FontStyle","IGrammar","IRawGrammar","RawGrammar","IRawTheme","RawTheme","IRawThemeSetting","RawThemeSetting","OnigScanner","OnigString","StateStack","Awaitable","T","Promise","MaybeGetter","MaybeModule","default","MaybeArray","RequireKeys","K","Omit","Pick","Required","Nothing","StringLiteralUnion","U","PatternScanner","RegexEngineString","RegexEngine","RegExp","createScanner","patterns","createString","s","WebAssemblyInstantiator","WebAssembly","ImportValue","Record","WebAssemblyInstance","importObject","WebAssemblyInstantiatedSource","Instance","OnigurumaLoadOptions","ArrayBufferView","ArrayBuffer","Response","instantiator","data","LoadWasmOptionsPlain","LoadWasmOptions","Grammar","name","PlainTextLanguage","AnsiLanguage","SpecialLanguage","LanguageInput","LanguageRegistration","ResolveBundleKey","scopeName","displayName","aliases","embeddedLangs","embeddedLanguages","embeddedLangsLazy","balancedBracketSelectors","unbalancedBracketSelectors","foldingStopMarker","foldingStartMarker","injectTo","BundledLanguageInfo","DynamicImportLanguageRegistration","id","import","DecorationOptions","DecorationItem","decorations","OffsetOrPosition","DecorationTransformType","start","end","tagName","properties","transform","element","type","alwaysWrap","ResolvedDecorationItem","ResolvedPosition","Position","line","character","Offset","offset","SpecialTheme","ThemeInput","ThemeRegistrationAny","ThemeRegistrationRaw","ThemeRegistration","Partial","ThemeRegistrationResolved","settings","tokenColors","fg","bg","colorReplacements","colors","$schema","semanticHighlighting","semanticTokenColors","DynamicImportThemeRegistration","BundledThemeInfo","GrammarState","lang","theme","themes","getInternalStack","getScopes","CodeToTokensBaseOptions","Languages","Themes","TokenizeWithThemeOptions","CodeToTokensOptions","CodeOptionsThemes","CodeToTokensWithThemesOptions","ThemedTokenScopeExplanation","themeMatches","ThemedTokenExplanation","content","scopes","ThemedToken","TokenStyles","TokenBase","explanation","color","bgColor","fontStyle","htmlStyle","htmlAttrs","ThemedTokenWithVariants","variants","includeExplanation","tokenizeMaxLineLength","tokenizeTimeLimit","grammarState","grammarContextCode","TokensResult","tokens","themeName","rootStyle","TransformerOptions","ShikiTransformer","transformers","ShikiTransformerContextMeta","ShikiTransformerContextCommon","CodeToHastOptions","meta","options","codeToHast","code","codeToTokens","ShikiTransformerContextSource","source","ShikiTransformerContext","root","pre","lines","structure","addClassToHast","hast","className","enforce","preprocess","this","span","col","lineElement","token","postprocess","html","HighlighterCoreOptions","Sync","engine","langs","langAlias","warnings","BundledHighlighterOptions","L","CodeOptionsSingleTheme","CodeOptionsMultipleThemes","defaultColor","colorsRendering","cssVariablePrefix","CodeToHastOptionsCommon","CodeOptionsMeta","mergeWhitespaces","mergeSameStyleTokens","tabindex","__raw","key","CodeToHastRenderOptionsCommon","langId","CodeToHastRenderOptions","GrammarStateMapKey","ShikiPrimitive","BundledLangKeys","BundledThemeKeys","Symbol","dispose","loadTheme","loadThemeSync","loadLanguage","loadLanguageSync","getTheme","getLanguage","setTheme","colorMap","resolveLangAlias","getLoadedLanguages","getLoadedThemes","HighlighterGeneric","codeToHtml","codeToTokensBase","codeToTokensWithThemes","getLastGrammarState","getInternalContext","getBundledLanguages","getBundledThemes","HighlighterCore","CreateBundledHighlighterOptions","BundledLangs","BundledThemes","CreatedBundledHighlighterOptions","CreateHighlighterFactory","ShikiError","Error","constructor","message"],"sources":["../src/_internal/content.ts","../src/_internal/sidebar.ts","../src/_internal/transform.ts","../src/_internal/navigation.ts","../src/lint/config.ts","../src/_internal/incremental/partial-refs.ts","../src/_internal/incremental/sitemap.ts","../src/integration.ts","../../../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts","../../../node_modules/.pnpm/@types+hast@3.0.4/node_modules/@types/hast/index.d.ts","../../../node_modules/.pnpm/@shikijs+vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.d.ts","../../../node_modules/.pnpm/@shikijs+types@4.1.0/node_modules/@shikijs/types/dist/index.d.mts","../src/_internal/code-transformers.ts","../src/index.ts"],"x_google_ignoreList":[8,9,10,11],"mappings":";;;;;;;;;;;;;;;;;AC+jCA;;;;;;;iBD7hCsB,iBAAA,CACpB,WAAA,cACC,OAAA,CAAQ,eAAA;;;;iBC2hCK,WAAA,CAAY,KAAA,EAAO,WAAA;;;;;;;;;;;;UCrjClB,8BAAA;EACf,IAAA;EACA,KAAA,EAAO,MAAA;EACP,QAAA;AAAA;AAAA,KAGU,yBAAA,IACV,OAAA,EAAS,8BAAA;AAAA,UAGM,4BAAA;EFgBN;;;;EEXT,YAAA,GAAe,MAAA,SAAe,yBAAA;;EAE9B,gBAAA;AAAA;AAAA,UAGQ,aAAA;EACR,IAAA;AAAA;;;;AArBF;;;;iBAiNgB,qBAAA,CACd,KAAA,EAAO,aAAA,EACP,OAAA,GAAS,4BAAA;;;;;;;KCnNC,sBAAA,IAA0B,GAAA;EACpC,IAAA,EAAM,WAAA;EACN,IAAA;AAAA,kCACgC,OAAA;AAAA,UAEjB,iBAAA;EACf,IAAA;IAAS,KAAA;IAAe,IAAA;EAAA;EACxB,YAAA,GAAe,sBAAA;AAAA;;;AHiBjB;AAAA,KIbY,WAAA,GACR,cAAA,IACC,cAAA,EAAgB,MAAA;;;;;;KAOT,WAAA,GAAc,OAAA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;AAAA,iBAsBmB,gBAAA,CACpB,YAAA,WACC,OAAA,CAAQ,aAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["Data","Point","line","column","offset","Position","start","end","Literal","Node","value","type","data","position","Parent","children","Data","UnistData","Literal","UnistLiteral","Node","UnistNode","Parent","UnistParent","Properties","Array","PropertyName","ElementContent","ElementContentMap","Comment","Element","Text","comment","element","text","RootContent","RootContentMap","Doctype","doctype","Content","Literals","Nodes","Extract","Root","Parents","data","value","children","CommentData","type","DoctypeData","ElementData","tagName","properties","content","RootData","TextData","ruleIdSymbol","RuleId","__brand","endRuleId","IRuleRegistry","T","Rule","getRule","ruleId","registerRule","id","factory","IGrammarRegistry","IRawRepository","IRawGrammar","getExternalGrammar","scopeName","repository","IRuleFactoryHelper","ILocation","IOnigCaptureIndex","RegExpSourceList","IOnigLib","RegExpString","CompiledRule","$location","_nameIsCapturing","_name","_contentNameIsCapturing","_contentName","constructor","name","contentName","dispose","debugName","getName","lineText","captureIndices","getContentName","collectPatterns","grammar","out","compile","endRegexSource","compileAG","allowA","allowG","RegExpSource","TRuleId","source","hasAnchor","hasBackReferences","_anchorCache","regExpSource","clone","setSource","newSource","resolveBackReferences","_buildAnchorCache","resolveAnchors","_items","_hasAnchors","_cached","_disposeCaches","push","item","unshift","length","index","onigLib","_resolveAnchors","OnigString","FindOption","OrMask","IFindNextMatchResult","regExps","rules","scanner","toString","findNextMatchSync","string","startPosition","options","ScopeName","IRawRule","ILocatable","patterns","injections","expression","injectionSelector","fileTypes","firstLineMatch","IncludeString","RegExp","IRawRepositoryMap","IRawCaptures","include","match","captures","begin","beginCaptures","end","endCaptures","while","whileCaptures","applyEndPatternLast","IRawCapturesMap","captureId","filename","line","char","$vscodeTextmateLocation","OnigScanner","createOnigScanner","sources","createOnigString","str","start","IOnigMatch","None","NotBeginString","NotEndString","NotBeginPosition","DebugCall","content","disposeOnigString","Theme","IRawTheme","ParsedThemeRule","ColorMap","StyleAttributes","ThemeTrieElement","ScopeStack","_colorMap","_defaults","_root","createFromRawTheme","colorMap","createFromParsedTheme","_cachedMatchRoot","getColorMap","getDefaults","scopePath","ScopePath","ScopePattern","IRawThemeSetting","settings","scope","fontStyle","foreground","background","parent","path","scopeNames","from","first","segments","getSegments","extends","other","getExtensionIfDefined","base","FontStyle","foregroundId","backgroundId","parentScopes","NotSet","Italic","Bold","Underline","Strikethrough","_isFrozen","_lastColorId","_id2color","_color2id","getId","color","ThemeTrieElementRule","scopeDepth","cloneArr","arr","acceptOverwrite","ITrieChildrenMap","segment","_mainRule","_children","_rulesWithParentScopes","rulesWithParentScopes","_cmpBySpecificity","insert","_doInsertHere","EncodedTokenAttributes","EncodedTokenMetadata","StandardTokenType","OptionalStandardTokenType","toBinaryStr","encodedTokenAttributes","print","getLanguageId","getTokenType","containsBalancedBrackets","getFontStyle","getForeground","getBackground","set","languageId","tokenType","Other","Comment","String","RegEx","Matcher","matcherInput","BasicScopeAttributes","IThemeProvider","themeMatch","IGrammarRepository","lookup","Injection","debugSelector","matcher","priority","Grammar","IEmbeddedLanguagesMap","ITokenTypeMap","BalancedBracketSelectors","StateStackImpl","ITokenizeLineResult","ITokenizeLineResult2","IGrammar","_rootScopeName","balancedBracketSelectors","_onigLib","_rootId","_lastRuleId","_ruleId2desc","_includedGrammars","_grammarRepository","_grammar","_injections","_basicScopeAttributesProvider","_tokenTypeMatchers","themeProvider","initialLanguage","embeddedLanguages","tokenTypes","grammarRepository","getMetadataForScope","_collectInjections","getInjections","tokenizeLine","prevState","timeLimit","tokenizeLine2","_tokenize","AttributedScopeStack","AttributedScopeStackFrame","tokenAttributes","fromExtension","namesScopeList","contentNameScopesList","createRoot","createRootAndLookUpScopeName","equals","a","b","mergeAttributes","pushAttributed","_pushAttributed","getScopeNames","StateStackFrame","StateStack","beginRuleCapturedEOL","endRule","nameScopesList","_stackElementBrand","NULL","_enterPos","_anchorPos","depth","enterPos","anchorPos","_equals","_structuralEquals","_reset","reset","pop","safePop","getEnterPos","getAnchorPos","_writeString","withContentNameScopesList","contentNameScopeStack","withEndRule","hasSameRuleAs","toStateStackFrame","pushFrame","self","frame","balancedBracketScopes","unbalancedBracketScopes","allowAny","matchesAlways","matchesNever","scopes","SyncRegistry","Map","_grammars","_rawGrammars","_injectionGrammars","_theme","theme","setTheme","addGrammar","injectionScopeNames","targetScope","grammarForScopeName","StackDiff","pops","newFrames","RegistryOptions","loadGrammar","selector","IGrammarConfiguration","unbalancedBracketSelectors","Registry","_options","_syncRegistry","_ensureGrammarCache","loadGrammarWithEmbeddedLanguages","initialScopeName","loadGrammarWithConfiguration","configuration","_loadGrammar","_loadSingleGrammar","_doLoadSingleGrammar","rawGrammar","_grammarForScopeName","IToken","tokens","ruleStack","stoppedEarly","Uint32Array","startIndex","endIndex","INITIAL","Element","Root","FontStyle","IGrammar","IRawGrammar","RawGrammar","IRawTheme","RawTheme","IRawThemeSetting","RawThemeSetting","OnigScanner","OnigString","StateStack","Awaitable","T","Promise","MaybeGetter","MaybeModule","default","MaybeArray","RequireKeys","K","Omit","Pick","Required","Nothing","StringLiteralUnion","U","PatternScanner","RegexEngineString","RegexEngine","RegExp","createScanner","patterns","createString","s","WebAssemblyInstantiator","WebAssembly","ImportValue","Record","WebAssemblyInstance","importObject","WebAssemblyInstantiatedSource","Instance","OnigurumaLoadOptions","ArrayBufferView","ArrayBuffer","Response","instantiator","data","LoadWasmOptionsPlain","LoadWasmOptions","Grammar","name","PlainTextLanguage","AnsiLanguage","SpecialLanguage","LanguageInput","LanguageRegistration","ResolveBundleKey","scopeName","displayName","aliases","embeddedLangs","embeddedLanguages","embeddedLangsLazy","balancedBracketSelectors","unbalancedBracketSelectors","foldingStopMarker","foldingStartMarker","injectTo","BundledLanguageInfo","DynamicImportLanguageRegistration","id","import","DecorationOptions","DecorationItem","decorations","OffsetOrPosition","DecorationTransformType","start","end","tagName","properties","transform","element","type","alwaysWrap","ResolvedDecorationItem","ResolvedPosition","Position","line","character","Offset","offset","SpecialTheme","ThemeInput","ThemeRegistrationAny","ThemeRegistrationRaw","ThemeRegistration","Partial","ThemeRegistrationResolved","settings","tokenColors","fg","bg","colorReplacements","colors","$schema","semanticHighlighting","semanticTokenColors","DynamicImportThemeRegistration","BundledThemeInfo","GrammarState","lang","theme","themes","getInternalStack","getScopes","CodeToTokensBaseOptions","Languages","Themes","TokenizeWithThemeOptions","CodeToTokensOptions","CodeOptionsThemes","CodeToTokensWithThemesOptions","ThemedTokenScopeExplanation","themeMatches","ThemedTokenExplanation","content","scopes","ThemedToken","TokenStyles","TokenBase","explanation","color","bgColor","fontStyle","htmlStyle","htmlAttrs","ThemedTokenWithVariants","variants","includeExplanation","tokenizeMaxLineLength","tokenizeTimeLimit","grammarState","grammarContextCode","TokensResult","tokens","themeName","rootStyle","TransformerOptions","ShikiTransformer","transformers","ShikiTransformerContextMeta","ShikiTransformerContextCommon","CodeToHastOptions","meta","options","codeToHast","code","codeToTokens","ShikiTransformerContextSource","source","ShikiTransformerContext","root","pre","lines","structure","addClassToHast","hast","className","enforce","preprocess","this","span","col","lineElement","token","postprocess","html","HighlighterCoreOptions","Sync","engine","langs","langAlias","warnings","BundledHighlighterOptions","L","CodeOptionsSingleTheme","CodeOptionsMultipleThemes","defaultColor","colorsRendering","cssVariablePrefix","CodeToHastOptionsCommon","CodeOptionsMeta","mergeWhitespaces","mergeSameStyleTokens","tabindex","__raw","key","CodeToHastRenderOptionsCommon","langId","CodeToHastRenderOptions","GrammarStateMapKey","ShikiPrimitive","BundledLangKeys","BundledThemeKeys","Symbol","dispose","loadTheme","loadThemeSync","loadLanguage","loadLanguageSync","getTheme","getLanguage","setTheme","colorMap","resolveLangAlias","getLoadedLanguages","getLoadedThemes","HighlighterGeneric","codeToHtml","codeToTokensBase","codeToTokensWithThemes","getLastGrammarState","getInternalContext","getBundledLanguages","getBundledThemes","HighlighterCore","CreateBundledHighlighterOptions","BundledLangs","BundledThemes","CreatedBundledHighlighterOptions","CreateHighlighterFactory","ShikiError","Error","constructor","message"],"sources":["../src/_internal/content.ts","../src/_internal/sidebar.ts","../src/_internal/transform.ts","../src/_internal/navigation.ts","../src/lint/config.ts","../src/_internal/incremental/partial-refs.ts","../src/_internal/incremental/sitemap.ts","../src/integration.ts","../../../node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts","../../../node_modules/.pnpm/@types+hast@3.0.4/node_modules/@types/hast/index.d.ts","../../../node_modules/.pnpm/@shikijs+vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.d.ts","../../../node_modules/.pnpm/@shikijs+types@4.1.0/node_modules/@shikijs/types/dist/index.d.mts","../src/_internal/code-transformers.ts","../src/index.ts"],"x_google_ignoreList":[8,9,10,11],"mappings":";;;;;;;;;;;;;;;;;ACmmCA;;;;;;;iBDjkCsB,iBAAA,CACpB,WAAA,cACC,OAAA,CAAQ,eAAA;;;;iBC+jCK,WAAA,CAAY,KAAA,EAAO,WAAA;;;;;;;;;;;;UCzlClB,8BAAA;EACf,IAAA;EACA,KAAA,EAAO,MAAA;EACP,QAAA;AAAA;AAAA,KAGU,yBAAA,IACV,OAAA,EAAS,8BAAA;AAAA,UAGM,4BAAA;EFgBN;;;;EEXT,YAAA,GAAe,MAAA,SAAe,yBAAA;;EAE9B,gBAAA;AAAA;AAAA,UAGQ,aAAA;EACR,IAAA;AAAA;;;;AArBF;;;;iBAiNgB,qBAAA,CACd,KAAA,EAAO,aAAA,EACP,OAAA,GAAS,4BAAA;;;;;;;KCnNC,sBAAA,IAA0B,GAAA;EACpC,IAAA,EAAM,WAAA;EACN,IAAA;AAAA,kCACgC,OAAA;AAAA,UAEjB,iBAAA;EACf,IAAA;IAAS,KAAA;IAAe,IAAA;EAAA;EACxB,YAAA,GAAe,sBAAA;AAAA;;;AHiBjB;AAAA,KIbY,WAAA,GACR,cAAA,IACC,cAAA,EAAgB,MAAA;;;;;;KAOT,WAAA,GAAc,OAAA,CAAQ,MAAA,CAAO,iBAAA,EAAmB,WAAA;;UAG3C,oBAAA;EACf,KAAA,GAAQ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AA"}
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ import sitemap from "@astrojs/sitemap";
12
12
  import fs$1, { cp, mkdir, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
13
13
  import { z } from "astro/zod";
14
14
  import { transformerNotationDiff, transformerNotationErrorLevel, transformerNotationFocus, transformerNotationHighlight, transformerNotationWordHighlight } from "@shikijs/transformers";
15
+ import { bundledLanguagesInfo, isSpecialLang } from "shiki";
15
16
  import { createHash } from "node:crypto";
16
17
 
17
18
  //#region src/_internal/runtime-config.ts
@@ -66,21 +67,31 @@ const PRIMARY_COLLECTION$2 = "docs";
66
67
  * `getCollection("api")` directly.
67
68
  */
68
69
  async function getVisibleEntries(collections = [PRIMARY_COLLECTION$2]) {
69
- const { getCollection } = await import("astro:content");
70
- const all = (await Promise.all(collections.map((name) => getCollection(name).catch(() => [])))).flat();
71
- return import.meta.env.PROD ? all.filter((entry) => !entry.data.draft) : all;
70
+ return (await Promise.all(collections.map(loadVisibleEntries))).flat();
72
71
  }
73
72
  /**
74
73
  * Return visible entries grouped by collection. Used by the sidebar
75
74
  * builder so `collection:` autogenerate can look up entries by name
76
75
  * without re-fetching.
77
76
  */
78
- async function getVisibleEntriesByCollection(collections) {
77
+ const visibleEntriesByName = /* @__PURE__ */ new Map();
78
+ /** Drop the visible-entry cache (dev content-change invalidation). */
79
+ function clearContentCaches() {
80
+ visibleEntriesByName.clear();
81
+ }
82
+ async function loadVisibleEntries(name) {
83
+ const cached = visibleEntriesByName.get(name);
84
+ if (cached) return cached;
79
85
  const { getCollection } = await import("astro:content");
86
+ const all = await getCollection(name).catch(() => []);
87
+ const visible = import.meta.env.PROD ? all.filter((entry) => !entry.data.draft) : all;
88
+ visibleEntriesByName.set(name, visible);
89
+ return visible;
90
+ }
91
+ async function getVisibleEntriesByCollection(collections) {
80
92
  const out = {};
81
93
  await Promise.all(collections.map(async (name) => {
82
- const all = await getCollection(name).catch(() => []);
83
- out[name] = import.meta.env.PROD ? all.filter((entry) => !entry.data.draft) : all;
94
+ out[name] = await loadVisibleEntries(name);
84
95
  }));
85
96
  return out;
86
97
  }
@@ -217,6 +228,7 @@ function createLink(entry, currentPath, hrefPrefix = "") {
217
228
  label,
218
229
  href: toBrowserHref(externalLink),
219
230
  isCurrent: false,
231
+ _neverActive: true,
220
232
  badge,
221
233
  order
222
234
  };
@@ -308,12 +320,16 @@ function buildFilesystemTree(entries, currentPath, directory, hrefPrefix = "") {
308
320
  let indexHref;
309
321
  let indexIsCurrent = false;
310
322
  let indexIsExternal = false;
323
+ let indexNeverActive = false;
311
324
  if (indexEntry) {
312
325
  const externalLink = indexEntry.data.external_link;
313
326
  if (externalLink !== void 0) if (isAbsoluteUrl(externalLink)) {
314
327
  indexHref = externalLink;
315
328
  indexIsExternal = true;
316
- } else indexHref = toBrowserHref(externalLink);
329
+ } else {
330
+ indexHref = toBrowserHref(externalLink);
331
+ indexNeverActive = true;
332
+ }
317
333
  else {
318
334
  indexHref = joinHref(hrefPrefix, indexEntry.id);
319
335
  indexIsCurrent = toRouteKey(currentPath) === toRouteKey(indexHref);
@@ -328,7 +344,8 @@ function buildFilesystemTree(entries, currentPath, directory, hrefPrefix = "") {
328
344
  _indexId: indexEntry?.id,
329
345
  indexHref,
330
346
  indexIsCurrent: indexIsCurrent || void 0,
331
- indexIsExternal: indexIsExternal || void 0
347
+ indexIsExternal: indexIsExternal || void 0,
348
+ _indexNeverActive: indexNeverActive || void 0
332
349
  };
333
350
  sortKeyByItem.set(group, dirPath);
334
351
  return group;
@@ -537,6 +554,20 @@ function hasActivePage(item, currentPath) {
537
554
  return item.children.some((child) => hasActivePage(child, currentPath));
538
555
  }
539
556
  /**
557
+ * Stamp active-state (`isCurrent`/`indexIsCurrent`) for `currentPath` in
558
+ * place — the page-dependent half of the sidebar, run on a per-page clone of
559
+ * the cached structural tree. Flag rules mirror `createLink` / the group
560
+ * index; `_neverActive` links stay inactive.
561
+ */
562
+ function markActiveState(items, currentPath) {
563
+ const key = toRouteKey(currentPath);
564
+ for (const item of items) if (item.type === "link") item.isCurrent = item._neverActive ? false : toRouteKey(item.href) === key;
565
+ else if (item.type === "group") {
566
+ if (item.indexHref) item.indexIsCurrent = !item.indexIsExternal && !item._indexNeverActive && toRouteKey(item.indexHref) === key || void 0;
567
+ markActiveState(item.children, currentPath);
568
+ }
569
+ }
570
+ /**
540
571
  * Derive one section per top-level group in the sidebar tree, scoped
541
572
  * to *cross-collection* navigation. Used by `Header.astro` to render
542
573
  * the section tab strip.
@@ -665,6 +696,7 @@ function processHideChildren(items, entries) {
665
696
  label: item.label,
666
697
  href: item.indexHref,
667
698
  isCurrent: item.indexIsCurrent === true,
699
+ _neverActive: item._indexNeverActive,
668
700
  badge: item.badge,
669
701
  order: item.order
670
702
  };
@@ -1446,16 +1478,23 @@ function walkFolder(dir, root, visit) {
1446
1478
  */
1447
1479
  function findDuplicateRoutes(owners) {
1448
1480
  const byUrl = /* @__PURE__ */ new Map();
1449
- for (const { url, source } of owners) {
1450
- const bucket = byUrl.get(url);
1451
- if (bucket) bucket.push(source);
1452
- else byUrl.set(url, [source]);
1481
+ for (const owner of owners) {
1482
+ const bucket = byUrl.get(owner.url);
1483
+ if (bucket) bucket.push(owner);
1484
+ else byUrl.set(owner.url, [owner]);
1453
1485
  }
1454
1486
  const dups = [];
1455
- for (const [url, sources] of byUrl) if (sources.length > 1) dups.push({
1456
- url,
1457
- sources
1458
- });
1487
+ for (const [url, group] of byUrl) {
1488
+ if (group.length <= 1) continue;
1489
+ const pages = group.filter((o) => o.kind === "page").length;
1490
+ const contents = group.length - pages;
1491
+ const shadowedByPage = pages === 1 && contents === 1;
1492
+ dups.push({
1493
+ url,
1494
+ sources: group.map((o) => o.source),
1495
+ shadowedByPage
1496
+ });
1497
+ }
1459
1498
  return dups;
1460
1499
  }
1461
1500
  /** Format duplicate groups into a build-error message. */
@@ -1463,6 +1502,12 @@ function formatDuplicateRoutes(dups) {
1463
1502
  const lines = dups.map((d) => ` ${d.url} ← ${d.sources.join(", ")}`);
1464
1503
  return `[nimbus-docs] Duplicate ${dups.length === 1 ? "route is" : "routes are"} claimed by more than one source (nimbus/duplicate-slug):\n` + lines.join("\n") + "\n\nTwo or more sources resolve to the same URL — one would shadow the other on the deployed site (Astro silently dedupes colliding routes). Rename or move one source in each pair.";
1465
1504
  }
1505
+ /** Format page-shadows-content groups into a (non-fatal) warning message. */
1506
+ function formatShadowedRoutes(dups) {
1507
+ const lines = dups.map((d) => ` ${d.url} ← ${d.sources.join(", ")}`);
1508
+ const noun = dups.length === 1 ? "route is" : "routes are";
1509
+ return `[nimbus-docs] (nimbus/duplicate-slug, warning) ${dups.length} ${noun} served by an explicit src/pages file that shadows a content entry at the same URL:\n` + lines.join("\n") + `\n\nAstro serves the page and drops the content route (deterministic). Intended when a content page wraps a custom page component; verify each shadow is intentional.`;
1510
+ }
1466
1511
  const PAGE_EXTS = new Set([
1467
1512
  ".astro",
1468
1513
  ".ts",
@@ -2436,7 +2481,8 @@ function virtualConfigPlugin(config, extras) {
2436
2481
  * file using it would render without highlighting. Eager loading also
2437
2482
  * keeps highlighting independent of which file is processed first.
2438
2483
  */
2439
- const FENCE_RE = /^[ \t]*```([a-zA-Z][a-zA-Z0-9_+\-]*)/gm;
2484
+ const FENCE_RE = /^[ \t]*```([a-zA-Z][a-zA-Z0-9_+\-]*)[^\n`]*$/gm;
2485
+ const SHIKI_KNOWN = new Set(bundledLanguagesInfo.flatMap((l) => [l.id, ...l.aliases ?? []]));
2440
2486
  async function* walkMdx(dir) {
2441
2487
  let entries;
2442
2488
  try {
@@ -2472,7 +2518,7 @@ async function scanCodeBlockLanguages(projectRoot, langAlias = {}) {
2472
2518
  for (const m of content.matchAll(FENCE_RE)) {
2473
2519
  const raw = m[1].toLowerCase();
2474
2520
  const mapped = langAlias[raw] ?? raw;
2475
- langs.add(mapped);
2521
+ if (SHIKI_KNOWN.has(mapped) || isSpecialLang(mapped)) langs.add(mapped);
2476
2522
  }
2477
2523
  }
2478
2524
  return Array.from(langs).sort();
@@ -4132,11 +4178,18 @@ function nimbus(rawConfig, options = {}) {
4132
4178
  } else for (const key of indexedCollections) indexedBases.set(key, key);
4133
4179
  const contentOwners = enumerateEntriesByBase(path.join(projectRoot, "src/content"), indexedBases).map((entry) => ({
4134
4180
  url: contentEntryUrl(entry, versionInfo),
4135
- source: `src/content/${entry.relPath}`
4181
+ source: `src/content/${entry.relPath}`,
4182
+ kind: "content"
4183
+ }));
4184
+ const pageOwners = enumerateStaticPageRoutes(path.join(srcDir, "pages"), projectRoot).map((route) => ({
4185
+ ...route,
4186
+ kind: "page"
4136
4187
  }));
4137
- const pageOwners = enumerateStaticPageRoutes(path.join(srcDir, "pages"), projectRoot);
4138
4188
  const duplicateRoutes = findDuplicateRoutes([...contentOwners, ...pageOwners]);
4139
- if (duplicateRoutes.length > 0) throw new Error(formatDuplicateRoutes(duplicateRoutes));
4189
+ const shadowed = duplicateRoutes.filter((d) => d.shadowedByPage);
4190
+ const collisions = duplicateRoutes.filter((d) => !d.shadowedByPage);
4191
+ if (shadowed.length > 0) logger.warn(formatShadowedRoutes(shadowed));
4192
+ if (collisions.length > 0) throw new Error(formatDuplicateRoutes(collisions));
4140
4193
  if (config.versions && rawCollections !== null) {
4141
4194
  const registered = new Set(rawCollections);
4142
4195
  const missing = config.versions.others.filter((slug) => !registered.has(`docs-${slug}`));
@@ -4228,6 +4281,17 @@ function nimbus(rawConfig, options = {}) {
4228
4281
  ].join("\n")
4229
4282
  });
4230
4283
  },
4284
+ "astro:server:setup": ({ server }) => {
4285
+ const isContentFile = (file) => /[\\/]src[\\/]content[\\/].*\.(?:mdx?|ya?ml|json)$/.test(file);
4286
+ const invalidate = async (file) => {
4287
+ if (!isContentFile(file)) return;
4288
+ const { clearNavCaches } = await import("./index.js");
4289
+ clearNavCaches();
4290
+ };
4291
+ server.watcher.on("add", invalidate);
4292
+ server.watcher.on("change", invalidate);
4293
+ server.watcher.on("unlink", invalidate);
4294
+ },
4231
4295
  "astro:build:start": async ({ setPrerenderer, logger }) => {
4232
4296
  if (!options.incrementalBuilds) return;
4233
4297
  if (!projectRootForBuild) {
@@ -4400,7 +4464,9 @@ function defineConfig(config) {
4400
4464
  * the collection: hand-rolled `defineCollection({ loader, schema })`
4401
4465
  * collections work without modification.
4402
4466
  */
4467
+ let indexedEntriesCache;
4403
4468
  async function getIndexedEntries() {
4469
+ if (indexedEntriesCache) return indexedEntriesCache;
4404
4470
  const { getCollection } = await import("astro:content");
4405
4471
  const collectionNames = await loadIndexedCollections();
4406
4472
  const names = collectionNames.length > 0 ? collectionNames : [PRIMARY_COLLECTION$1];
@@ -4432,6 +4498,7 @@ async function getIndexedEntries() {
4432
4498
  });
4433
4499
  }
4434
4500
  }
4501
+ indexedEntriesCache = indexed;
4435
4502
  return indexed;
4436
4503
  }
4437
4504
  /**
@@ -4521,7 +4588,7 @@ async function getIndexedTopLevel() {
4521
4588
  */
4522
4589
  async function getSidebar(currentSlug, options) {
4523
4590
  const config = await loadNimbusConfig();
4524
- const fullTree = await buildFullSidebarTree(currentSlug, options?.collection);
4591
+ const fullTree = await buildActiveTree(currentSlug, options?.collection);
4525
4592
  let tree = config.sidebar?.scope === "section" ? scopeToCurrentSection(fullTree, currentSlug) : fullTree;
4526
4593
  const boundaries = config.sidebar?.isolate?.boundaries;
4527
4594
  if (boundaries && boundaries.length > 0) tree = isolateToBoundary(tree, currentSlug, boundaries);
@@ -4547,21 +4614,34 @@ async function getSidebar(currentSlug, options) {
4547
4614
  * see version-scoped section tabs.
4548
4615
  */
4549
4616
  async function getSidebarSections(currentSlug, options) {
4550
- return deriveSidebarSections(await buildFullSidebarTree(currentSlug, options?.collection));
4617
+ return deriveSidebarSections(await buildActiveTree(currentSlug, options?.collection));
4618
+ }
4619
+ const NO_ACTIVE_PATH = "\0__nimbus_structural__";
4620
+ const structuralTreeCache = /* @__PURE__ */ new Map();
4621
+ /** Drop all nav caches (dev content-change invalidation). */
4622
+ function clearNavCaches() {
4623
+ structuralTreeCache.clear();
4624
+ indexedEntriesCache = void 0;
4625
+ clearContentCaches();
4626
+ }
4627
+ function deepFreeze(items) {
4628
+ for (const item of items) {
4629
+ if (item.type === "group") deepFreeze(item.children);
4630
+ Object.freeze(item);
4631
+ }
4632
+ Object.freeze(items);
4551
4633
  }
4552
4634
  /**
4553
- * Internal: build the un-scoped sidebar tree. Shared by `getSidebar` and
4554
- * `getSidebarSections`.
4635
+ * Build the un-scoped, un-marked sidebar tree, cached per effective-primary
4636
+ * collection. Callers needing active-state clone it and run `markActiveState`
4637
+ * (never mutate the cache).
4555
4638
  *
4556
- * When `pageCollection` names a registered version collection
4557
- * (`docs-<v>` with `<v>` in `versions.others`), the sidebar treats that
4558
- * collection as the primary for this build: autogen items referencing
4559
- * `docs` are rewritten to reference the version collection, and the
4560
- * `primary` argument to `buildSidebarTree` is set accordingly. The net
4561
- * effect: version pages get the right sidebar tree and the right
4562
- * prev/next ordering.
4639
+ * When `pageCollection` is a registered version collection (`docs-<v>`), that
4640
+ * collection becomes the primary: autogen items referencing `docs` are
4641
+ * rewritten to it and `primaryPrefix` is set, so version pages get the right
4642
+ * tree and prev/next ordering.
4563
4643
  */
4564
- async function buildFullSidebarTree(currentSlug, pageCollection) {
4644
+ async function buildStructuralTree(pageCollection) {
4565
4645
  const runtimeConfig = await loadNimbusConfig();
4566
4646
  const versions = await getVersions();
4567
4647
  let effectivePrimary = PRIMARY_COLLECTION$1;
@@ -4570,17 +4650,31 @@ async function buildFullSidebarTree(currentSlug, pageCollection) {
4570
4650
  effectivePrimary = pageCollection;
4571
4651
  primaryPrefix = collectionMountPrefix(pageCollection, versions);
4572
4652
  }
4653
+ const cached = structuralTreeCache.get(effectivePrimary);
4654
+ if (cached) return cached;
4573
4655
  const rewrittenItems = effectivePrimary !== PRIMARY_COLLECTION$1 ? rewriteSidebarItemsForVersion(runtimeConfig.sidebar?.items, effectivePrimary) : runtimeConfig.sidebar?.items;
4574
4656
  const referenced = collectSidebarCollectionRefs(rewrittenItems);
4575
- return buildSidebarTree(await getVisibleEntriesByCollection([effectivePrimary, ...referenced.filter((c) => c !== effectivePrimary)]), effectivePrimary, currentSlug, runtimeConfig.sidebar ? {
4657
+ const tree = buildSidebarTree(await getVisibleEntriesByCollection([effectivePrimary, ...referenced.filter((c) => c !== effectivePrimary)]), effectivePrimary, NO_ACTIVE_PATH, runtimeConfig.sidebar ? {
4576
4658
  ...runtimeConfig.sidebar,
4577
4659
  items: rewrittenItems
4578
4660
  } : void 0, primaryPrefix);
4661
+ deepFreeze(tree);
4662
+ structuralTreeCache.set(effectivePrimary, tree);
4663
+ return tree;
4664
+ }
4665
+ /**
4666
+ * Clone the cached structural tree and stamp this page's active-state on the
4667
+ * clone, keeping the shared cache immutable (safe under concurrent prerender).
4668
+ */
4669
+ async function buildActiveTree(currentSlug, pageCollection) {
4670
+ const tree = structuredClone(await buildStructuralTree(pageCollection));
4671
+ markActiveState(tree, currentSlug);
4672
+ return tree;
4579
4673
  }
4580
4674
  /**
4581
4675
  * Substitute the primary collection (`docs`) for `effectivePrimary`
4582
4676
  * inside any sidebar item that autogenerates from a named collection.
4583
- * Used by `buildFullSidebarTree` to make version pages render their
4677
+ * Used by `buildStructuralTree` to make version pages render their
4584
4678
  * own collection's sidebar instead of the current version's.
4585
4679
  */
4586
4680
  function rewriteSidebarItemsForVersion(items, effectivePrimary) {
@@ -4638,7 +4732,7 @@ async function getPrevNext(currentSlug, options) {
4638
4732
  * tree, so a stray page still gets a root-anchored trail.
4639
4733
  */
4640
4734
  async function getBreadcrumbs(currentSlug, options) {
4641
- const path = findActivePath(await buildFullSidebarTree(currentSlug, options?.collection), currentSlug);
4735
+ const path = findActivePath(await buildStructuralTree(options?.collection), currentSlug);
4642
4736
  if (path.length > 0) return assembleBreadcrumbs(options?.root ?? {
4643
4737
  label: "Home",
4644
4738
  href: "/"
@@ -5043,5 +5137,5 @@ async function getVersionStatus(collectionId) {
5043
5137
  }
5044
5138
 
5045
5139
  //#endregion
5046
- export { nimbus as default, defaultCodeTransformers, defineConfig, getBreadcrumbs, getCanonicalUrl, getCollectionLlmsUrl, getCollectionPageProps, getCollectionStaticPaths, getCurrentVersion, getDocsPageProps, getDocsStaticPaths, getEditUrl, getIndexedEntries, getIndexedTopLevel, getLastUpdated, getPrevNext, getRouteNavigation, getSectionTitle, getSidebar, getSidebarSections, getTOC, getVersionAlternates, getVersionLandingUrl, getVersionStatus, getVersions, getVisibleEntries, renderEntryAsMarkdown, sidebarHash };
5140
+ export { clearNavCaches, nimbus as default, defaultCodeTransformers, defineConfig, getBreadcrumbs, getCanonicalUrl, getCollectionLlmsUrl, getCollectionPageProps, getCollectionStaticPaths, getCurrentVersion, getDocsPageProps, getDocsStaticPaths, getEditUrl, getIndexedEntries, getIndexedTopLevel, getLastUpdated, getPrevNext, getRouteNavigation, getSectionTitle, getSidebar, getSidebarSections, getTOC, getVersionAlternates, getVersionLandingUrl, getVersionStatus, getVersions, getVisibleEntries, renderEntryAsMarkdown, sidebarHash };
5047
5141
  //# sourceMappingURL=index.js.map