@salesforcedevs/docs-components 0.64.2-reference-attributes-1 → 0.64.2-test1
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/package.json
CHANGED
|
@@ -363,6 +363,21 @@ export default class AmfReference extends LightningElement {
|
|
|
363
363
|
return parentReferenceIndex !== -1;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
+
/**
|
|
367
|
+
* Expands the children of Markdown-based References.
|
|
368
|
+
*/
|
|
369
|
+
private expandChildrenForMarkdownReferences(
|
|
370
|
+
children: ParsedMarkdownTopic[]
|
|
371
|
+
) {
|
|
372
|
+
if (!children) {
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
for (const childNode of children) {
|
|
376
|
+
childNode.isExpanded = true;
|
|
377
|
+
this.expandChildrenForMarkdownReferences(childNode.children);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
366
381
|
/**
|
|
367
382
|
* Populates reference Items from amfConfigList and assigns it to navigation for sidebar
|
|
368
383
|
*/
|
|
@@ -383,6 +398,15 @@ export default class AmfReference extends LightningElement {
|
|
|
383
398
|
}
|
|
384
399
|
isChildrenLoading = true;
|
|
385
400
|
} else {
|
|
401
|
+
const isExpandChildrenEnabled = this.isExpandChildrenEnabled(
|
|
402
|
+
amfConfig.id
|
|
403
|
+
);
|
|
404
|
+
// check whether we should expand all the child nodes, this is required for Coveo to crawl.
|
|
405
|
+
if (isExpandChildrenEnabled) {
|
|
406
|
+
this.expandChildrenForMarkdownReferences(
|
|
407
|
+
amfConfig.topic.children
|
|
408
|
+
);
|
|
409
|
+
}
|
|
386
410
|
navItemChildren = amfConfig.topic.children;
|
|
387
411
|
}
|
|
388
412
|
// store nav items for each spec in order
|
|
@@ -78,8 +78,8 @@ api-security-documentation {
|
|
|
78
78
|
--arc-font-h3-margin: var(--amf-h8-margin);
|
|
79
79
|
|
|
80
80
|
/* p */
|
|
81
|
-
--arc-font-body1-font-size: var(--dx-g-text-
|
|
82
|
-
--arc-font-body1-line-height: var(--dx-g-spacing-
|
|
81
|
+
--arc-font-body1-font-size: var(--dx-g-text-base);
|
|
82
|
+
--arc-font-body1-line-height: var(--dx-g-spacing-lg);
|
|
83
83
|
|
|
84
84
|
/* code */
|
|
85
85
|
--arc-font-code-family: var(--dx-g-font-mono);
|
|
@@ -133,14 +133,33 @@ api-security-documentation {
|
|
|
133
133
|
/* api */
|
|
134
134
|
--api-parameters-document-title-border: 0;
|
|
135
135
|
--api-body-document-title-border: 0;
|
|
136
|
-
--api-type-document-
|
|
136
|
+
--api-type-document-property-parent-color: rgb(112, 110, 107);
|
|
137
|
+
--api-type-document-property-title-font-family: var(--dx-g-font-sans);
|
|
138
|
+
--api-type-document-property-title-font-size: var(--dx-g-text-base);
|
|
139
|
+
--api-type-document-property-title-font-weight: var(--dx-g-font-bold);
|
|
140
|
+
--api-type-document-property-title-color: var(--dx-g-blue-vibrant-20);
|
|
141
|
+
--api-type-document-type-font-family: var(--dx-g-font-mono);
|
|
142
|
+
--api-type-document-type-background-color: var(--dx-g-gray-95);
|
|
143
|
+
--api-type-document-type-color: rgb(24, 24, 24);
|
|
144
|
+
--api-type-document-type-attribute-color: rgb(24, 24, 24);
|
|
145
|
+
--api-type-document-trait-font-family: var(--dx-g-font-mono);
|
|
146
|
+
--api-type-document-trait-color: rgb(24, 24, 24);
|
|
147
|
+
--api-type-document-trait-padding: 0 var(--dx-g-spacing-xs);
|
|
148
|
+
--api-type-document-trait-data-type-padding: 0 var(--dx-g-spacing-xs);
|
|
149
|
+
--api-type-document-trait-font-size: var(--dx-g-text-sm);
|
|
150
|
+
--api-type-document-trait-border-radius: var(--dx-g-spacing-xs);
|
|
151
|
+
--api-type-document-trait-background-color: var(--dx-g-gray-95);
|
|
137
152
|
--api-type-document-union-button-active-background-color: transparent;
|
|
138
153
|
--api-type-document-union-button-active-color: var(--dx-g-blue-vibrant-20);
|
|
139
154
|
--api-type-document-union-button-background-color: transparent;
|
|
140
155
|
--api-type-document-union-button-color: var(--dx-g-blue-vibrant-50);
|
|
141
156
|
--api-type-document-media-button-border-color: transparent;
|
|
142
157
|
--property-shape-document-padding: 24px 0;
|
|
143
|
-
--property-shape-document-title-font-family: var(--dx-g-font-
|
|
158
|
+
--property-shape-document-title-font-family: var(--dx-g-font-sans);
|
|
159
|
+
--property-shape-document-title-font-size: var(--dx-g-text-base);
|
|
160
|
+
--property-shape-document-title-font-weight: var(--dx-g-font-bold);
|
|
161
|
+
--property-shape-document-title-line-height: 20px;
|
|
162
|
+
--property-shape-document-title-margin: 8px 0 8px 0;
|
|
144
163
|
--property-shape-document-object-color: var(--dx-g-blue-vibrant-90);
|
|
145
164
|
--property-shape-document-array-color: var(--dx-g-blue-vibrant-90);
|
|
146
165
|
--property-shape-document-union-color: var(--dx-g-blue-vibrant-90);
|