Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(icon): remove sets demo #2088

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions docs/_includes/layouts/pages/element.11ty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -897,16 +897,24 @@ export default class ElementsPage extends Renderer<Context> {

async #renderPlaygrounds(ctx: Context, entries: FileEntry[]) {
const common = await this.#renderPlaygroundsCommon(ctx, entries);
return entries.map(([filename, config]) => this.#renderPlayground(
filename,
config,
ctx,
common,
entries
.filter(([, config]) => config.inline === filename)
.map(([s]) => s)

));
const { tagName } = ctx;
const iconAlert = (tagName !== 'rh-icon') ? '' : html`<rh-alert state="info">
<h2 slot="header">Looking for the icons?</h2>
<p> Head over to our <a href="/foundations/iconography/">Foundations: Iconography</a> page to explore the full collection.</p>
</rh-alert>
`;
return [
iconAlert,
entries.map(([filename, config]) => this.#renderPlayground(
filename,
config,
ctx,
common,
entries
.filter(([, config]) => config.inline === filename)
.map(([s]) => s)
)),
].join('');
};

#renderPlayground(
Expand Down
118 changes: 0 additions & 118 deletions elements/rh-icon/demo/sets.html

This file was deleted.

Loading