Skip to content

Commit

Permalink
docs: fix band shortcode (#2674)
Browse files Browse the repository at this point in the history
Closes #2667
  • Loading branch information
bennypowers authored Jan 22, 2024
1 parent 0d92145 commit 5c40983
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 325 deletions.
37 changes: 0 additions & 37 deletions docs/_includes/cem/attributes.njk

This file was deleted.

6 changes: 0 additions & 6 deletions docs/_includes/cem/band.njk

This file was deleted.

76 changes: 0 additions & 76 deletions docs/_includes/cem/css-custom-properties.njk

This file was deleted.

27 changes: 0 additions & 27 deletions docs/_includes/cem/css-shadow-parts.njk

This file was deleted.

32 changes: 0 additions & 32 deletions docs/_includes/cem/events.njk

This file was deleted.

27 changes: 0 additions & 27 deletions docs/_includes/cem/install.njk

This file was deleted.

28 changes: 0 additions & 28 deletions docs/_includes/cem/methods.njk

This file was deleted.

19 changes: 0 additions & 19 deletions docs/_includes/cem/overview.njk

This file was deleted.

39 changes: 0 additions & 39 deletions docs/_includes/cem/properties.njk

This file was deleted.

32 changes: 0 additions & 32 deletions docs/_includes/cem/slots.njk

This file was deleted.

4 changes: 2 additions & 2 deletions docs/_plugins/cem-render.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function stringifyParams(method) {
`${p.name}: ${p.type?.text ?? 'unknown'}`).join(', ') ?? '';
}

function renderBand(content, { level } = {}) {
function renderBand(content, { level, header = '' } = {}) {
return html`
<section class="band">
${mdHeading(content, { level })}
${header && mdHeading(header, { level })}
${innerMD(content)}
</section>`;
}
Expand Down

0 comments on commit 5c40983

Please sign in to comment.