GoogleChrome / webdev-infra

Apache License 2.0
37 stars 28 forks source link

feat: implement a shared Glitch shortcode #68

Open mamieorine opened 1 year ago

mamieorine commented 1 year ago

Resolves #64

The Glitch shortcode on both d.d.c and web.dev have the same design and code structure. So, this shortcode can be moved into webdev-infra so it will be a shared shortcode which can be used by both d.c.c and web.dev.

Changes in this pull request:

Usages:

{% Glitch {
  id: 'tabindex-zero',
  path: 'index.html',
  previewSize: 0,
  allow: []
} %}

{% Glitch 'tabindex-zero' %}

mamieorine commented 1 year ago

@matthiasrohmer I have tested a shared Glitch shortcode with web.dev and d.c.c, it works fine with both site.

The results of testing a shortcode with both web.dev and d.c.c. are shown below: