@heroiclands/package-build 4.0.0 → 6.0.0

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.
@@ -54,11 +54,15 @@ export function rewriteRepoLinks(body: string, docRel: string, options: object):
54
54
  * Both run inside code-fence protection, so neither can rewrite a fenced example.
55
55
  *
56
56
  * @param {object} options - Resolved from `site.passOptions`.
57
- * @param {string} [options.symbolMap] - Path to the TypeDoc symbol map.
57
+ * @param {string} [options.symbolMap] - Path to the TypeDoc symbol map,
58
+ * relative to `repoRoot`. Absent means no API links; present and unusable is
59
+ * a build failure.
58
60
  * @param {string} [options.apiBase] - Where the API documentation is served.
59
61
  * @param {string} [options.blob] - GitHub blob base for repository files.
60
62
  * @param {string} options.repoRoot - The repository root, for relative paths.
61
63
  * @returns {{beforeLinks: Function, afterLinks: Function}} The bundle.
64
+ * @throws {Error} When a configured `symbolMap` cannot be resolved, read,
65
+ * parsed, or is not a name → page object.
62
66
  */
63
67
  export function sohlKbPass(options: {
64
68
  symbolMap?: string | undefined;
@@ -2,6 +2,12 @@
2
2
  * Every content type this package compiles, and what a note of that type may
3
3
  * write.
4
4
  *
5
+ * The engine's own types are merged in first, so a SoHL tree is checked against
6
+ * one vocabulary rather than two. They are declared there rather than here
7
+ * because they are note-format knowledge — a `homepage` carries no `system`
8
+ * block and would mean the same thing for a game system that is not SoHL — and
9
+ * because a package declaring no `itemBuilders` never reaches this file (#51).
10
+ *
5
11
  * @type {Readonly<Record<string, readonly import("../engine/field-spec.mjs").FieldSpec[]>>}
6
12
  */
7
13
  export const NOTE_SCHEMAS: Readonly<Record<string, readonly import("../engine/field-spec.mjs").FieldSpec[]>>;