Skip to content

Commit 17b233c

Browse files
committed
Use self-closing Codepen tags
1 parent 7ac4f39 commit 17b233c

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed

docs/developing/keyboard.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ For a list of accepted values, see the <a href="https://developer.mozilla.org/en
9090

9191
import Codepen from '@site/src/components/Codepen';
9292

93-
<Codepen user="ionic" slug="abvJVVv" height="400"></Codepen>
93+
<Codepen user="ionic" slug="abvJVVv" height="400" />
9494

9595
> The `inputmode` attribute is supported on devices running Chrome 66+ and iOS Safari 12.2+: https://caniuse.com/#search=inputmode
9696
@@ -153,7 +153,7 @@ For a list of accepted values, see the <a href="https://html.spec.whatwg.org/dev
153153
</Tabs>
154154
````
155155

156-
<Codepen user="ionic" slug="GRpWyRB" height="350"></Codepen>
156+
<Codepen user="ionic" slug="GRpWyRB" height="350" />
157157

158158
> The `enterkeyhint` attribute is supported on devices running Chrome 77+ and iOS Safari 13.4+.
159159

docs/theming/dark-mode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function toggleDarkTheme(shouldAdd) {
8080
import Codepen from '@site/src/components/Codepen';
8181

8282
<!-- Codepen https://codepen.io/ionic/pen/jONzJpG -->
83-
<Codepen preview="false" user="ionic" slug="jONzJpG" height="550px" default-tab="js,result"></Codepen>
83+
<Codepen preview="false" user="ionic" slug="jONzJpG" height="550px" default-tab="js,result" />
8484

8585
### Manually Toggle Dark Mode
8686

@@ -112,7 +112,7 @@ function checkToggle(shouldCheck) {
112112
```
113113

114114
<!-- Codepen https://codepen.io/ionic/pen/zYOpQLj -->
115-
<Codepen preview="false" user="ionic" slug="zYOpQLj" height="600px" default-tab="js,result"></Codepen>
115+
<Codepen preview="false" user="ionic" slug="zYOpQLj" height="600px" default-tab="js,result" />
116116

117117
## Adjusting System UI Components
118118

docs/utilities/animations.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ By default, all Ionic Animations are paused until the `play` method is called.
206206

207207
import Codepen from '@site/src/components/Codepen';
208208

209-
<Codepen user="ionic" slug="bGbMojP"></Codepen>
209+
<Codepen user="ionic" slug="bGbMojP" />
210210

211211
## Keyframe Animations
212212

@@ -300,7 +300,7 @@ In the example above, the `.square` element will transition from a red backgroun
300300

301301
Each keyframe object contains an `offset` property. `offset` is a value between 0 and 1 that defines the keyframe step. Offset values must go in ascending order and cannot repeat.
302302

303-
<Codepen user="ionic" slug="YzKLEzR"></Codepen>
303+
<Codepen user="ionic" slug="YzKLEzR" />
304304

305305
## Grouped Animations
306306

@@ -506,7 +506,7 @@ const parent = createAnimation()
506506

507507
This example shows 3 child animations controlled by a single parent animation. Animations `squareA` and `squareB` inherit the parent animation's duration of 2000ms, but animation `squareC` has a duration of 5000ms since it was explicitly set.
508508

509-
<Codepen user="ionic" slug="oNvdogM" height="460"></Codepen>
509+
<Codepen user="ionic" slug="oNvdogM" height="460" />
510510

511511
## Before and After Hooks
512512

@@ -622,7 +622,7 @@ In this example, an inline opacity of 0.2 is set on the `.square` element prior
622622

623623
See [Methods](#methods) for a complete list of hooks.
624624

625-
<Codepen user="ionic" slug="BaBxmwo"></Codepen>
625+
<Codepen user="ionic" slug="BaBxmwo" />
626626

627627
## Chained Animations
628628

@@ -833,7 +833,7 @@ await squareC.play();
833833
</Tabs>
834834
````
835835

836-
<Codepen user="ionic" slug="MWgGrwX" height="460"></Codepen>
836+
<Codepen user="ionic" slug="MWgGrwX" height="460" />
837837

838838
## Gesture Animations
839839

@@ -1154,7 +1154,7 @@ const getStep = (ev): {
11541154

11551155
In this example we are creating a track along which we can drag the `.square` element. Our `animation` object will take care of moving the `.square` element either left or right, and our `gesture` object will instruct the `animation` object which direction to move in.
11561156

1157-
<Codepen user="ionic" slug="jONxzRL"></Codepen>
1157+
<Codepen user="ionic" slug="jONxzRL" />
11581158

11591159
## Preference-Based Animations
11601160

@@ -1256,7 +1256,7 @@ This method works in all supported browsers when creating animations for the fir
12561256

12571257
Safari does not currently support dynamically updating keyframe animations. For developers who need this kind of support in Safari, they can use [MediaQueryList.addListener()](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener).
12581258

1259-
<Codepen user="ionic" slug="JjjYVKj"></Codepen>
1259+
<Codepen user="ionic" slug="JjjYVKj" />
12601260

12611261
## Overriding Ionic Component Animations
12621262

@@ -1484,7 +1484,7 @@ export default defineComponent({
14841484
</Tabs>
14851485
````
14861486

1487-
<Codepen user="ionic" slug="ExapZBZ"></Codepen>
1487+
<Codepen user="ionic" slug="ExapZBZ" />
14881488

14891489

14901490
## Performance Considerations

docs/utilities/gestures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ In this example, our app listens for gestures on the `.rectangle` element. When
260260

261261
import Codepen from '@site/src/components/Codepen';
262262

263-
<Codepen user="ionic" slug="xxKBYdL"></Codepen>
263+
<Codepen user="ionic" slug="xxKBYdL" />
264264

265265
## Double Click Gesture
266266

@@ -433,7 +433,7 @@ const getRandomBackground = () => {
433433

434434
In the example above, we want to be able to detect double clicks on an element. By setting our `threshold` to `0`, we can ensure our gesture object can detect clicks. Additionally, we define a click threshold so that only 2 clicks that occur in quick succession count as a double click.
435435

436-
<Codepen user="ionic" slug="oNvVEwE"></Codepen>
436+
<Codepen user="ionic" slug="oNvVEwE" />
437437

438438
## Gesture Animations
439439

docusaurus.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,14 @@ module.exports = {
44
'Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards',
55
url: 'https://ionicframework.com',
66
baseUrl: '/docs/',
7-
/* TODO
87
i18n: {
98
defaultLocale: 'en',
10-
locales: ['en', 'es', 'fr', 'ja', 'pt', 'zh'],
9+
locales: ['en', 'es'],
1110
localeConfigs: {
1211
en: { label: 'English' },
1312
es: { label: 'Español' },
14-
fr: { label: 'Français' },
15-
ja: { label: '日本語' },
16-
pt: { label: 'Português' },
17-
zh: { label: '中文' },
1813
},
1914
},
20-
*/
2115
onBrokenLinks: 'warn',
2216
onBrokenMarkdownLinks: 'warn',
2317
favicon: 'img/favicon.png',

0 commit comments

Comments
 (0)