Skip to content

Commit

Permalink
Bento docs: split Example and Import via script sections
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbenz committed Nov 18, 2021
1 parent 42cb39b commit 5f87c83
Show file tree
Hide file tree
Showing 17 changed files with 170 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extensions/amp-accordion/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ defineBentoAccordion();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-accordion-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-accordion-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-accordion-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-base-carousel/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoBaseCarousel();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-base-carousel-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-base-carousel-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-base-carousel-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-embedly-card/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ defineBentoEmbedlyCard();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-embedly-card-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-embedly-card-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-embedly-card-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-facebook/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoFacebook();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-facebook-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-facebook-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-facebook-1.0.css"/>
```

### Example

##### Embed a Facebook Post

<!--% example %-->
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-fit-text/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ defineBentoFitText();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-fit-text-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-fit-text-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-fit-text-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-iframe/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ defineBentoIframe();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-iframe-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-iframe-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-iframe-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-inline-gallery/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoInlineGallery();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-inline-gallery-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-inline-gallery-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-inline-gallery-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-instagram/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoInstagram();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-instagram-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-instagram-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-instagram-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-jwplayer/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoJwplayer();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-jwplayer-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-jwplayer-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-jwplayer-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-mathml/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoMathml();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-mathml-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-mathml-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-mathml-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-selector/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoSelector();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-selector-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-selector-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-selector-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-sidebar/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoSidebar();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-sidebar-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-sidebar-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-sidebar-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-social-share/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ defineBentoSocialShare();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-social-share-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-social-share-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-social-share-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-soundcloud/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoSoundcloud();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-soundcloud-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-soundcloud-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-soundcloud-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-stream-gallery/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ defineBentoStreamGallery();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-stream-gallery-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-stream-gallery-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-stream-gallery-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-twitter/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoTwitters();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-twitter-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-twitter-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-twitter-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down
10 changes: 10 additions & 0 deletions extensions/amp-wordpress-embed/1.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ defineBentoWordpressEmbed();

### Include via `<script>`

```html
<script type="module" src="https://cdn.ampproject.org/bento.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/bento.js"></script>
<script type="module" src="https://cdn.ampproject.org/v0/bento-wordpress-embed-1.0.mjs"></script>
<script type="nomodule" src="https://cdn.ampproject.org/v0/bento-wordpress-embed-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.ampproject.org/v0/bento-wordpress-embed-1.0.css"/>
```

### Example

<!--% example %-->

```html
Expand Down

0 comments on commit 5f87c83

Please sign in to comment.