move slots up and add parens to methods

pull/1050/head
Cory LaViska 2022-12-06 11:17:48 -05:00
rodzic ce86a1c9f2
commit 2dd57956d5
1 zmienionych plików z 13 dodań i 12 usunięć

Wyświetl plik

@ -110,7 +110,7 @@
.map( .map(
method => ` method => `
<tr> <tr>
<td class="nowrap"><code>${escapeHtml(method.name)}</code></td> <td class="nowrap"><code>${escapeHtml(method.name)}()</code></td>
<td>${escapeHtml(method.description)}</td> <td>${escapeHtml(method.description)}</td>
<td> <td>
${ ${
@ -283,6 +283,7 @@
.replace(/>/g, '&gt;') .replace(/>/g, '&gt;')
.replace(/"/g, '&quot;') .replace(/"/g, '&quot;')
.replace(/'/g, '&apos;') .replace(/'/g, '&apos;')
.replace(/\[(.*?)\]\((.*?)\)/g, '<a href="$2" rel="noopener noreferrer" target="_blank">$1</a>')
.replace(/`(.*?)`/g, '<code>$1</code>'); .replace(/`(.*?)`/g, '<code>$1</code>');
} }
@ -484,12 +485,21 @@
`; `;
} }
if (component.slots?.length) {
result += `
## Slots
${createSlotsTable(component.slots)}
_Learn more about [using slots](/getting-started/usage#slots)._
`;
}
if (props?.length) { if (props?.length) {
result += ` result += `
## Properties ## Attributes & Properties
${createPropsTable(props)} ${createPropsTable(props)}
_Learn more about [properties and attributes](/getting-started/usage#properties)._ _Learn more about [attributes and properties](/getting-started/usage#properties)._
`; `;
} }
@ -512,15 +522,6 @@
`; `;
} }
if (component.slots?.length) {
result += `
## Slots
${createSlotsTable(component.slots)}
_Learn more about [using slots](/getting-started/usage#slots)._
`;
}
if (component.cssProperties?.length) { if (component.cssProperties?.length) {
result += ` result += `
## CSS Custom Properties ## CSS Custom Properties