@ng-doc/utils 22.0.0-beta.2 → 22.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.
- package/README.md +20 -29
- package/html/plugins/cached-shiki.plugin.d.ts +68 -0
- package/html/process-html.d.ts +9 -0
- package/index.esm.js +242 -11
- package/index.esm.js.map +1 -1
- package/package.json +22 -21
package/README.md
CHANGED
|
@@ -1,37 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<h1 align="center" style="margin-bottom: 0; border-bottom: 0">NgDoc</h1>
|
|
9
|
-
<p align="center">
|
|
10
|
-
Create user-friendly documentation for your projects with ease!
|
|
11
|
-
<br />
|
|
12
|
-
<a href="https://ng-doc.com/">Documentation</a>
|
|
13
|
-
·
|
|
14
|
-
<a href="https://github.com/ng-doc/ng-doc/issues/new/choose">Report Bug</a>
|
|
15
|
-
·
|
|
16
|
-
<a href="https://github.com/ng-doc/ng-doc/issues/new/choose">Request Feature</a>
|
|
17
|
-
|
|
18
|
-
[![GitHub Workflow Status][build-shield]][build-url]
|
|
1
|
+
# 🧰 @ng-doc/utils
|
|
2
|
+
|
|
3
|
+
Small utilities shared by the other NgDoc packages.
|
|
4
|
+
|
|
5
|
+
It's part of [NgDoc](https://ng-doc.com/) 📚, the documentation engine for Angular projects.
|
|
6
|
+
|
|
19
7
|
[![NPM][npm-shield]][npm-url]
|
|
20
8
|
[![MIT License][license-shield]][license-url]
|
|
21
9
|
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
## 🚀 Getting started
|
|
11
|
+
|
|
12
|
+
You don't need to install this package by hand. Add NgDoc to your project and it sets up
|
|
13
|
+
everything it needs:
|
|
24
14
|
|
|
25
|
-
|
|
15
|
+
```bash
|
|
16
|
+
ng add @ng-doc/add
|
|
17
|
+
```
|
|
26
18
|
|
|
27
|
-
##
|
|
19
|
+
## 📖 Learn more
|
|
28
20
|
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
- [Documentation](https://ng-doc.com/)
|
|
22
|
+
- [GitHub repository](https://github.com/ng-doc/ng-doc)
|
|
23
|
+
- [Report a bug or request a feature](https://github.com/ng-doc/ng-doc/issues/new/choose)
|
|
31
24
|
|
|
32
|
-
[npm-shield]: https://img.shields.io/npm/v
|
|
33
|
-
[npm-url]: https://www.npmjs.com/package/@ng-doc/
|
|
25
|
+
[npm-shield]: https://img.shields.io/npm/v/%40ng-doc%2Futils.svg?style=for-the-badge
|
|
26
|
+
[npm-url]: https://www.npmjs.com/package/@ng-doc/utils
|
|
34
27
|
[license-shield]: https://img.shields.io/github/license/ng-doc/ng-doc.svg?style=for-the-badge
|
|
35
|
-
[license-url]: https://github.com/
|
|
36
|
-
[build-shield]: https://img.shields.io/github/actions/workflow/status/ng-doc/ng-doc/release.yml?style=for-the-badge&branch=release
|
|
37
|
-
[build-url]: https://github.com/ng-doc/ng-doc/actions
|
|
28
|
+
[license-url]: https://github.com/ng-doc/ng-doc/blob/main/LICENSE
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type RehypeShikiOptions } from '@shikijs/rehype';
|
|
2
|
+
import type { Root } from 'hast';
|
|
3
|
+
/**
|
|
4
|
+
* Everything a highlighted code block depends on, apart from the installed Shiki release. A cache
|
|
5
|
+
* keys a block by it (plus that release) with {@link NgDocHighlightCache.key}.
|
|
6
|
+
*/
|
|
7
|
+
export interface NgDocHighlightBlock {
|
|
8
|
+
/** The plugin's format and the fixed Shiki options it highlights with. */
|
|
9
|
+
readonly options: Readonly<Record<string, string | number | boolean>>;
|
|
10
|
+
/** The theme names. NgDoc's own theme (`css-variables`) is not a Shiki theme. */
|
|
11
|
+
readonly themes: {
|
|
12
|
+
readonly light: string;
|
|
13
|
+
readonly dark: string;
|
|
14
|
+
};
|
|
15
|
+
/** The language of the block's class, or the default language: before the fallback. */
|
|
16
|
+
readonly lang: string;
|
|
17
|
+
/** The raw meta string, before it is parsed. */
|
|
18
|
+
readonly meta: string;
|
|
19
|
+
/** The block's text. */
|
|
20
|
+
readonly code: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A cache of highlighted code blocks for `processHtml`. Values are the JSON of the HAST nodes that
|
|
24
|
+
* replace a block's `pre` element. A value that is not a JSON array of HAST elements is a miss.
|
|
25
|
+
* The cache only ever receives values of blocks that were highlighted without an error.
|
|
26
|
+
*/
|
|
27
|
+
export interface NgDocHighlightCache {
|
|
28
|
+
/** The key of a block. It must change whenever anything in the block or the Shiki release does. */
|
|
29
|
+
key(block: NgDocHighlightBlock): string;
|
|
30
|
+
get(key: string): string | undefined;
|
|
31
|
+
set(key: string, value: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* Whether these themes are known to load, because the cache holds a block highlighted with them.
|
|
34
|
+
* Without that, a document is processed only after Shiki has loaded them, as without a cache, so
|
|
35
|
+
* that a theme that cannot load fails every document, even one without code.
|
|
36
|
+
*/
|
|
37
|
+
loads?(themes: NgDocHighlightBlock['themes']): boolean;
|
|
38
|
+
/** Highlights every hit again, uses the fresh value and reports each difference. */
|
|
39
|
+
readonly verify?: boolean;
|
|
40
|
+
/** A hit whose fresh value differs (with `verify`). */
|
|
41
|
+
mismatch?(key: string): void;
|
|
42
|
+
}
|
|
43
|
+
/** The options of {@link cachedShikiPlugin}. */
|
|
44
|
+
export interface CachedShikiOptions {
|
|
45
|
+
cache: NgDocHighlightCache;
|
|
46
|
+
themes: NgDocHighlightBlock['themes'];
|
|
47
|
+
/** What `options` stands for in a key: change it whenever the options or this plugin change. */
|
|
48
|
+
identity: NgDocHighlightBlock['options'];
|
|
49
|
+
/** The language of a block without a `language-*` class (the options' `defaultLanguage`). */
|
|
50
|
+
defaultLanguage: string;
|
|
51
|
+
/** The options `@shikijs/rehype` highlights with, created when the highlighter is. */
|
|
52
|
+
options: () => RehypeShikiOptions;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The plain `@shikijs/rehype` plugin, with a cache of its results per block.
|
|
56
|
+
*
|
|
57
|
+
* It selects the blocks exactly as the plugin does (`pre` elements whose first child is a `code`
|
|
58
|
+
* element with properties, with the language of its `language-*` class or the default language)
|
|
59
|
+
* and leaves the tree unchanged while it keys them. A miss is highlighted by the plugin's own
|
|
60
|
+
* transformer, on a tree that holds only that block, so it gets exactly the plugin's options,
|
|
61
|
+
* language fallback, meta parsing and transformers. A failing block throws the plugin's error at
|
|
62
|
+
* the same block, since a hit cannot fail (the cache holds only blocks that were highlighted), and
|
|
63
|
+
* nothing is stored for it. Every value is serialized before the tree is changed, and every block
|
|
64
|
+
* is replaced with nodes parsed from it, so later plugins, which change the tree, never change a
|
|
65
|
+
* value or a node another block shares. A document whose blocks all hit (or that has none) never
|
|
66
|
+
* loads Shiki once the cache shows that its themes load.
|
|
67
|
+
*/
|
|
68
|
+
export default function cachedShikiPlugin(settings: CachedShikiOptions): (tree: Root) => Promise<void>;
|
package/html/process-html.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { NgDocHeading, NgDocPageAnchor } from '@ng-doc/core';
|
|
2
|
+
import { NgDocHighlightCache } from './plugins/cached-shiki.plugin';
|
|
3
|
+
export type { NgDocHighlightBlock, NgDocHighlightCache } from './plugins/cached-shiki.plugin';
|
|
2
4
|
export interface NgDocHtmlProcessorConfig {
|
|
3
5
|
lightTheme?: string;
|
|
4
6
|
darkTheme?: string;
|
|
5
7
|
headings?: NgDocHeading[];
|
|
6
8
|
route?: string;
|
|
9
|
+
/**
|
|
10
|
+
* A cache of highlighted code blocks. With it, code is highlighted by a Shiki highlighter that is
|
|
11
|
+
* set up once per thread and theme pair, and a block is highlighted only when the cache misses;
|
|
12
|
+
* the result is the same as without it. Without it, every call sets the highlighter up again
|
|
13
|
+
* and highlights every block.
|
|
14
|
+
*/
|
|
15
|
+
highlight?: NgDocHighlightCache;
|
|
7
16
|
}
|
|
8
17
|
export interface NgDocHtmlProcessorOutput {
|
|
9
18
|
content: string;
|
package/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import rehypeMinifyWhitespace from 'rehype-minify-whitespace';
|
|
|
2
2
|
import rehypeParse from 'rehype-parse';
|
|
3
3
|
import rehypeStringify from 'rehype-stringify';
|
|
4
4
|
import { unified } from 'unified';
|
|
5
|
-
import { KEYWORD_ALLOWED_LANGUAGES, asArray, NG_DOC_ELEMENT } from '@ng-doc/core';
|
|
5
|
+
import { KEYWORD_ALLOWED_LANGUAGES, asArray, NG_DOC_ELEMENT, NG_DOC_SYNTAX_THEME_NAME, ngDocSyntaxTheme } from '@ng-doc/core';
|
|
6
6
|
import { isElement as isElement$1 } from 'hast-util-is-element';
|
|
7
7
|
import { toString } from 'hast-util-to-string';
|
|
8
8
|
import { visitParents, SKIP } from 'unist-util-visit-parents';
|
|
@@ -259,6 +259,140 @@ function addHeadingAnchors(route) {
|
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
const languagePrefix = 'language-';
|
|
263
|
+
/**
|
|
264
|
+
* One `@shikijs/rehype` transformer per theme pair in this thread. It loads its highlighter once
|
|
265
|
+
* (every bundled language, the themes and the WASM), where the plain plugin, created again for
|
|
266
|
+
* every document, asks for the highlighter and loads every language and theme into it again on
|
|
267
|
+
* each call. A transformer whose highlighter failed to load is forgotten, so the next document
|
|
268
|
+
* tries again and fails with the same error, as the plain plugin does.
|
|
269
|
+
*/
|
|
270
|
+
const highlighters = new Map();
|
|
271
|
+
/**
|
|
272
|
+
* The plain `@shikijs/rehype` plugin, with a cache of its results per block.
|
|
273
|
+
*
|
|
274
|
+
* It selects the blocks exactly as the plugin does (`pre` elements whose first child is a `code`
|
|
275
|
+
* element with properties, with the language of its `language-*` class or the default language)
|
|
276
|
+
* and leaves the tree unchanged while it keys them. A miss is highlighted by the plugin's own
|
|
277
|
+
* transformer, on a tree that holds only that block, so it gets exactly the plugin's options,
|
|
278
|
+
* language fallback, meta parsing and transformers. A failing block throws the plugin's error at
|
|
279
|
+
* the same block, since a hit cannot fail (the cache holds only blocks that were highlighted), and
|
|
280
|
+
* nothing is stored for it. Every value is serialized before the tree is changed, and every block
|
|
281
|
+
* is replaced with nodes parsed from it, so later plugins, which change the tree, never change a
|
|
282
|
+
* value or a node another block shares. A document whose blocks all hit (or that has none) never
|
|
283
|
+
* loads Shiki once the cache shows that its themes load.
|
|
284
|
+
*/
|
|
285
|
+
function cachedShikiPlugin(settings) {
|
|
286
|
+
const { cache, themes, identity, defaultLanguage } = settings;
|
|
287
|
+
const id = `${themes.light}\n${themes.dark}`;
|
|
288
|
+
return async (tree) => {
|
|
289
|
+
const blocks = [];
|
|
290
|
+
visit(tree, 'element', (node, index, parent) => {
|
|
291
|
+
if (!parent || index == null || node.tagName !== 'pre')
|
|
292
|
+
return;
|
|
293
|
+
const head = node.children[0];
|
|
294
|
+
if (!head || head.type !== 'element' || head.tagName !== 'code' || !head.properties)
|
|
295
|
+
return;
|
|
296
|
+
const classes = head.properties['className'];
|
|
297
|
+
const languageClass = Array.isArray(classes)
|
|
298
|
+
? classes.find((item) => typeof item === 'string' && item.startsWith(languagePrefix))
|
|
299
|
+
: undefined;
|
|
300
|
+
const lang = typeof languageClass === 'string'
|
|
301
|
+
? languageClass.slice(languagePrefix.length)
|
|
302
|
+
: defaultLanguage;
|
|
303
|
+
if (!lang)
|
|
304
|
+
return;
|
|
305
|
+
const data = head.data;
|
|
306
|
+
const meta = data?.meta ?? head.properties['metastring']?.toString() ?? '';
|
|
307
|
+
const code = toString(head);
|
|
308
|
+
blocks.push({
|
|
309
|
+
node,
|
|
310
|
+
parent,
|
|
311
|
+
key: cache.key({ options: identity, themes, lang, meta, code }),
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
let highlighter;
|
|
315
|
+
const load = async () => (highlighter ??= await highlighterFor(id, settings.options));
|
|
316
|
+
if (cache.loads?.(themes) !== true)
|
|
317
|
+
await load();
|
|
318
|
+
const values = [];
|
|
319
|
+
for (const block of blocks) {
|
|
320
|
+
const cached = cache.get(block.key);
|
|
321
|
+
const hit = cached === undefined ? undefined : fragment(cached);
|
|
322
|
+
if (hit && !cache.verify) {
|
|
323
|
+
values.push(hit);
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
const fresh = await highlight(await load(), block.node);
|
|
327
|
+
if (hit && fresh !== cached)
|
|
328
|
+
cache.mismatch?.(block.key);
|
|
329
|
+
if (fresh !== cached)
|
|
330
|
+
cache.set(block.key, fresh);
|
|
331
|
+
values.push(JSON.parse(fresh));
|
|
332
|
+
}
|
|
333
|
+
blocks.forEach((block, position) => {
|
|
334
|
+
const index = block.parent.children.indexOf(block.node);
|
|
335
|
+
// A block nested in another block's `pre` was replaced inside that detached element.
|
|
336
|
+
if (index >= 0)
|
|
337
|
+
block.parent.children.splice(index, 1, ...values[position]);
|
|
338
|
+
});
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
function highlighterFor(id, options) {
|
|
342
|
+
const known = highlighters.get(id);
|
|
343
|
+
if (known)
|
|
344
|
+
return known;
|
|
345
|
+
const created = (async () => {
|
|
346
|
+
const transform = rehypeShiki(options());
|
|
347
|
+
// An empty tree makes the transformer load its highlighter, so that a failure to load is told
|
|
348
|
+
// apart from a block's own failure.
|
|
349
|
+
await transform({ type: 'root', children: [] });
|
|
350
|
+
return transform;
|
|
351
|
+
})();
|
|
352
|
+
highlighters.set(id, created);
|
|
353
|
+
created.catch(() => {
|
|
354
|
+
if (highlighters.get(id) === created)
|
|
355
|
+
highlighters.delete(id);
|
|
356
|
+
});
|
|
357
|
+
return created;
|
|
358
|
+
}
|
|
359
|
+
/** The JSON of the nodes the plugin replaces `node` with. */
|
|
360
|
+
async function highlight(transform, node) {
|
|
361
|
+
const root = { type: 'root', children: [node] };
|
|
362
|
+
await transform(root);
|
|
363
|
+
return JSON.stringify(root.children);
|
|
364
|
+
}
|
|
365
|
+
/** A cached value as fresh nodes, or undefined when it is not a JSON array of HAST elements. */
|
|
366
|
+
function fragment(value) {
|
|
367
|
+
try {
|
|
368
|
+
const parsed = JSON.parse(value);
|
|
369
|
+
return Array.isArray(parsed) &&
|
|
370
|
+
parsed.length > 0 &&
|
|
371
|
+
parsed.every((item) => isNode(item) && item.type === 'element')
|
|
372
|
+
? parsed
|
|
373
|
+
: undefined;
|
|
374
|
+
}
|
|
375
|
+
catch {
|
|
376
|
+
return undefined;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
function isNode(value) {
|
|
380
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
381
|
+
return false;
|
|
382
|
+
const node = value;
|
|
383
|
+
if (node['type'] === 'text')
|
|
384
|
+
return typeof node['value'] === 'string';
|
|
385
|
+
const properties = node['properties'];
|
|
386
|
+
const children = node['children'];
|
|
387
|
+
return (node['type'] === 'element' &&
|
|
388
|
+
typeof node['tagName'] === 'string' &&
|
|
389
|
+
!!properties &&
|
|
390
|
+
typeof properties === 'object' &&
|
|
391
|
+
!Array.isArray(properties) &&
|
|
392
|
+
Array.isArray(children) &&
|
|
393
|
+
children.every(isNode));
|
|
394
|
+
}
|
|
395
|
+
|
|
262
396
|
/**
|
|
263
397
|
* Highlight code lines
|
|
264
398
|
*/
|
|
@@ -349,6 +483,9 @@ function sluggerPlugin(addAnchor, headings = ['h1', 'h2', 'h3', 'h4']) {
|
|
|
349
483
|
if (node.properties) {
|
|
350
484
|
const id = attrSlug && attrSlugType === 'member' ? attrSlug : slugger.slug(dataToSlug);
|
|
351
485
|
node.properties['id'] = id;
|
|
486
|
+
if (isHeading) {
|
|
487
|
+
hideLeadingEmoji(node);
|
|
488
|
+
}
|
|
352
489
|
addAnchor({
|
|
353
490
|
anchorId: id,
|
|
354
491
|
anchor: new GithubSlugger().slug(dataToSlug),
|
|
@@ -363,6 +500,31 @@ function sluggerPlugin(addAnchor, headings = ['h1', 'h2', 'h3', 'h4']) {
|
|
|
363
500
|
});
|
|
364
501
|
};
|
|
365
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* A leading emoji of a heading: one pictograph with its modifiers and joined parts, or a flag.
|
|
505
|
+
* `libs/builder/helpers/keyword-heading-title.ts` strips the same emoji from keyword titles; keep
|
|
506
|
+
* both patterns in step.
|
|
507
|
+
*/
|
|
508
|
+
const LEADING_EMOJI = /^(?:\p{Regional_Indicator}{2}|(?:\p{Emoji_Presentation}|\p{Extended_Pictographic}\uFE0F)(?:\p{Emoji_Modifier}|\uFE0F|\u200D\p{Extended_Pictographic}\uFE0F?)*)(?=\s)/u;
|
|
509
|
+
/**
|
|
510
|
+
* Wraps a decorative leading emoji of a heading in an `aria-hidden` span, so screen readers skip
|
|
511
|
+
* it. It runs after the heading's id and anchor are taken from the text, so neither changes.
|
|
512
|
+
* @param heading - The heading element.
|
|
513
|
+
*/
|
|
514
|
+
function hideLeadingEmoji(heading) {
|
|
515
|
+
const first = heading.children[0];
|
|
516
|
+
const emoji = first?.type === 'text' ? LEADING_EMOJI.exec(first.value)?.[0] : undefined;
|
|
517
|
+
if (!emoji) {
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
const rest = { type: 'text', value: first.value.slice(emoji.length) };
|
|
521
|
+
heading.children.splice(0, 1, {
|
|
522
|
+
type: 'element',
|
|
523
|
+
tagName: 'span',
|
|
524
|
+
properties: { ariaHidden: 'true' },
|
|
525
|
+
children: [{ type: 'text', value: emoji }],
|
|
526
|
+
}, rest);
|
|
527
|
+
}
|
|
366
528
|
/**
|
|
367
529
|
*
|
|
368
530
|
* @param ancestors
|
|
@@ -408,6 +570,10 @@ function wrapTablePlugin () {
|
|
|
408
570
|
*/
|
|
409
571
|
async function processHtml(html, config) {
|
|
410
572
|
const anchors = new Set();
|
|
573
|
+
const themes = {
|
|
574
|
+
light: config.lightTheme ?? 'github-light',
|
|
575
|
+
dark: config.darkTheme ?? 'ayu-dark',
|
|
576
|
+
};
|
|
411
577
|
try {
|
|
412
578
|
const content = await unified()
|
|
413
579
|
.use(rehypeParse, { fragment: true })
|
|
@@ -415,16 +581,20 @@ async function processHtml(html, config) {
|
|
|
415
581
|
.use(mermaidPlugin)
|
|
416
582
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
417
583
|
// @ts-ignore
|
|
418
|
-
.use(
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
584
|
+
.use(config.highlight
|
|
585
|
+
? [
|
|
586
|
+
[
|
|
587
|
+
cachedShikiPlugin,
|
|
588
|
+
{
|
|
589
|
+
cache: config.highlight,
|
|
590
|
+
themes,
|
|
591
|
+
identity: HIGHLIGHT_IDENTITY,
|
|
592
|
+
defaultLanguage: DEFAULT_LANGUAGE,
|
|
593
|
+
options: () => shikiOptions(themes),
|
|
594
|
+
},
|
|
595
|
+
],
|
|
596
|
+
]
|
|
597
|
+
: [[rehypeShiki, shikiOptions(themes)]])
|
|
428
598
|
.use(highlightCodeLines)
|
|
429
599
|
.use(wrapTablePlugin)
|
|
430
600
|
.use(sluggerPlugin, anchors.add.bind(anchors), config.headings)
|
|
@@ -439,6 +609,49 @@ async function processHtml(html, config) {
|
|
|
439
609
|
return { content: html, anchors: [], error };
|
|
440
610
|
}
|
|
441
611
|
}
|
|
612
|
+
const DEFAULT_LANGUAGE = 'ts';
|
|
613
|
+
/**
|
|
614
|
+
* What a cached block's options stand for in its key ({@link NgDocHighlightCache}). Bump `format`
|
|
615
|
+
* whenever {@link shikiOptions} or the cached plugin change.
|
|
616
|
+
*/
|
|
617
|
+
const HIGHLIGHT_IDENTITY = {
|
|
618
|
+
format: 1,
|
|
619
|
+
defaultLanguage: DEFAULT_LANGUAGE,
|
|
620
|
+
fallbackLanguage: 'text',
|
|
621
|
+
addLanguageClass: true,
|
|
622
|
+
parseMetaString: 'json-without-backslashes',
|
|
623
|
+
tokenizeTimeLimit: 0,
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* The options both highlighting paths give `@shikijs/rehype`.
|
|
627
|
+
* @param themes - The theme names.
|
|
628
|
+
* @param themes.light - The light theme.
|
|
629
|
+
* @param themes.dark - The dark theme.
|
|
630
|
+
*/
|
|
631
|
+
function shikiOptions(themes) {
|
|
632
|
+
return {
|
|
633
|
+
defaultLanguage: DEFAULT_LANGUAGE,
|
|
634
|
+
fallbackLanguage: 'text',
|
|
635
|
+
addLanguageClass: true,
|
|
636
|
+
parseMetaString: (meta) => JSON.parse(meta?.replace(/\\/g, '') || '{}'),
|
|
637
|
+
// Shiki stops tokenizing a line after 500 ms by default and silently colours the rest of
|
|
638
|
+
// it like the last token. A slow or pre-empted process then renders other HTML than a fast
|
|
639
|
+
// one, so the build output would depend on machine load. No limit keeps it deterministic.
|
|
640
|
+
tokenizeTimeLimit: 0,
|
|
641
|
+
themes: {
|
|
642
|
+
light: shikiTheme(themes.light),
|
|
643
|
+
dark: shikiTheme(themes.dark),
|
|
644
|
+
},
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* A Shiki theme by name. NgDoc's own theme is not bundled with Shiki, so its name resolves to a new
|
|
649
|
+
* copy of it; any other name is left to Shiki.
|
|
650
|
+
* @param name - The theme name.
|
|
651
|
+
*/
|
|
652
|
+
function shikiTheme(name) {
|
|
653
|
+
return name === NG_DOC_SYNTAX_THEME_NAME ? ngDocSyntaxTheme() : name;
|
|
654
|
+
}
|
|
442
655
|
|
|
443
656
|
/**
|
|
444
657
|
*
|
|
@@ -447,6 +660,14 @@ async function processHtml(html, config) {
|
|
|
447
660
|
*/
|
|
448
661
|
function removeNotIndexableContentPlugin() {
|
|
449
662
|
return (tree) => {
|
|
663
|
+
// The slugger wraps a heading's decorative leading emoji in an `aria-hidden` span. It is not
|
|
664
|
+
// part of the heading's name: indexed, it became a search record of its own, under the
|
|
665
|
+
// previous section.
|
|
666
|
+
visit(tree, 'element', (node) => {
|
|
667
|
+
if (isHeading(node) && isHiddenSpan(node.children[0])) {
|
|
668
|
+
node.children = node.children.slice(1);
|
|
669
|
+
}
|
|
670
|
+
});
|
|
450
671
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
451
672
|
// @ts-ignore
|
|
452
673
|
return filter(tree, { cascade: true }, (node) => {
|
|
@@ -458,6 +679,16 @@ function removeNotIndexableContentPlugin() {
|
|
|
458
679
|
});
|
|
459
680
|
};
|
|
460
681
|
}
|
|
682
|
+
/**
|
|
683
|
+
* Whether the node is a span hidden from assistive technology, as the slugger renders the leading
|
|
684
|
+
* emoji of a heading.
|
|
685
|
+
* @param node - The first child of a heading.
|
|
686
|
+
*/
|
|
687
|
+
function isHiddenSpan(node) {
|
|
688
|
+
return (node?.type === 'element' &&
|
|
689
|
+
node.tagName === 'span' &&
|
|
690
|
+
node.properties?.['ariaHidden'] === 'true');
|
|
691
|
+
}
|
|
461
692
|
|
|
462
693
|
/**
|
|
463
694
|
*
|
package/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../../libs/utils/html/minify.ts","../../../../libs/utils/html/helpers/attr-value.ts","../../../../libs/utils/html/helpers/has-class.ts","../../../../libs/utils/html/helpers/has-link-ancestor.ts","../../../../libs/utils/html/helpers/is-code-block.ts","../../../../libs/utils/html/helpers/is-code-node.ts","../../../../libs/utils/html/helpers/is-element.ts","../../../../libs/utils/html/helpers/is-heading.ts","../../../../libs/utils/html/plugins/keywords.plugin.ts","../../../../libs/utils/html/post-process-html.ts","../../../../libs/utils/html/plugins/add-heading-anchors.plugin.ts","../../../../libs/utils/html/plugins/highlight-code-lines.ts","../../../../libs/utils/html/plugins/mark-elements.plugin.ts","../../../../libs/utils/html/plugins/mermaid.plugin.ts","../../../../libs/utils/html/plugins/slugger.plugin.ts","../../../../libs/utils/html/plugins/table-wrapper.ts","../../../../libs/utils/html/process-html.ts","../../../../libs/utils/html/plugins/remove-not-indexable-content.plugin.ts","../../../../libs/utils/html/remove-not-indexable-content.ts","../../../../libs/utils/html/replace-keywords.ts","../../../../libs/utils/html/stringify-entities.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["isElement","autolinkHeadingPlugin","stringify"],"mappings":";;;;;;;;;;;;;;;;;AAKA;;;AAGG;AACG,SAAU,MAAM,CAAC,IAAY,EAAA;AACjC,IAAA,OAAO,OAAO;SACX,GAAG,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SACnC,GAAG,CAAC,eAAe;SACnB,GAAG,CAAC,sBAAsB;SAC1B,WAAW,CAAC,IAAI;AAChB,SAAA,QAAQ,EAAE;AACf;;ACdA;;;;AAIG;AACG,SAAU,SAAS,CAAC,IAAa,EAAE,IAAY,EAAA;AACnD,IAAA,MAAM,OAAO,GAAW,IAAI,CAAC,WAAW,EAAE;IAE1C,OAAO,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS;AAClF;;ACTA;;;;AAIG;AACG,SAAU,QAAQ,CAAC,IAAa,EAAE,GAAW,EAAA;AACjD,IAAA,MAAM,SAAS,GAAW,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;IAE1E,OAAO,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;AAC/C;;ACRA;;;AAGG;AACG,SAAU,eAAe,CAAC,SAAoB,EAAA;AAClD,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,QAAiB,KAAKA,WAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACxE;;ACPA;;;;AAIG;AACG,SAAU,WAAW,CAAC,MAA6B,EAAE,IAAa,EAAA;AACtE,IAAA,OAAO,MAAM,EAAE,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM;AAC1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,YAAA,OAAO,CAAC,IAAI,EAAE,OAAO,KAAK,CAAC,WAAW,IAAI,CAAC,YAAY,CAAC;AAC1D,QAAA,CAAC,CAAC;AACJ,IAAA,CAAC;AACH;;ACnBA;;;AAGG;AACI,eAAe,yBAAyB,CAAC,IAAY,EAAA;AAC1D,IAAA,OAAO,MAAM;SACV,GAAG,CAAC,+BAA+B;SACnC,OAAO,CAAC,IAAI;SACZ,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;AACpC;;ACHA;;;;;;AAMG;AACI,eAAe,eAAe,CACnC,IAAY,EACZ,EAAE,UAAU,EAAyB,EAAA;AAErC,IAAA,OAAO,OAAO;SACX,GAAG,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SACnC,GAAG,CAAC,eAAe;AACnB,SAAA,GAAG,CAAC,cAAc,EAAE,EAAE,UAAU,EAAE;SAClC,OAAO,CAAC,IAAI;SACZ,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;AACpC;;ACzBA;;;AAGG;AACG,SAAU,iBAAiB,CAAC,OAAe,EAAA;AAC/C,IAAA,OAAOC,mBAAS,CAAC,OAAO,CAAC;AAC3B;;;;"}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../../libs/utils/html/minify.ts","../../../../libs/utils/html/helpers/attr-value.ts","../../../../libs/utils/html/helpers/has-class.ts","../../../../libs/utils/html/helpers/has-link-ancestor.ts","../../../../libs/utils/html/helpers/is-code-block.ts","../../../../libs/utils/html/helpers/is-code-node.ts","../../../../libs/utils/html/helpers/is-element.ts","../../../../libs/utils/html/helpers/is-heading.ts","../../../../libs/utils/html/plugins/keywords.plugin.ts","../../../../libs/utils/html/post-process-html.ts","../../../../libs/utils/html/plugins/add-heading-anchors.plugin.ts","../../../../libs/utils/html/plugins/cached-shiki.plugin.ts","../../../../libs/utils/html/plugins/highlight-code-lines.ts","../../../../libs/utils/html/plugins/mark-elements.plugin.ts","../../../../libs/utils/html/plugins/mermaid.plugin.ts","../../../../libs/utils/html/plugins/slugger.plugin.ts","../../../../libs/utils/html/plugins/table-wrapper.ts","../../../../libs/utils/html/process-html.ts","../../../../libs/utils/html/plugins/remove-not-indexable-content.plugin.ts","../../../../libs/utils/html/remove-not-indexable-content.ts","../../../../libs/utils/html/replace-keywords.ts","../../../../libs/utils/html/stringify-entities.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["isElement","autolinkHeadingPlugin","stringify"],"mappings":";;;;;;;;;;;;;;;;;AAKA;;;AAGG;AACG,SAAU,MAAM,CAAC,IAAY,EAAA;AACjC,IAAA,OAAO,OAAO;SACX,GAAG,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SACnC,GAAG,CAAC,eAAe;SACnB,GAAG,CAAC,sBAAsB;SAC1B,WAAW,CAAC,IAAI;AAChB,SAAA,QAAQ,EAAE;AACf;;ACdA;;;;AAIG;AACG,SAAU,SAAS,CAAC,IAAa,EAAE,IAAY,EAAA;AACnD,IAAA,MAAM,OAAO,GAAW,IAAI,CAAC,WAAW,EAAE;IAE1C,OAAO,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS;AAClF;;ACTA;;;;AAIG;AACG,SAAU,QAAQ,CAAC,IAAa,EAAE,GAAW,EAAA;AACjD,IAAA,MAAM,SAAS,GAAW,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;IAE1E,OAAO,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;AAC/C;;ACRA;;;AAGG;AACG,SAAU,eAAe,CAAC,SAAoB,EAAA;AAClD,IAAA,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,QAAiB,KAAKA,WA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,CAAC,KAAK,OAAO;AAEzE,YAAA,OAAO,CAAC,IAAI,EAAE,OAAO,KAAK,CAAC,WAAW,IAAI,CAAC,YAAY,CAAC;AAC1D,QAAA,CAAC,CAAC;AACJ,IAAA,CAAC;AACH;AAEA;;;;AAIG;AACH,SAAS,YAAY,CAAC,IAAgC,EAAA;AACpD,IAAA,QACE,IAAI,EAAE,IAAI,KAAK,SAAS;QACxB,IAAI,CAAC,OAAO,KAAK,MAAM;QACvB,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC,KAAK,MAAM;AAE9C;;AC1CA;;;AAGG;AACI,eAAe,yBAAyB,CAAC,IAAY,EAAA;AAC1D,IAAA,OAAO,MAAM;SACV,GAAG,CAAC,+BAA+B;SACnC,OAAO,CAAC,IAAI;SACZ,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;AACpC;;ACHA;;;;;;AAMG;AACI,eAAe,eAAe,CACnC,IAAY,EACZ,EAAE,UAAU,EAAyB,EAAA;AAErC,IAAA,OAAO,OAAO;SACX,GAAG,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SACnC,GAAG,CAAC,eAAe;AACnB,SAAA,GAAG,CAAC,cAAc,EAAE,EAAE,UAAU,EAAE;SAClC,OAAO,CAAC,IAAI;SACZ,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC;AACpC;;ACzBA;;;AAGG;AACG,SAAU,iBAAiB,CAAC,OAAe,EAAA;AAC/C,IAAA,OAAOC,mBAAS,CAAC,OAAO,CAAC;AAC3B;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/utils",
|
|
3
|
-
"version": "22.0.0
|
|
3
|
+
"version": "22.0.0",
|
|
4
|
+
"description": "Shared utilities used by the NgDoc packages.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"documentation",
|
|
8
|
+
"generator",
|
|
9
|
+
"builder",
|
|
10
|
+
"guides",
|
|
11
|
+
"api",
|
|
12
|
+
"demo",
|
|
13
|
+
"ng-doc"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://ng-doc.com",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/ng-doc/ng-doc/issues"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/ng-doc/ng-doc.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
4
24
|
"type": "module",
|
|
5
25
|
"dependencies": {
|
|
6
26
|
"rehype": "13.0.1",
|
|
@@ -33,24 +53,5 @@
|
|
|
33
53
|
"module": "./index.esm.js",
|
|
34
54
|
"main": "./index.esm.js",
|
|
35
55
|
"types": "./index.d.ts",
|
|
36
|
-
"
|
|
37
|
-
"angular",
|
|
38
|
-
"documentation",
|
|
39
|
-
"generator",
|
|
40
|
-
"builder",
|
|
41
|
-
"guides",
|
|
42
|
-
"api",
|
|
43
|
-
"demo",
|
|
44
|
-
"ng-doc"
|
|
45
|
-
],
|
|
46
|
-
"author": "Skoropad Aleksandr <alex@skoropad.dev>",
|
|
47
|
-
"repository": {
|
|
48
|
-
"type": "git",
|
|
49
|
-
"url": "git+https://github.com/ng-doc/ng-doc.git"
|
|
50
|
-
},
|
|
51
|
-
"bugs": {
|
|
52
|
-
"url": "https://github.com/ng-doc/ng-doc/issues"
|
|
53
|
-
},
|
|
54
|
-
"homepage": "https://ng-doc.com",
|
|
55
|
-
"license": "MIT"
|
|
56
|
+
"author": "Skoropad Aleksandr <alex@skoropad.dev>"
|
|
56
57
|
}
|