You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates API docs infra to accommodate API changes in the library. Most
notably: custom transformation logic now targets
[mdast](https://github.com/syntax-tree/mdast) directly, rather than the
bespoke documentation tree representation that has been removed from the
library.
Also picks up some misc. fixes for API docs generation that have been
made in the documenter library.
"This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.",
50
+
/* title: */"This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.",
48
51
);
49
52
50
53
/**
51
54
* A special use notice for the "@sealed" tag.
52
55
*/
53
-
constsealedNotice=newAdmonitionNode(
56
+
constsealedNotice=createAdmonition(
54
57
[
55
-
newParagraphNode([
56
-
newPlainTextNode(
57
-
'This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.',
58
-
),
59
-
]),
58
+
{
59
+
type: "paragraph",
60
+
children: [
61
+
{
62
+
type: "text",
63
+
value: 'This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.',
64
+
},
65
+
],
66
+
},
60
67
],
61
68
/* admonitionKind: */"info",
62
-
"Sealed",
69
+
/* title: */"Sealed",
63
70
);
64
71
65
72
/**
66
73
* A special use notice for the "@input" tag.
67
74
*/
68
-
constinputNotice=newAdmonitionNode(
75
+
constinputNotice=createAdmonition(
69
76
[
70
-
newParagraphNode([
71
-
newPlainTextNode(
72
-
'This type is "input," meaning that code outside of the library defining it should not read from it. Future versions of this type may add optional members or make typing of members more general.',
73
-
),
74
-
]),
77
+
{
78
+
type: "paragraph",
79
+
children: [
80
+
{
81
+
type: "text",
82
+
value: 'This type is "input," meaning that code outside of the library defining it should not read from it. Future versions of this type may add optional members or make typing of members more general.',
83
+
},
84
+
],
85
+
},
75
86
],
76
87
/* admonitionKind: */"info",
77
-
"Input",
88
+
/* title: */"Input",
78
89
);
79
90
80
91
/**
@@ -104,28 +115,29 @@ function createSupportNotice(apiItem, isImportable) {
104
115
* @param {string} importSubpath - Subpath beneath the item's package through which the item can be imported.
105
116
* @param {string} admonitionTitle - Title to display for the admonition.
* @returns An array of sections describing the layout. See {@link @fluid-tools/api-markdown-documenter#ApiItemTransformationConfiguration.createDefaultLayout}.
@@ -224,12 +236,12 @@ export function layoutContent(apiItem, itemSpecificContent, config) {
224
236
225
237
/**
226
238
* Adds node (if not undefined) to `sections`, wrapping in a `SectionNode` if not already a `SectionNode`.
227
-
* @param {DocumentationNode | undefined} node - The node to add to `sections`.
239
+
* @param {Section | BlockContent | undefined} node - The node to add to `sections`.
228
240
* @returns true if the node was added, false otherwise.
0 commit comments