embedoc 0.14.15 → 0.14.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.
Files changed (44) hide show
  1. package/README.md +24 -4
  2. package/cli-contract.yaml +1 -1
  3. package/dist/core/generator.d.ts.map +1 -1
  4. package/dist/core/generator.js +19 -3
  5. package/dist/core/generator.js.map +1 -1
  6. package/dist/core/inline-datasource.d.ts +3 -1
  7. package/dist/core/inline-datasource.d.ts.map +1 -1
  8. package/dist/core/inline-datasource.js +18 -5
  9. package/dist/core/inline-datasource.js.map +1 -1
  10. package/dist/core/parser.d.ts +2 -1
  11. package/dist/core/parser.d.ts.map +1 -1
  12. package/dist/core/parser.js +6 -3
  13. package/dist/core/parser.js.map +1 -1
  14. package/dist/core/processor.d.ts.map +1 -1
  15. package/dist/core/processor.js +12 -7
  16. package/dist/core/processor.js.map +1 -1
  17. package/dist/datasources/glob.js +2 -2
  18. package/dist/datasources/glob.js.map +1 -1
  19. package/dist/datasources/index.js +1 -1
  20. package/dist/datasources/index.js.map +1 -1
  21. package/dist/datasources/sqlite.d.ts.map +1 -1
  22. package/dist/datasources/sqlite.js +16 -1
  23. package/dist/datasources/sqlite.js.map +1 -1
  24. package/dist/datasources/typescript.js +1 -1
  25. package/dist/datasources/typescript.js.map +1 -1
  26. package/dist/embedoc.bundle.mjs +116 -115
  27. package/dist/embedoc.bundle.mjs.map +4 -4
  28. package/dist/generated/contract.js +2 -2
  29. package/dist/helpers/api-markdown.d.ts.map +1 -1
  30. package/dist/helpers/api-markdown.js +5 -3
  31. package/dist/helpers/api-markdown.js.map +1 -1
  32. package/dist/helpers/markdown.d.ts +5 -0
  33. package/dist/helpers/markdown.d.ts.map +1 -1
  34. package/dist/helpers/markdown.js +10 -1
  35. package/dist/helpers/markdown.js.map +1 -1
  36. package/dist/types/index.d.ts +4 -1
  37. package/dist/types/index.d.ts.map +1 -1
  38. package/dist/utils/glob.d.ts +15 -0
  39. package/dist/utils/glob.d.ts.map +1 -0
  40. package/dist/utils/glob.js +338 -0
  41. package/dist/utils/glob.js.map +1 -0
  42. package/docs/api/README.md +131 -131
  43. package/docs/cli-reference.md +1 -1
  44. package/package.json +11 -7
@@ -9,7 +9,7 @@ Everything below is generated from [`src/embed-api.ts`](../../src/embed-api.ts)
9
9
 
10
10
  ### InlineDatasource
11
11
 
12
- Defined in: [core/inline-datasource.ts:333](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L333)
12
+ Defined in: [core/inline-datasource.ts:345](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L345)
13
13
 
14
14
  Datasource for document-local data defined with `@embedoc-data` markers.
15
15
 
@@ -24,12 +24,12 @@ and can read where each property was defined with [`InlineDatasource.getMeta`](#
24
24
 
25
25
  | Property | Type | Description | Defined in |
26
26
  | ------ | ------ | ------ | ------ |
27
- | <a id="type"></a> `type` (readonly) | `"inline"` | | [core/inline-datasource.ts:334](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L334) |
28
- | <a id="format"></a> `format` (readonly) | `string` | | [core/inline-datasource.ts:335](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L335) |
29
- | <a id="documentpath"></a> `documentPath` (readonly) | `string` | | [core/inline-datasource.ts:336](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L336) |
30
- | <a id="startline"></a> `startLine` (readonly) | `number` | | [core/inline-datasource.ts:337](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L337) |
31
- | <a id="endline"></a> `endLine` (readonly) | `number` | | [core/inline-datasource.ts:338](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L338) |
32
- | <a id="bytesize"></a> `byteSize` (readonly) | `number` | | [core/inline-datasource.ts:339](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L339) |
27
+ | <a id="type"></a> `type` (readonly) | `"inline"` | | [core/inline-datasource.ts:346](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L346) |
28
+ | <a id="format"></a> `format` (readonly) | `string` | | [core/inline-datasource.ts:347](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L347) |
29
+ | <a id="documentpath"></a> `documentPath` (readonly) | `string` | | [core/inline-datasource.ts:348](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L348) |
30
+ | <a id="startline"></a> `startLine` (readonly) | `number` | | [core/inline-datasource.ts:349](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L349) |
31
+ | <a id="endline"></a> `endLine` (readonly) | `number` | | [core/inline-datasource.ts:350](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L350) |
32
+ | <a id="bytesize"></a> `byteSize` (readonly) | `number` | | [core/inline-datasource.ts:351](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L351) |
33
33
 
34
34
  #### Methods
35
35
 
@@ -39,7 +39,7 @@ and can read where each property was defined with [`InlineDatasource.getMeta`](#
39
39
  query(_sql: string, _params?: unknown[]): Promise<QueryResult>;
40
40
  ```
41
41
 
42
- Defined in: [core/inline-datasource.ts:380](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L380)
42
+ Defined in: [core/inline-datasource.ts:392](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L392)
43
43
 
44
44
  Query is not fully supported for inline datasources
45
45
  Returns all data or filters by simple conditions
@@ -63,7 +63,7 @@ Returns all data or filters by simple conditions
63
63
  getAll(): Promise<QueryResult>;
64
64
  ```
65
65
 
66
- Defined in: [core/inline-datasource.ts:392](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L392)
66
+ Defined in: [core/inline-datasource.ts:404](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L404)
67
67
 
68
68
  Get all data - returns array for Datasource interface compatibility
69
69
 
@@ -79,7 +79,7 @@ Get all data - returns array for Datasource interface compatibility
79
79
  getRawData(): unknown;
80
80
  ```
81
81
 
82
- Defined in: [core/inline-datasource.ts:403](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L403)
82
+ Defined in: [core/inline-datasource.ts:415](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L415)
83
83
 
84
84
  Get raw data (object or array)
85
85
 
@@ -95,7 +95,7 @@ Get raw data (object or array)
95
95
  get(dotPath: string): Promise<unknown>;
96
96
  ```
97
97
 
98
- Defined in: [core/inline-datasource.ts:410](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L410)
98
+ Defined in: [core/inline-datasource.ts:422](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L422)
99
99
 
100
100
  Get value at dot-path
101
101
 
@@ -117,7 +117,7 @@ Get value at dot-path
117
117
  isObjectType(): boolean;
118
118
  ```
119
119
 
120
- Defined in: [core/inline-datasource.ts:417](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L417)
120
+ Defined in: [core/inline-datasource.ts:429](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L429)
121
121
 
122
122
  Check if datasource is object type (vs array)
123
123
 
@@ -133,7 +133,7 @@ Check if datasource is object type (vs array)
133
133
  close(): Promise<void>;
134
134
  ```
135
135
 
136
- Defined in: [core/inline-datasource.ts:424](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L424)
136
+ Defined in: [core/inline-datasource.ts:436](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L436)
137
137
 
138
138
  Close (no-op for inline)
139
139
 
@@ -149,7 +149,7 @@ Close (no-op for inline)
149
149
  getMeta(propertyPath?: string, targetDocPath?: string): InlineDefinitionLocation | null;
150
150
  ```
151
151
 
152
- Defined in: [core/inline-datasource.ts:445](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L445)
152
+ Defined in: [core/inline-datasource.ts:457](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L457)
153
153
 
154
154
  Get location metadata for a specific property definition
155
155
 
@@ -174,7 +174,7 @@ Location metadata or null if not found
174
174
  getAllMeta(targetDocPath?: string): InlineDefinitionLocation[];
175
175
  ```
176
176
 
177
- Defined in: [core/inline-datasource.ts:457](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L457)
177
+ Defined in: [core/inline-datasource.ts:469](https://github.com/foo-ogawa/embedoc/blob/main/src/core/inline-datasource.ts#L469)
178
178
 
179
179
  Get all definition locations with relative paths calculated
180
180
 
@@ -215,7 +215,7 @@ Location metadata for an inline definition
215
215
 
216
216
  ### ApiMarkdownOptions
217
217
 
218
- Defined in: [helpers/api-markdown.ts:22](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L22)
218
+ Defined in: [helpers/api-markdown.ts:23](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L23)
219
219
 
220
220
  Options for [`renderApiIndex`](#renderapiindex) and [`renderApiPage`](#renderapipage).
221
221
 
@@ -223,9 +223,9 @@ Options for [`renderApiIndex`](#renderapiindex) and [`renderApiPage`](#renderapi
223
223
 
224
224
  | Property | Type | Description | Defined in |
225
225
  | ------ | ------ | ------ | ------ |
226
- | <a id="categoryorder"></a> `categoryOrder?` | `string[]` | Order of category headings. `*` marks where the categories that are not listed go (alphabetically); without `*` they go last. Symbols without a `@category` tag are in the category `Other`. Category headings appear only in kind groups where at least one symbol has a category. | [helpers/api-markdown.ts:29](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L29) |
227
- | <a id="indexfile"></a> `indexFile?` | `string` | File name of the index page, for links from symbol pages (default: `README.md`). | [helpers/api-markdown.ts:31](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L31) |
228
- | <a id="headinglevel"></a> `headingLevel?` | `number` | Heading level of the kind groups on the index page (default: 2). | [helpers/api-markdown.ts:33](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L33) |
226
+ | <a id="categoryorder"></a> `categoryOrder?` | `string[]` | Order of category headings. `*` marks where the categories that are not listed go (alphabetically); without `*` they go last. Symbols without a `@category` tag are in the category `Other`. Category headings appear only in kind groups where at least one symbol has a category. | [helpers/api-markdown.ts:30](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L30) |
227
+ | <a id="indexfile"></a> `indexFile?` | `string` | File name of the index page, for links from symbol pages (default: `README.md`). | [helpers/api-markdown.ts:32](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L32) |
228
+ | <a id="headinglevel"></a> `headingLevel?` | `number` | Heading level of the kind groups on the index page (default: 2). | [helpers/api-markdown.ts:34](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L34) |
229
229
 
230
230
  ***
231
231
 
@@ -261,7 +261,7 @@ in their `create()` method.
261
261
 
262
262
  ### Datasource
263
263
 
264
- Defined in: [types/index.ts:217](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L217)
264
+ Defined in: [types/index.ts:220](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L220)
265
265
 
266
266
  Datasource interface for accessing external data.
267
267
 
@@ -301,7 +301,7 @@ const allData = await ds.getAll();
301
301
 
302
302
  | Property | Type | Description | Defined in |
303
303
  | ------ | ------ | ------ | ------ |
304
- | <a id="type"></a> `type` (readonly) | `string` | Datasource type identifier. One of: 'sqlite', 'csv', 'json', 'yaml', 'glob', 'typescript', 'inline' | [types/index.ts:222](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L222) |
304
+ | <a id="type"></a> `type` (readonly) | `string` | Datasource type identifier. One of: 'sqlite', 'csv', 'json', 'yaml', 'glob', 'typescript', 'inline' | [types/index.ts:225](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L225) |
305
305
 
306
306
  #### Methods
307
307
 
@@ -311,7 +311,7 @@ const allData = await ds.getAll();
311
311
  query(sql: string, params?: unknown[]): Promise<QueryResult>;
312
312
  ```
313
313
 
314
- Defined in: [types/index.ts:254](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L254)
314
+ Defined in: [types/index.ts:257](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L257)
315
315
 
316
316
  Execute a parameterized query on the datasource.
317
317
 
@@ -360,7 +360,7 @@ Promise resolving to an array of records
360
360
  getAll(): Promise<QueryResult>;
361
361
  ```
362
362
 
363
- Defined in: [types/index.ts:273](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L273)
363
+ Defined in: [types/index.ts:276](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L276)
364
364
 
365
365
  Get all data from the datasource.
366
366
 
@@ -387,7 +387,7 @@ Promise resolving to an array of all records
387
387
 
388
388
  ### CustomDatasourceDefinition
389
389
 
390
- Defined in: [types/index.ts:299](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L299)
390
+ Defined in: [types/index.ts:302](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L302)
391
391
 
392
392
  Definition for a custom datasource type.
393
393
 
@@ -407,7 +407,7 @@ return a [`Datasource`](#datasource) instance.
407
407
  create(config: DatasourceConfig): Promise<Datasource>;
408
408
  ```
409
409
 
410
- Defined in: [types/index.ts:300](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L300)
410
+ Defined in: [types/index.ts:303](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L303)
411
411
 
412
412
  ###### Parameters
413
413
 
@@ -423,7 +423,7 @@ Defined in: [types/index.ts:300](https://github.com/foo-ogawa/embedoc/blob/main/
423
423
 
424
424
  ### TypeScriptDatasourceConfig
425
425
 
426
- Defined in: [types/index.ts:329](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L329)
426
+ Defined in: [types/index.ts:332](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L332)
427
427
 
428
428
  Configuration of the built-in `typescript` datasource.
429
429
 
@@ -443,22 +443,22 @@ datasources.
443
443
 
444
444
  | Property | Type | Description | Defined in |
445
445
  | ------ | ------ | ------ | ------ |
446
- | <a id="type"></a> `type` | `'typescript'` | | [types/index.ts:330](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L330) |
447
- | <a id="entry_points"></a> `entry_points` | `string[]` | Entry point files whose exports form the public API. | [types/index.ts:332](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L332) |
448
- | <a id="tsconfig"></a> `tsconfig?` | `string` | tsconfig.json to compile with (default: the nearest one above the first entry point). | [types/index.ts:334](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L334) |
449
- | <a id="exclude_internal"></a> `exclude_internal?` | `boolean` | Leave out symbols and members tagged `@internal` (default: true). | [types/index.ts:336](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L336) |
450
- | <a id="exclude_private"></a> `exclude_private?` | `boolean` | Leave out `private` and `#private` class members (default: true). | [types/index.ts:338](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L338) |
451
- | <a id="exclude_externals"></a> `exclude_externals?` | `boolean` | Leave out symbols declared in external libraries such as node_modules (default: true). | [types/index.ts:340](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L340) |
452
- | <a id="source_link_template"></a> `source_link_template?` | `string` | Source link URL with the placeholders `{path}` (relative to the working directory), `{line}` and `{gitRevision}`. No link is produced without it. | [types/index.ts:345](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L345) |
453
- | <a id="git_revision"></a> `git_revision?` | `string` | Value of `{gitRevision}`. Required when the template uses `{gitRevision}`. | [types/index.ts:347](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L347) |
454
- | <a id="sort"></a> `sort?` | `'source-order' \| 'alphabetical'` | Record order: `source-order` (file path, then position) or `alphabetical` (default: source-order). | [types/index.ts:349](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L349) |
455
- | <a id="pages"></a> `pages?` | [`ApiSymbolKind`](#apisymbolkind)`[]` | Kinds whose symbols get a page of their own (`page` = `<kindDir>/<name>.md`, `hasPage` = true), e.g. `[class, interface, function]`. Default: none. The renderers and the generator read `page` / `hasPage`, so this list is the only place that decides which symbols have pages. | [types/index.ts:356](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L356) |
446
+ | <a id="type"></a> `type` | `'typescript'` | | [types/index.ts:333](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L333) |
447
+ | <a id="entry_points"></a> `entry_points` | `string[]` | Entry point files whose exports form the public API. | [types/index.ts:335](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L335) |
448
+ | <a id="tsconfig"></a> `tsconfig?` | `string` | tsconfig.json to compile with (default: the nearest one above the first entry point). | [types/index.ts:337](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L337) |
449
+ | <a id="exclude_internal"></a> `exclude_internal?` | `boolean` | Leave out symbols and members tagged `@internal` (default: true). | [types/index.ts:339](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L339) |
450
+ | <a id="exclude_private"></a> `exclude_private?` | `boolean` | Leave out `private` and `#private` class members (default: true). | [types/index.ts:341](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L341) |
451
+ | <a id="exclude_externals"></a> `exclude_externals?` | `boolean` | Leave out symbols declared in external libraries such as node_modules (default: true). | [types/index.ts:343](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L343) |
452
+ | <a id="source_link_template"></a> `source_link_template?` | `string` | Source link URL with the placeholders `{path}` (relative to the working directory), `{line}` and `{gitRevision}`. No link is produced without it. | [types/index.ts:348](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L348) |
453
+ | <a id="git_revision"></a> `git_revision?` | `string` | Value of `{gitRevision}`. Required when the template uses `{gitRevision}`. | [types/index.ts:350](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L350) |
454
+ | <a id="sort"></a> `sort?` | `'source-order' \| 'alphabetical'` | Record order: `source-order` (file path, then position) or `alphabetical` (default: source-order). | [types/index.ts:352](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L352) |
455
+ | <a id="pages"></a> `pages?` | [`ApiSymbolKind`](#apisymbolkind)`[]` | Kinds whose symbols get a page of their own (`page` = `<kindDir>/<name>.md`, `hasPage` = true), e.g. `[class, interface, function]`. Default: none. The renderers and the generator read `page` / `hasPage`, so this list is the only place that decides which symbols have pages. | [types/index.ts:359](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L359) |
456
456
 
457
457
  ***
458
458
 
459
459
  ### MarkdownHelper
460
460
 
461
- Defined in: [types/index.ts:540](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L540)
461
+ Defined in: [types/index.ts:543](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L543)
462
462
 
463
463
  Helper interface for generating Markdown content.
464
464
 
@@ -494,7 +494,7 @@ export default defineEmbed({
494
494
  table(headers: string[], rows: (string | number | boolean | null | undefined)[][]): string;
495
495
  ```
496
496
 
497
- Defined in: [types/index.ts:564](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L564)
497
+ Defined in: [types/index.ts:567](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L567)
498
498
 
499
499
  Generate a Markdown table.
500
500
 
@@ -536,7 +536,7 @@ Formatted Markdown table string
536
536
  list(items: string[], ordered?: boolean): string;
537
537
  ```
538
538
 
539
- Defined in: [types/index.ts:590](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L590)
539
+ Defined in: [types/index.ts:593](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L593)
540
540
 
541
541
  Generate a Markdown list.
542
542
 
@@ -579,7 +579,7 @@ Formatted Markdown list string
579
579
  codeBlock(code: string, language?: string): string;
580
580
  ```
581
581
 
582
- Defined in: [types/index.ts:608](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L608)
582
+ Defined in: [types/index.ts:611](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L611)
583
583
 
584
584
  Generate a fenced code block.
585
585
 
@@ -614,7 +614,7 @@ Formatted Markdown code block string
614
614
  link(text: string, url: string): string;
615
615
  ```
616
616
 
617
- Defined in: [types/index.ts:623](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L623)
617
+ Defined in: [types/index.ts:626](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L626)
618
618
 
619
619
  Generate a Markdown link.
620
620
 
@@ -646,7 +646,7 @@ Formatted Markdown link string
646
646
  heading(text: string, level?: number): string;
647
647
  ```
648
648
 
649
- Defined in: [types/index.ts:638](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L638)
649
+ Defined in: [types/index.ts:641](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L641)
650
650
 
651
651
  Generate a Markdown heading.
652
652
 
@@ -678,7 +678,7 @@ Formatted Markdown heading string
678
678
  bold(text: string): string;
679
679
  ```
680
680
 
681
- Defined in: [types/index.ts:652](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L652)
681
+ Defined in: [types/index.ts:655](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L655)
682
682
 
683
683
  Wrap text in bold formatting.
684
684
 
@@ -709,7 +709,7 @@ Bold formatted string
709
709
  italic(text: string): string;
710
710
  ```
711
711
 
712
- Defined in: [types/index.ts:666](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L666)
712
+ Defined in: [types/index.ts:669](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L669)
713
713
 
714
714
  Wrap text in italic formatting.
715
715
 
@@ -740,7 +740,7 @@ Italic formatted string
740
740
  checkbox(checked: boolean): string;
741
741
  ```
742
742
 
743
- Defined in: [types/index.ts:680](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L680)
743
+ Defined in: [types/index.ts:683](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L683)
744
744
 
745
745
  Generate a checkbox character.
746
746
 
@@ -767,7 +767,7 @@ Checkbox character ('✔' if checked, '' if not)
767
767
 
768
768
  ### EmbedContext
769
769
 
770
- Defined in: [types/index.ts:716](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L716)
770
+ Defined in: [types/index.ts:719](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L719)
771
771
 
772
772
  Context object passed to an embed's render function.
773
773
 
@@ -806,18 +806,18 @@ export default defineEmbed({
806
806
 
807
807
  | Property | Type | Description | Defined in |
808
808
  | ------ | ------ | ------ | ------ |
809
- | <a id="params"></a> `params` | `Record<string, string>` | Parameters from the marker attributes.<br><br>Parsed from the marker syntax: `<!--@embedoc:embed_name param1="value1" param2="value2"-->`<br><br>Variable references (`${...}`) are resolved before passing to the embed.<br><br>**Example** `// Marker: <!--@embedoc:table_columns id="users" schema="public"-->` `const { id, schema } = ctx.params;` `// id = "users", schema = "public"` | [types/index.ts:732](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L732) |
810
- | <a id="frontmatter"></a> `frontmatter` | `Record<string, unknown>` | Frontmatter data from the document.<br><br>Parsed from YAML frontmatter at the top of the document.<br><br>**Example** `// Document frontmatter:` `// ---` `// doc_id: "users"` `// schema: "public"` `// ---` `const docId = ctx.frontmatter['doc_id'] as string;` | [types/index.ts:750](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L750) |
811
- | <a id="datasources"></a> `datasources` | `Record<string,`[`Datasource`](#datasource)`>` | Map of configured datasources.<br><br>Keys are datasource names from `embedoc.config.yaml`. Includes both external datasources and inline datasources defined in the document.<br><br>**Example** `// Access SQLite datasource` `const db = ctx.datasources['metadata_db'];` `const rows = await db.query('SELECT * FROM users');` `// Access inline datasource` `const config = ctx.datasources['project_config'];` `const data = await config.getAll();` | [types/index.ts:770](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L770) |
812
- | <a id="markdown"></a> `markdown` | [`MarkdownHelper`](#markdownhelper) | Markdown generation helper.<br><br>Always available. Provides methods for creating tables, lists, code blocks, links, and other Markdown elements.<br><br>**See** [`MarkdownHelper`](#markdownhelper) | [types/index.ts:780](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L780) |
813
- | <a id="filepath"></a> `filePath` | `string` | Absolute path to the current file being processed.<br><br>Useful for generating relative links or file references.<br><br>**Example** `const dir = path.dirname(ctx.filePath);` `const relativePath = path.relative(dir, targetFile);` | [types/index.ts:793](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L793) |
814
- | <a id="existingcontent"></a> `existingContent?` | `string` | Existing content between the markers (before replacement).<br><br>Useful for error recovery - return `existingContent` when data sources are unavailable to preserve the previous state.<br><br>**Example** `try {` `const data = await fetchFromDatabase();` `return { content: formatData(data) };` `} catch (error) {` `console.warn('Database unavailable, keeping existing content');` `return { content: ctx.existingContent ?? null };` `}` | [types/index.ts:812](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L812) |
809
+ | <a id="params"></a> `params` | `Record<string, string>` | Parameters from the marker attributes.<br><br>Parsed from the marker syntax: `<!--@embedoc:embed_name param1="value1" param2="value2"-->`<br><br>Variable references (`${...}`) are resolved before passing to the embed.<br><br>**Example** `// Marker: <!--@embedoc:table_columns id="users" schema="public"-->` `const { id, schema } = ctx.params;` `// id = "users", schema = "public"` | [types/index.ts:735](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L735) |
810
+ | <a id="frontmatter"></a> `frontmatter` | `Record<string, unknown>` | Frontmatter data from the document.<br><br>Parsed from YAML frontmatter at the top of the document.<br><br>**Example** `// Document frontmatter:` `// ---` `// doc_id: "users"` `// schema: "public"` `// ---` `const docId = ctx.frontmatter['doc_id'] as string;` | [types/index.ts:753](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L753) |
811
+ | <a id="datasources"></a> `datasources` | `Record<string,`[`Datasource`](#datasource)`>` | Map of configured datasources.<br><br>Keys are datasource names from `embedoc.config.yaml`. Includes both external datasources and inline datasources defined in the document.<br><br>**Example** `// Access SQLite datasource` `const db = ctx.datasources['metadata_db'];` `const rows = await db.query('SELECT * FROM users');` `// Access inline datasource` `const config = ctx.datasources['project_config'];` `const data = await config.getAll();` | [types/index.ts:773](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L773) |
812
+ | <a id="markdown"></a> `markdown` | [`MarkdownHelper`](#markdownhelper) | Markdown generation helper.<br><br>Always available. Provides methods for creating tables, lists, code blocks, links, and other Markdown elements.<br><br>**See** [`MarkdownHelper`](#markdownhelper) | [types/index.ts:783](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L783) |
813
+ | <a id="filepath"></a> `filePath` | `string` | Absolute path to the current file being processed.<br><br>Useful for generating relative links or file references.<br><br>**Example** `const dir = path.dirname(ctx.filePath);` `const relativePath = path.relative(dir, targetFile);` | [types/index.ts:796](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L796) |
814
+ | <a id="existingcontent"></a> `existingContent?` | `string` | Existing content between the markers (before replacement).<br><br>Useful for error recovery - return `existingContent` when data sources are unavailable to preserve the previous state.<br><br>**Example** `try {` `const data = await fetchFromDatabase();` `return { content: formatData(data) };` `} catch (error) {` `console.warn('Database unavailable, keeping existing content');` `return { content: ctx.existingContent ?? null };` `}` | [types/index.ts:815](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L815) |
815
815
 
816
816
  ***
817
817
 
818
818
  ### EmbedResult
819
819
 
820
- Defined in: [types/index.ts:827](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L827)
820
+ Defined in: [types/index.ts:830](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L830)
821
821
 
822
822
  Result object returned from an embed's render function.
823
823
 
@@ -835,13 +835,13 @@ export default defineEmbed({
835
835
 
836
836
  | Property | Type | Description | Defined in |
837
837
  | ------ | ------ | ------ | ------ |
838
- | <a id="content"></a> `content` | `string \| null \| undefined` | Generated content to insert between the markers.<br><br>This string replaces the existing content between the start and end markers in the document.<br><br>Return `null` or `undefined` to keep the existing content (useful for error recovery when data sources are unavailable). | [types/index.ts:837](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L837) |
838
+ | <a id="content"></a> `content` | `string \| null \| undefined` | Generated content to insert between the markers.<br><br>This string replaces the existing content between the start and end markers in the document.<br><br>Return `null` or `undefined` to keep the existing content (useful for error recovery when data sources are unavailable). | [types/index.ts:840](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L840) |
839
839
 
840
840
  ***
841
841
 
842
842
  ### EmbedDefinition
843
843
 
844
- Defined in: [types/index.ts:869](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L869)
844
+ Defined in: [types/index.ts:872](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L872)
845
845
 
846
846
  Embed definition interface.
847
847
 
@@ -876,7 +876,7 @@ export default defineEmbed({
876
876
 
877
877
  | Property | Type | Description | Defined in |
878
878
  | ------ | ------ | ------ | ------ |
879
- | <a id="dependson"></a> `dependsOn?` | `string[]` | List of datasource names this embed depends on.<br><br>Used for dependency tracking in incremental builds. When a datasource changes, all documents using embeds that depend on it will be rebuilt.<br><br>**Example** `dependsOn: ['metadata_db', 'api_endpoints']` | [types/index.ts:882](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L882) |
879
+ | <a id="dependson"></a> `dependsOn?` | `string[]` | List of datasource names this embed depends on.<br><br>Used for dependency tracking in incremental builds. When a datasource changes, all documents using embeds that depend on it will be rebuilt.<br><br>**Example** `dependsOn: ['metadata_db', 'api_endpoints']` | [types/index.ts:885](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L885) |
880
880
 
881
881
  #### Methods
882
882
 
@@ -886,7 +886,7 @@ export default defineEmbed({
886
886
  render(ctx: EmbedContext): Promise<EmbedResult>;
887
887
  ```
888
888
 
889
- Defined in: [types/index.ts:893](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L893)
889
+ Defined in: [types/index.ts:896](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L896)
890
890
 
891
891
  Render function that generates the embed content.
892
892
 
@@ -913,7 +913,7 @@ Promise resolving to the embed result with generated content
913
913
  type QueryResult = Record<string, unknown>[];
914
914
  ```
915
915
 
916
- Defined in: [types/index.ts:181](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L181)
916
+ Defined in: [types/index.ts:184](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L184)
917
917
 
918
918
  Query result returned from datasource operations.
919
919
 
@@ -938,7 +938,7 @@ users.forEach(user => {
938
938
  type InlineFormatParser = (content: string) => unknown;
939
939
  ```
940
940
 
941
- Defined in: [types/index.ts:312](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L312)
941
+ Defined in: [types/index.ts:315](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L315)
942
942
 
943
943
  Parser function for a custom inline datasource format.
944
944
 
@@ -963,7 +963,7 @@ type ApiSymbolKind = | 'namespace'
963
963
  | 'reference';
964
964
  ```
965
965
 
966
- Defined in: [types/index.ts:360](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L360)
966
+ Defined in: [types/index.ts:363](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L363)
967
967
 
968
968
  Kind of an exported API symbol. A `reference` is a second exported name of a symbol.
969
969
 
@@ -981,7 +981,7 @@ type ApiMemberKind = | 'constructor'
981
981
  | 'enum-member';
982
982
  ```
983
983
 
984
- Defined in: [types/index.ts:371](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L371)
984
+ Defined in: [types/index.ts:374](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L374)
985
985
 
986
986
  Kind of a member of a class, interface, object type or enum.
987
987
 
@@ -1002,7 +1002,7 @@ type ApiSource = {
1002
1002
  };
1003
1003
  ```
1004
1004
 
1005
- Defined in: [types/index.ts:381](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L381)
1005
+ Defined in: [types/index.ts:384](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L384)
1006
1006
 
1007
1007
  Where a declaration is in the source.
1008
1008
 
@@ -1010,10 +1010,10 @@ Where a declaration is in the source.
1010
1010
 
1011
1011
  | Property | Type | Description | Defined in |
1012
1012
  | ------ | ------ | ------ | ------ |
1013
- | <a id="file"></a> `file` | `string` | Path relative to the common directory of the entry points (for display). | [types/index.ts:383](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L383) |
1014
- | <a id="path"></a> `path` | `string` | Path relative to the working directory (the `{path}` of the link template). | [types/index.ts:385](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L385) |
1015
- | <a id="line"></a> `line` | `number` | 1-based line of the declaration name. | [types/index.ts:387](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L387) |
1016
- | <a id="url"></a> `url` | `string \| null` | Link built from `source_link_template`, or null without a template. | [types/index.ts:389](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L389) |
1013
+ | <a id="file"></a> `file` | `string` | Path relative to the common directory of the entry points (for display). | [types/index.ts:386](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L386) |
1014
+ | <a id="path"></a> `path` | `string` | Path relative to the working directory (the `{path}` of the link template). | [types/index.ts:388](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L388) |
1015
+ | <a id="line"></a> `line` | `number` | 1-based line of the declaration name. | [types/index.ts:390](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L390) |
1016
+ | <a id="url"></a> `url` | `string \| null` | Link built from `source_link_template`, or null without a template. | [types/index.ts:392](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L392) |
1017
1017
 
1018
1018
  ***
1019
1019
 
@@ -1028,7 +1028,7 @@ type ApiTag = {
1028
1028
  };
1029
1029
  ```
1030
1030
 
1031
- Defined in: [types/index.ts:393](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L393)
1031
+ Defined in: [types/index.ts:396](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L396)
1032
1032
 
1033
1033
  A JSDoc block tag such as `@example`, `@deprecated` or `@see`.
1034
1034
 
@@ -1036,8 +1036,8 @@ A JSDoc block tag such as `@example`, `@deprecated` or `@see`.
1036
1036
 
1037
1037
  | Property | Type | Description | Defined in |
1038
1038
  | ------ | ------ | ------ | ------ |
1039
- | <a id="tag"></a> `tag` | `string` | Tag name without `@`. | [types/index.ts:395](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L395) |
1040
- | <a id="text"></a> `text` | `string` | Tag text. ``...`` inline tags are kept as written. | [types/index.ts:397](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L397) |
1039
+ | <a id="tag"></a> `tag` | `string` | Tag name without `@`. | [types/index.ts:398](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L398) |
1040
+ | <a id="text"></a> `text` | `string` | Tag text. ``...`` inline tags are kept as written. | [types/index.ts:400](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L400) |
1041
1041
 
1042
1042
  ***
1043
1043
 
@@ -1052,7 +1052,7 @@ type ApiTypeParameter = {
1052
1052
  };
1053
1053
  ```
1054
1054
 
1055
- Defined in: [types/index.ts:401](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L401)
1055
+ Defined in: [types/index.ts:404](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L404)
1056
1056
 
1057
1057
  A type parameter of a declaration or signature.
1058
1058
 
@@ -1060,10 +1060,10 @@ A type parameter of a declaration or signature.
1060
1060
 
1061
1061
  | Property | Type | Description | Defined in |
1062
1062
  | ------ | ------ | ------ | ------ |
1063
- | <a id="name"></a> `name` | `string` | | [types/index.ts:402](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L402) |
1064
- | <a id="constraint"></a> `constraint` | `string \| null` | | [types/index.ts:403](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L403) |
1065
- | <a id="default"></a> `default` | `string \| null` | | [types/index.ts:404](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L404) |
1066
- | <a id="description"></a> `description` | `string` | | [types/index.ts:405](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L405) |
1063
+ | <a id="name"></a> `name` | `string` | | [types/index.ts:405](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L405) |
1064
+ | <a id="constraint"></a> `constraint` | `string \| null` | | [types/index.ts:406](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L406) |
1065
+ | <a id="default"></a> `default` | `string \| null` | | [types/index.ts:407](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L407) |
1066
+ | <a id="description"></a> `description` | `string` | | [types/index.ts:408](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L408) |
1067
1067
 
1068
1068
  ***
1069
1069
 
@@ -1080,7 +1080,7 @@ type ApiParameter = {
1080
1080
  };
1081
1081
  ```
1082
1082
 
1083
- Defined in: [types/index.ts:409](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L409)
1083
+ Defined in: [types/index.ts:412](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L412)
1084
1084
 
1085
1085
  A parameter of a signature.
1086
1086
 
@@ -1088,12 +1088,12 @@ A parameter of a signature.
1088
1088
 
1089
1089
  | Property | Type | Description | Defined in |
1090
1090
  | ------ | ------ | ------ | ------ |
1091
- | <a id="name"></a> `name` | `string` | | [types/index.ts:410](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L410) |
1092
- | <a id="type"></a> `type` | `string` | | [types/index.ts:411](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L411) |
1093
- | <a id="optional"></a> `optional` | `boolean` | | [types/index.ts:412](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L412) |
1094
- | <a id="rest"></a> `rest` | `boolean` | | [types/index.ts:413](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L413) |
1095
- | <a id="defaultvalue"></a> `defaultValue` | `string \| null` | | [types/index.ts:414](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L414) |
1096
- | <a id="description"></a> `description` | `string` | | [types/index.ts:415](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L415) |
1091
+ | <a id="name"></a> `name` | `string` | | [types/index.ts:413](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L413) |
1092
+ | <a id="type"></a> `type` | `string` | | [types/index.ts:414](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L414) |
1093
+ | <a id="optional"></a> `optional` | `boolean` | | [types/index.ts:415](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L415) |
1094
+ | <a id="rest"></a> `rest` | `boolean` | | [types/index.ts:416](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L416) |
1095
+ | <a id="defaultvalue"></a> `defaultValue` | `string \| null` | | [types/index.ts:417](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L417) |
1096
+ | <a id="description"></a> `description` | `string` | | [types/index.ts:418](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L418) |
1097
1097
 
1098
1098
  ***
1099
1099
 
@@ -1113,7 +1113,7 @@ type ApiSignature = {
1113
1113
  };
1114
1114
  ```
1115
1115
 
1116
- Defined in: [types/index.ts:419](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L419)
1116
+ Defined in: [types/index.ts:422](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L422)
1117
1117
 
1118
1118
  A call, construct, method or accessor signature.
1119
1119
 
@@ -1121,13 +1121,13 @@ A call, construct, method or accessor signature.
1121
1121
 
1122
1122
  | Property | Type | Description | Defined in |
1123
1123
  | ------ | ------ | ------ | ------ |
1124
- | <a id="code"></a> `code` | `string` | Declaration as code, e.g. `function f(a: string): void;`. | [types/index.ts:421](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L421) |
1125
- | <a id="summary"></a> `summary` | `string` | | [types/index.ts:422](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L422) |
1126
- | <a id="tags"></a> `tags` | [`ApiTag`](#apitag)`[]` | | [types/index.ts:423](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L423) |
1127
- | <a id="typeparameters"></a> `typeParameters` | [`ApiTypeParameter`](#apitypeparameter)`[]` | | [types/index.ts:424](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L424) |
1128
- | <a id="parameters"></a> `parameters` | [`ApiParameter`](#apiparameter)`[]` | | [types/index.ts:425](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L425) |
1129
- | <a id="returns"></a> `returns` | `{ type: string; description: string } \| null` | Return type and `@returns` text; null for constructors and setters. | [types/index.ts:427](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L427) |
1130
- | <a id="source"></a> `source` | [`ApiSource`](#apisource) | | [types/index.ts:428](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L428) |
1124
+ | <a id="code"></a> `code` | `string` | Declaration as code, e.g. `function f(a: string): void;`. | [types/index.ts:424](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L424) |
1125
+ | <a id="summary"></a> `summary` | `string` | | [types/index.ts:425](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L425) |
1126
+ | <a id="tags"></a> `tags` | [`ApiTag`](#apitag)`[]` | | [types/index.ts:426](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L426) |
1127
+ | <a id="typeparameters"></a> `typeParameters` | [`ApiTypeParameter`](#apitypeparameter)`[]` | | [types/index.ts:427](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L427) |
1128
+ | <a id="parameters"></a> `parameters` | [`ApiParameter`](#apiparameter)`[]` | | [types/index.ts:428](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L428) |
1129
+ | <a id="returns"></a> `returns` | `{ type: string; description: string } \| null` | Return type and `@returns` text; null for constructors and setters. | [types/index.ts:430](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L430) |
1130
+ | <a id="source"></a> `source` | [`ApiSource`](#apisource) | | [types/index.ts:431](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L431) |
1131
1131
 
1132
1132
  ***
1133
1133
 
@@ -1152,7 +1152,7 @@ type ApiMember = {
1152
1152
  };
1153
1153
  ```
1154
1154
 
1155
- Defined in: [types/index.ts:432](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L432)
1155
+ Defined in: [types/index.ts:435](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L435)
1156
1156
 
1157
1157
  A member of a class, interface, object type alias or enum.
1158
1158
 
@@ -1160,18 +1160,18 @@ A member of a class, interface, object type alias or enum.
1160
1160
 
1161
1161
  | Property | Type | Description | Defined in |
1162
1162
  | ------ | ------ | ------ | ------ |
1163
- | <a id="name"></a> `name` | `string` | | [types/index.ts:433](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L433) |
1164
- | <a id="kind"></a> `kind` | [`ApiMemberKind`](#apimemberkind) | | [types/index.ts:434](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L434) |
1165
- | <a id="static"></a> `static` | `boolean` | | [types/index.ts:435](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L435) |
1166
- | <a id="readonly"></a> `readonly` | `boolean` | | [types/index.ts:436](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L436) |
1167
- | <a id="optional"></a> `optional` | `boolean` | | [types/index.ts:437](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L437) |
1168
- | <a id="protected"></a> `protected` | `boolean` | | [types/index.ts:438](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L438) |
1169
- | <a id="abstract"></a> `abstract` | `boolean` | | [types/index.ts:439](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L439) |
1170
- | <a id="type"></a> `type` | `string \| null` | Type of a property, index signature or enum member value; null otherwise. | [types/index.ts:441](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L441) |
1171
- | <a id="summary"></a> `summary` | `string` | | [types/index.ts:442](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L442) |
1172
- | <a id="tags"></a> `tags` | [`ApiTag`](#apitag)`[]` | | [types/index.ts:443](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L443) |
1173
- | <a id="signatures"></a> `signatures` | [`ApiSignature`](#apisignature)`[]` | Signatures of constructors, methods, accessors (get then set) and call signatures. | [types/index.ts:445](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L445) |
1174
- | <a id="source"></a> `source` | [`ApiSource`](#apisource) | | [types/index.ts:446](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L446) |
1163
+ | <a id="name"></a> `name` | `string` | | [types/index.ts:436](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L436) |
1164
+ | <a id="kind"></a> `kind` | [`ApiMemberKind`](#apimemberkind) | | [types/index.ts:437](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L437) |
1165
+ | <a id="static"></a> `static` | `boolean` | | [types/index.ts:438](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L438) |
1166
+ | <a id="readonly"></a> `readonly` | `boolean` | | [types/index.ts:439](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L439) |
1167
+ | <a id="optional"></a> `optional` | `boolean` | | [types/index.ts:440](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L440) |
1168
+ | <a id="protected"></a> `protected` | `boolean` | | [types/index.ts:441](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L441) |
1169
+ | <a id="abstract"></a> `abstract` | `boolean` | | [types/index.ts:442](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L442) |
1170
+ | <a id="type"></a> `type` | `string \| null` | Type of a property, index signature or enum member value; null otherwise. | [types/index.ts:444](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L444) |
1171
+ | <a id="summary"></a> `summary` | `string` | | [types/index.ts:445](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L445) |
1172
+ | <a id="tags"></a> `tags` | [`ApiTag`](#apitag)`[]` | | [types/index.ts:446](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L446) |
1173
+ | <a id="signatures"></a> `signatures` | [`ApiSignature`](#apisignature)`[]` | Signatures of constructors, methods, accessors (get then set) and call signatures. | [types/index.ts:448](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L448) |
1174
+ | <a id="source"></a> `source` | [`ApiSource`](#apisource) | | [types/index.ts:449](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L449) |
1175
1175
 
1176
1176
  ***
1177
1177
 
@@ -1192,7 +1192,7 @@ type ApiLinkTarget = {
1192
1192
  };
1193
1193
  ```
1194
1194
 
1195
- Defined in: [types/index.ts:453](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L453)
1195
+ Defined in: [types/index.ts:456](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L456)
1196
1196
 
1197
1197
  A ``...`` target in a symbol's documentation that resolves to an
1198
1198
  exported symbol (or a member of one) of the same datasource.
@@ -1201,12 +1201,12 @@ exported symbol (or a member of one) of the same datasource.
1201
1201
 
1202
1202
  | Property | Type | Description | Defined in |
1203
1203
  | ------ | ------ | ------ | ------ |
1204
- | <a id="target"></a> `target` | `string` | Target as written in the comment, e.g. `DBModel.use`. | [types/index.ts:455](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L455) |
1205
- | <a id="name"></a> `name` | `string` | Exported symbol the target names. | [types/index.ts:457](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L457) |
1206
- | <a id="kind"></a> `kind` | [`ApiSymbolKind`](#apisymbolkind) | | [types/index.ts:458](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L458) |
1207
- | <a id="kinddir"></a> `kindDir` | `string` | | [types/index.ts:459](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L459) |
1208
- | <a id="page"></a> `page` | `string \| null` | Page of the target symbol (its `page`), or null when it is on the index. | [types/index.ts:461](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L461) |
1209
- | <a id="member"></a> `member` | `string \| null` | Member part of the target (`use` in `DBModel.use`), or null. | [types/index.ts:463](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L463) |
1204
+ | <a id="target"></a> `target` | `string` | Target as written in the comment, e.g. `DBModel.use`. | [types/index.ts:458](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L458) |
1205
+ | <a id="name"></a> `name` | `string` | Exported symbol the target names. | [types/index.ts:460](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L460) |
1206
+ | <a id="kind"></a> `kind` | [`ApiSymbolKind`](#apisymbolkind) | | [types/index.ts:461](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L461) |
1207
+ | <a id="kinddir"></a> `kindDir` | `string` | | [types/index.ts:462](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L462) |
1208
+ | <a id="page"></a> `page` | `string \| null` | Page of the target symbol (its `page`), or null when it is on the index. | [types/index.ts:464](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L464) |
1209
+ | <a id="member"></a> `member` | `string \| null` | Member part of the target (`use` in `DBModel.use`), or null. | [types/index.ts:466](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L466) |
1210
1210
 
1211
1211
  ***
1212
1212
 
@@ -1251,7 +1251,7 @@ type ApiSymbol = {
1251
1251
  };
1252
1252
  ```
1253
1253
 
1254
- Defined in: [types/index.ts:473](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L473)
1254
+ Defined in: [types/index.ts:476](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L476)
1255
1255
 
1256
1256
  One record of the `typescript` datasource: an exported symbol.
1257
1257
 
@@ -1263,25 +1263,25 @@ e.g. `./docs/api/{kindDir}/{name}.md`.
1263
1263
 
1264
1264
  | Property | Type | Description | Defined in |
1265
1265
  | ------ | ------ | ------ | ------ |
1266
- | <a id="name"></a> `name` | `string` | Exported name. | [types/index.ts:475](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L475) |
1267
- | <a id="kind"></a> `kind` | [`ApiSymbolKind`](#apisymbolkind) | | [types/index.ts:476](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L476) |
1268
- | <a id="kindlabel"></a> `kindLabel` | `string` | Display name of the kind, e.g. `Class`, `Type Alias`. | [types/index.ts:478](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L478) |
1269
- | <a id="kinddir"></a> `kindDir` | `string` | Directory name for the kind, e.g. `classes`, `type-aliases`. | [types/index.ts:480](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L480) |
1270
- | <a id="category"></a> `category` | `string \| null` | Text of the `@category` tag (also kept in `tags`), or null. | [types/index.ts:482](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L482) |
1271
- | <a id="summary"></a> `summary` | `string` | | [types/index.ts:483](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L483) |
1272
- | <a id="tags"></a> `tags` | [`ApiTag`](#apitag)`[]` | | [types/index.ts:484](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L484) |
1273
- | <a id="code"></a> `code` | `string \| null` | Declaration as code for type aliases and variables; null otherwise. | [types/index.ts:486](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L486) |
1274
- | <a id="typeparameters"></a> `typeParameters` | [`ApiTypeParameter`](#apitypeparameter)`[]` | | [types/index.ts:487](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L487) |
1275
- | <a id="extends"></a> `extends` | `string[]` | | [types/index.ts:488](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L488) |
1276
- | <a id="implements"></a> `implements` | `string[]` | | [types/index.ts:489](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L489) |
1277
- | <a id="signatures"></a> `signatures` | [`ApiSignature`](#apisignature)`[]` | Overload signatures of a function. | [types/index.ts:491](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L491) |
1278
- | <a id="members"></a> `members` | [`ApiMember`](#apimember)`[]` | Members of a class, interface, enum, or object type alias. | [types/index.ts:493](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L493) |
1279
- | <a id="source"></a> `source` | [`ApiSource`](#apisource) | | [types/index.ts:494](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L494) |
1280
- | <a id="abstract"></a> `abstract` | `boolean` | True for an `abstract` class. | [types/index.ts:496](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L496) |
1281
- | <a id="haspage"></a> `hasPage` | `boolean` | Whether the symbol has a page of its own (its kind is in the datasource's `pages`). | [types/index.ts:498](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L498) |
1282
- | <a id="page"></a> `page` | `string \| null` | Path of its page relative to the API root (`classes/Store.md`), or null. | [types/index.ts:500](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L500) |
1283
- | <a id="referenceof"></a> `referenceOf` | `string \| null` | For a `reference` (`export { A as B }`): the name `A` is documented under; null otherwise. | [types/index.ts:502](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L502) |
1284
- | <a id="links"></a> `links` | [`ApiLinkTarget`](#apilinktarget)`[]` | Exported symbols this symbol refers to: ``...`` targets, `referenceOf`, and names used in its types (parameters, returns, properties, heritage). | [types/index.ts:507](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L507) |
1266
+ | <a id="name"></a> `name` | `string` | Exported name. | [types/index.ts:478](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L478) |
1267
+ | <a id="kind"></a> `kind` | [`ApiSymbolKind`](#apisymbolkind) | | [types/index.ts:479](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L479) |
1268
+ | <a id="kindlabel"></a> `kindLabel` | `string` | Display name of the kind, e.g. `Class`, `Type Alias`. | [types/index.ts:481](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L481) |
1269
+ | <a id="kinddir"></a> `kindDir` | `string` | Directory name for the kind, e.g. `classes`, `type-aliases`. | [types/index.ts:483](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L483) |
1270
+ | <a id="category"></a> `category` | `string \| null` | Text of the `@category` tag (also kept in `tags`), or null. | [types/index.ts:485](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L485) |
1271
+ | <a id="summary"></a> `summary` | `string` | | [types/index.ts:486](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L486) |
1272
+ | <a id="tags"></a> `tags` | [`ApiTag`](#apitag)`[]` | | [types/index.ts:487](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L487) |
1273
+ | <a id="code"></a> `code` | `string \| null` | Declaration as code for type aliases and variables; null otherwise. | [types/index.ts:489](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L489) |
1274
+ | <a id="typeparameters"></a> `typeParameters` | [`ApiTypeParameter`](#apitypeparameter)`[]` | | [types/index.ts:490](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L490) |
1275
+ | <a id="extends"></a> `extends` | `string[]` | | [types/index.ts:491](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L491) |
1276
+ | <a id="implements"></a> `implements` | `string[]` | | [types/index.ts:492](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L492) |
1277
+ | <a id="signatures"></a> `signatures` | [`ApiSignature`](#apisignature)`[]` | Overload signatures of a function. | [types/index.ts:494](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L494) |
1278
+ | <a id="members"></a> `members` | [`ApiMember`](#apimember)`[]` | Members of a class, interface, enum, or object type alias. | [types/index.ts:496](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L496) |
1279
+ | <a id="source"></a> `source` | [`ApiSource`](#apisource) | | [types/index.ts:497](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L497) |
1280
+ | <a id="abstract"></a> `abstract` | `boolean` | True for an `abstract` class. | [types/index.ts:499](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L499) |
1281
+ | <a id="haspage"></a> `hasPage` | `boolean` | Whether the symbol has a page of its own (its kind is in the datasource's `pages`). | [types/index.ts:501](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L501) |
1282
+ | <a id="page"></a> `page` | `string \| null` | Path of its page relative to the API root (`classes/Store.md`), or null. | [types/index.ts:503](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L503) |
1283
+ | <a id="referenceof"></a> `referenceOf` | `string \| null` | For a `reference` (`export { A as B }`): the name `A` is documented under; null otherwise. | [types/index.ts:505](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L505) |
1284
+ | <a id="links"></a> `links` | [`ApiLinkTarget`](#apilinktarget)`[]` | Exported symbols this symbol refers to: ``...`` targets, `referenceOf`, and names used in its types (parameters, returns, properties, heritage). | [types/index.ts:510](https://github.com/foo-ogawa/embedoc/blob/main/src/types/index.ts#L510) |
1285
1285
 
1286
1286
  ## Variables
1287
1287
 
@@ -1373,7 +1373,7 @@ export default defineEmbed({
1373
1373
  function renderApiIndex(records: QueryResult, options?: ApiMarkdownOptions): string;
1374
1374
  ```
1375
1375
 
1376
- Defined in: [helpers/api-markdown.ts:448](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L448)
1376
+ Defined in: [helpers/api-markdown.ts:450](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L450)
1377
1377
 
1378
1378
  Render the index page of an API: symbols grouped by kind (and by `@category`).
1379
1379
 
@@ -1401,7 +1401,7 @@ Markdown
1401
1401
  function renderApiPage(record: Record<string, unknown>, options?: ApiMarkdownOptions): string;
1402
1402
  ```
1403
1403
 
1404
- Defined in: [helpers/api-markdown.ts:488](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L488)
1404
+ Defined in: [helpers/api-markdown.ts:490](https://github.com/foo-ogawa/embedoc/blob/main/src/helpers/api-markdown.ts#L490)
1405
1405
 
1406
1406
  Render the page of one symbol (its `page`, `<kindDir>/<name>.md`).
1407
1407