@serene-pub/docs 0.6.0-pr-2 → 0.6.0-pr-4
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 +7 -7
- package/dist/dialect.d.ts +2 -2
- package/dist/dialect.js +2 -2
- package/dist/manifest.d.ts +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ CommonMark with GFM tables, plus eight things:
|
|
|
86
86
|
is copied verbatim.
|
|
87
87
|
7. **Banners** — a source's `banner` is prepended to every one of its pages as
|
|
88
88
|
`<aside class="doc-banner" role="note">`.
|
|
89
|
-
8. **Pipeline fences** — ` ```pipeline core:spec/respond ` (the id is the info string
|
|
89
|
+
8. **Pipeline fences** — ` ```pipeline core:spec/chat-respond ` (the id is the info string
|
|
90
90
|
after the word; the body is ignored and is usually empty) — become an inline SVG of
|
|
91
91
|
that pipeline, laid out by [elkjs](https://github.com/kieler/elkjs)'s `layered`
|
|
92
92
|
algorithm with the same 220×58 cards and spacings the app's pipeline map uses, so the
|
|
@@ -244,14 +244,14 @@ Each fence becomes:
|
|
|
244
244
|
<figure class="doc-graph">
|
|
245
245
|
<svg
|
|
246
246
|
role="img"
|
|
247
|
-
aria-labelledby="core-spec-respond-title"
|
|
247
|
+
aria-labelledby="core-spec-chat-respond-title"
|
|
248
248
|
viewBox="0 0 W H"
|
|
249
249
|
width="W"
|
|
250
250
|
height="H"
|
|
251
251
|
>
|
|
252
|
-
<title id="core-spec-respond-title">core:spec/respond</title>
|
|
253
|
-
<defs><marker id="core-spec-respond-arrow">…</marker></defs>
|
|
254
|
-
<path class="doc-graph-edge" d="…" marker-end="url(#core-spec-respond-arrow)" />
|
|
252
|
+
<title id="core-spec-chat-respond-title">core:spec/chat-respond</title>
|
|
253
|
+
<defs><marker id="core-spec-chat-respond-arrow">…</marker></defs>
|
|
254
|
+
<path class="doc-graph-edge" d="…" marker-end="url(#core-spec-chat-respond-arrow)" />
|
|
255
255
|
<text class="doc-graph-edge-label">…</text>
|
|
256
256
|
<g class="doc-graph-node doc-graph-node-query" transform="translate(x,y)">
|
|
257
257
|
<title>the full label, when the card's was cut</title>
|
|
@@ -260,7 +260,7 @@ Each fence becomes:
|
|
|
260
260
|
<text class="doc-graph-sublabel">type id</text>
|
|
261
261
|
</g>
|
|
262
262
|
</svg>
|
|
263
|
-
<figcaption>core:spec/respond</figcaption>
|
|
263
|
+
<figcaption>core:spec/chat-respond</figcaption>
|
|
264
264
|
</figure>
|
|
265
265
|
```
|
|
266
266
|
|
|
@@ -270,7 +270,7 @@ what has to be unique on a page**, not merely present.
|
|
|
270
270
|
|
|
271
271
|
The `<svg>` carries a `viewBox` and matching `width`/`height`, so it is the host that
|
|
272
272
|
decides whether a wide graph scrolls or scales — `.doc-graph { overflow-x: auto }` or
|
|
273
|
-
`.doc-graph svg { max-width: 100%; height: auto }`. Core's `core:spec/respond` lays out
|
|
273
|
+
`.doc-graph svg { max-width: 100%; height: auto }`. Core's `core:spec/chat-respond` lays out
|
|
274
274
|
at about 2400×1360, so this is not a hypothetical: style it or it will overrun the
|
|
275
275
|
column, exactly as a wide `.doc-table` does.
|
|
276
276
|
|
package/dist/dialect.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface DocImageAsset {
|
|
|
26
26
|
height?: number;
|
|
27
27
|
}
|
|
28
28
|
export interface DocHrefContext {
|
|
29
|
-
/** Path of the page inside its source, e.g. 'pipelines/
|
|
29
|
+
/** Path of the page inside its source, e.g. 'pipelines/core_spec_chat-respond.md'. */
|
|
30
30
|
path: string;
|
|
31
31
|
/** Slug prefix of the page's source, e.g. 'sdk'. */
|
|
32
32
|
prefix?: string;
|
|
@@ -126,7 +126,7 @@ export declare function resolveDocLink(href: string, ctx: DocHrefContext): Resol
|
|
|
126
126
|
* With no context this is the app's original one-argument function, kept
|
|
127
127
|
* because the app still calls it that way: flat slugs only, `/docs` hardcoded.
|
|
128
128
|
* With a context it understands nested paths and a source prefix, which is
|
|
129
|
-
* what a catalog page linking `pipelines/
|
|
129
|
+
* what a catalog page linking `pipelines/core_spec_chat-respond.md` needs.
|
|
130
130
|
*/
|
|
131
131
|
export declare function rewriteDocHref(href: string, ctx?: DocHrefContext): string;
|
|
132
132
|
/**
|
package/dist/dialect.js
CHANGED
|
@@ -117,7 +117,7 @@ export function resolveDocLink(href, ctx) {
|
|
|
117
117
|
* With no context this is the app's original one-argument function, kept
|
|
118
118
|
* because the app still calls it that way: flat slugs only, `/docs` hardcoded.
|
|
119
119
|
* With a context it understands nested paths and a source prefix, which is
|
|
120
|
-
* what a catalog page linking `pipelines/
|
|
120
|
+
* what a catalog page linking `pipelines/core_spec_chat-respond.md` needs.
|
|
121
121
|
*/
|
|
122
122
|
export function rewriteDocHref(href, ctx) {
|
|
123
123
|
if (!ctx) {
|
|
@@ -352,7 +352,7 @@ export async function renderMarkdown(markdown, opts) {
|
|
|
352
352
|
const DESCENDS_INTO = new Set(['blockquote', 'docAdmonition']);
|
|
353
353
|
/** Tokens that contribute nothing a reader would want to see in a search hit. */
|
|
354
354
|
const PREVIEW_SKIPS = new Set(['space', 'hr', 'code', 'docFigure']);
|
|
355
|
-
/** A fence's info string, as words: ` ```pipeline core:spec/respond ` → two. */
|
|
355
|
+
/** A fence's info string, as words: ` ```pipeline core:spec/chat-respond ` → two. */
|
|
356
356
|
function infoWords(lang) {
|
|
357
357
|
return String(lang ?? '')
|
|
358
358
|
.trim()
|
package/dist/manifest.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import type { DocsSource } from './types.js';
|
|
11
11
|
export interface SourcePage {
|
|
12
12
|
source: DocsSource;
|
|
13
|
-
/** Path inside the source, posix, e.g. 'pipelines/
|
|
13
|
+
/** Path inside the source, posix, e.g. 'pipelines/core_spec_chat-respond.md'. */
|
|
14
14
|
path: string;
|
|
15
15
|
/** Slug without the source's prefix — what `order` is written in. */
|
|
16
16
|
bareSlug: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -33,12 +33,12 @@ export interface DocsSource {
|
|
|
33
33
|
group: string;
|
|
34
34
|
/** Either a directory of markdown files… */
|
|
35
35
|
dir?: string;
|
|
36
|
-
/** …or pre-rendered markdown pages (e.g. from @serene-pub/cli renderAnnouncementDocs). `path` is like 'pipelines/
|
|
36
|
+
/** …or pre-rendered markdown pages (e.g. from @serene-pub/cli renderAnnouncementDocs). `path` is like 'pipelines/core_spec_chat-respond.md'. */
|
|
37
37
|
pages?: {
|
|
38
38
|
path: string;
|
|
39
39
|
markdown: string;
|
|
40
40
|
}[];
|
|
41
|
-
/** Slug prefix for every page of this source, e.g. 'sdk' → slug 'sdk/pipelines/
|
|
41
|
+
/** Slug prefix for every page of this source, e.g. 'sdk' → slug 'sdk/pipelines/core_spec_chat-respond'. Omit for none. */
|
|
42
42
|
prefix?: string;
|
|
43
43
|
/**
|
|
44
44
|
* Explicit reading order of slugs (without prefix). A page absent from it is
|
|
@@ -165,7 +165,7 @@ export interface DocsManifest {
|
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
export interface DocsPageMeta {
|
|
168
|
-
/** 'getting-started' or 'sdk/pipelines/
|
|
168
|
+
/** 'getting-started' or 'sdk/pipelines/core_spec_chat-respond'. */
|
|
169
169
|
slug: string;
|
|
170
170
|
/** First H1, else slug. */
|
|
171
171
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serene-pub/docs",
|
|
3
|
-
"version": "0.6.0-pr-
|
|
3
|
+
"version": "0.6.0-pr-4",
|
|
4
4
|
"description": "Serene Pub's docs compiler: markdown sources plus rendered announcement pages in, a manifest, a search index and one HTML file per page out.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/SerenePub/serene-pub-sdk/tree/main/docs#readme",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"shiki": "^4.4.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@serene-pub/sdk": "^0.6.0-pr-
|
|
54
|
+
"@serene-pub/sdk": "^0.6.0-pr-4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"@serene-pub/sdk": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@serene-pub/sdk": "0.6.0-pr-
|
|
62
|
+
"@serene-pub/sdk": "0.6.0-pr-4"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public",
|