Get more widgets showing in docs

This commit is contained in:
nathan 2023-09-27 14:07:41 -06:00
parent 54b38cab8c
commit db99c1bb2c
4 changed files with 14 additions and 5 deletions

View File

@ -163,8 +163,13 @@
{% for event in component.events %}
<tr>
<td data-flavor="html"><code class="nowrap">{{ event.name }}</code></td>
<td data-flavor="react"><code class="nowrap">{{ event.reactName }}</code></td>
<td>{{ event.description | markdownInline | safe }}</td>
<td>
{% if event.description %}
{{ event.description | markdownInline | safe }}
{% else %}
EVENT NEEDS A DESCRIPTION
{% endif %}
</td>
<td>
{% if event.type.text %}
<code>{{ event.type.text }}</code>

View File

@ -24,9 +24,13 @@
<li><em><a href="/components/sandbox">Sandbox</a></em></li>
{% for component in meta.components %}
<li>
{% if component.tagName %}
<a href="/components/{{ component.tagName | removeSlPrefix }}">
{{ component.name | classNameToComponentName }}
</a>
{% else %}
{{ component.name }}
{% endif %}
</li>
{% endfor %}
</ul>

View File

@ -22,8 +22,8 @@ module.exports.getAllComponents = function ()
declaration.path = module.path.replace(/^src\//, 'dist/').replace(/\.ts$/, '.js');
// Remove members that are private or don't have a description
const members = declaration.members?.filter(member => member.description && member.privacy !== 'private');
const methods = members?.filter(prop => prop.kind === 'method' && prop.privacy !== 'private');
const members = declaration.members?.filter(member => member.description && member.privacy !== 'private') || [];
const methods = members?.filter(prop => prop.kind === 'method' && prop.privacy !== 'private') || [];
const properties = members?.filter(prop =>
{
// Look for a corresponding attribute

View File

@ -26,7 +26,7 @@ function replace(string, terms)
}
export default {
globs: ["api/js/etemplate/**/Et2[!DFILST]*/*.ts"], // There's something wrong with some widgets, they break the parser
globs: ["api/js/etemplate/**/Et2[!DIL]*/*.ts"], // There's something wrong with some widgets, they break the parser
/** Globs to exclude */
exclude: ["*Date*"],//, 'et2_*.ts', '**/test/*', '**/*.styles.ts', '**/*.test.ts'],
dev: true,