Skip to content

Commit 08bfddf

Browse files
thetaPCShaneK
andauthored
chore(docusaurus): enable faster (#4619)
Resolves internal Co-authored-by: Shane <561207+ShaneK@users.noreply.github.com>
1 parent 76e2700 commit 08bfddf

21 files changed

Lines changed: 1431 additions & 683 deletions

File tree

‎.prettierignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ docs/api
77
docs/native
88
versioned_docs/version-v*/native
99
docs/cli/commands
10+
# Each definition in these files is one line of prose inside a JSX <section>.
11+
# Prettier's mdx parser reflows those children and moves link text onto its own
12+
# line, which MDX then wraps in a paragraph, rendering invalid HTML such as
13+
# <a><p>Android SDK</p></a>. Formatting these files reintroduces that markup.
1014
docs/reference/glossary.md
15+
versioned_docs/version-v*/reference/glossary.md
1116

1217
static/code/stackblitz
1318

‎babel.config.js‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎docs/angular/slides.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ From there, we just have to replace `ion-slides` elements with `swiper-container
7171

7272
By default, make sure you import the `register` function from `swiper/element/bundle`. This uses the bundled version of Swiper, which automatically includes all modules and stylesheets needed to run Swiper's various features.
7373

74-
If you would like to use the Core version instead, which does not include additional modules automatically, see <a href="https://swiperjs.com/element#core-version-and-modules" target="_blank" rel="noopener noreferrer">https://swiperjs.com/element#core-version-and-modules</a>. The rest of this migration guide will assume you are using the bundled version.
74+
If you would like to use the Core version instead, which does not include additional modules automatically, refer to <a href="https://swiperjs.com/element#core-version-and-modules" target="_blank" rel="noopener noreferrer">Swiper's core version and modules documentation</a>. The rest of this migration guide will assume you are using the bundled version.
7575

7676
## Swiping with Style
7777

@@ -93,7 +93,7 @@ If you were using the CSS custom properties found on `ion-slides`, below is a li
9393
| `--scroll-bar-background` | `--swiper-scrollbar-bg-color` |
9494
| `--scroll-bar-background-active` | `--swiper-scrollbar-drag-bg-color` |
9595

96-
For additional custom CSS, because Swiper Element uses Shadow DOM encapsulation, styles will need to be injected into the Shadow DOM scope. See <a href="https://swiperjs.com/element#injecting-styles" target="_blank" rel="noopener noreferrer">https://swiperjs.com/element#injecting-styles</a> for instructions.
96+
For additional custom CSS, because Swiper Element uses Shadow DOM encapsulation, styles will need to be injected into the Shadow DOM scope. Refer to <a href="https://swiperjs.com/element#injecting-styles" target="_blank" rel="noopener noreferrer">Swiper's guide on injecting styles</a> for instructions.
9797

9898
### Additional `ion-slides` Styles
9999

@@ -227,7 +227,7 @@ Below is a full list of property changes when going from `ion-slides` to Swiper
227227
| pager | Use the `pagination` property instead. |
228228

229229
:::note
230-
All properties available in Swiper Element can be found at <a href="https://swiperjs.com/swiper-api#parameters" target="_blank" rel="noopener noreferrer">https://swiperjs.com/swiper-api#parameters</a>.
230+
All properties available in Swiper Element can be found in the <a href="https://swiperjs.com/swiper-api#parameters" target="_blank" rel="noopener noreferrer">Swiper API parameters documentation</a>.
231231
:::
232232

233233
## Events
@@ -276,7 +276,7 @@ Below is a full list of event name changes when going from `ion-slides` to Swipe
276276
| `ionSlidesDidLoad` | `swiperinit` |
277277

278278
:::note
279-
All events available in Swiper Element can be found at <a href="https://swiperjs.com/swiper-api#events" target="_blank" rel="noopener noreferrer">https://swiperjs.com/swiper-api#events</a> and should be lowercased and prefixed with the word `swiper`.
279+
All events available in Swiper Element can be found in the <a href="https://swiperjs.com/swiper-api#events" target="_blank" rel="noopener noreferrer">Swiper API events documentation</a> and should be lowercased and prefixed with the word `swiper`.
280280
:::
281281

282282
## Methods
@@ -328,7 +328,7 @@ Below is a full list of method changes when going from `ion-slides` to Swiper El
328328
| `stopAutoplay()` | Use the `autoplay` property instead. |
329329

330330
:::note
331-
All methods and properties available on the Swiper instance can be found at <a href="https://swiperjs.com/swiper-api#methods-and-properties" target="_blank" rel="noopener noreferrer">https://swiperjs.com/swiper-api#methods-and-properties</a>.
331+
All methods and properties available on the Swiper instance can be found in the <a href="https://swiperjs.com/swiper-api#methods-and-properties" target="_blank" rel="noopener noreferrer">Swiper API methods and properties documentation</a>.
332332
:::
333333

334334
## Effects
@@ -340,7 +340,7 @@ Effects such as Cube or Fade can be used in Swiper Element with no additional im
340340
```
341341

342342
:::note
343-
For more information on effects in Swiper, please see <a href="https://swiperjs.com/swiper-api#fade-effect" target="_blank" rel="noopener noreferrer">https://swiperjs.com/swiper-api#fade-effect</a>.
343+
For more information on effects in Swiper, please refer to the <a href="https://swiperjs.com/swiper-api#fade-effect" target="_blank" rel="noopener noreferrer">Swiper API fade effect documentation</a>.
344344
:::
345345

346346
## Wrap Up
@@ -361,6 +361,6 @@ If you are running into issues with the migration, please create a post on the [
361361

362362
Before opening an issue, please consider creating a post on the <a href="https://github.com/nolimits4web/swiper/discussions" target="_blank" rel="noopener noreferrer">Swiper Discussion Board</a> or the <a href="https://forum.ionicframework.com" target="_blank">Ionic Forum</a> to see if your issue can be resolved by the community.
363363

364-
If you are running into problems with the Swiper library, new bugs should be filed on the Swiper repo: <a href="https://github.com/nolimits4web/swiper/issues" target="_blank" rel="noopener noreferrer">https://github.com/nolimits4web/swiper/issues</a>
364+
If you are running into problems with the Swiper library, new bugs should be filed on the <a href="https://github.com/nolimits4web/swiper/issues" target="_blank" rel="noopener noreferrer">Swiper issue tracker</a>.
365365

366-
If you are running into problems with the `IonicSlides` module, new bugs should be filed on the Ionic Framework repo: <a href="https://github.com/ionic-team/ionic-framework/issues" target="_blank" rel="noopener noreferrer">https://github.com/ionic-team/ionic-framework/issues</a>
366+
If you are running into problems with the `IonicSlides` module, new bugs should be filed on the <a href="https://github.com/ionic-team/ionic-framework/issues" target="_blank" rel="noopener noreferrer">Ionic Framework issue tracker</a>.

‎docs/components.md‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ Ionic apps are made of high-level building blocks called Components, which allow
4949
</DocsCard>
5050

5151
<DocsCard header="Card" href="api/card" icon="/icons/component-card-icon.png">
52-
<p>
53-
Cards are a great way to display an important piece of content, and can contain images, buttons, text, and more.
54-
</p>
52+
Cards are a great way to display an important piece of content, and can contain images, buttons, text, and more.
5553
</DocsCard>
5654

5755
<DocsCard header="Checkbox" href="api/checkbox" icon="/icons/component-checkbox-icon.png">
@@ -91,21 +89,17 @@ Ionic apps are made of high-level building blocks called Components, which allow
9189
</DocsCard>
9290

9391
<DocsCard header="Item" href="api/item" img="/icons/feature-component-item-icon.png">
94-
<p>
95-
Items are elements that can contain text, icons, avatars, images, inputs, and any other native or custom elements.
96-
Items can be swiped, deleted, reordered, edited, and more.
97-
</p>
92+
Items are elements that can contain text, icons, avatars, images, inputs, and any other native or custom elements.
93+
Items can be swiped, deleted, reordered, edited, and more.
9894
</DocsCard>
9995

10096
<DocsCard header="List" href="api/list" icon="/icons/component-lists-icon.png">
10197
<p>Lists can display rows of information, such as a contact list, playlist, or menu.</p>
10298
</DocsCard>
10399

104100
<DocsCard header="Media" href="api/avatar" icon="/icons/component-media-icon.png">
105-
<p>
106-
A collection of media components, including avatars, icons, images, and thumbnails, designed to enhance visual
107-
content.
108-
</p>
101+
A collection of media components, including avatars, icons, images, and thumbnails, designed to enhance visual
102+
content.
109103
</DocsCard>
110104

111105
<DocsCard header="Menu" href="api/menu" icon="/icons/component-menu-icon.png">

‎docs/contributing/coc.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ We promise to extend courtesy and respect to everyone involved in this project r
88

99
If any member of the community violates this code of conduct, the maintainers of the Ionic project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.
1010

11-
If you are subject to or witness unacceptable behavior, or have any other concerns, please email us at <a href="mailto:devrel@ionic.io">devrel@ionic.io</a>.
11+
If you are subject to or witness unacceptable behavior, or have any other concerns, please email us at devrel@ionic.io.
1212

1313
Please click <a href="https://ionic.io/code-of-conduct" target="_blank" rel="noopener">here</a> to review to Ionic's full code of conduct.

‎docs/javascript/overview.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ $ npm run dev █
5353
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript"
5454
icon="/icons/logo-javascript-icon.png"
5555
>
56-
<p>
57-
Learn more about JavaScript's core concepts, tools, and best practices from the official JavaScript documentation.
58-
</p>
56+
Learn more about JavaScript's core concepts, tools, and best practices from the official JavaScript documentation.
5957
</DocsCard>
6058

6159
<DocsCard header="Navigation" href="/docs/api/router" icon="/icons/component-navigation-icon.png">

‎docs/react/slides.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export default Home;
257257
```
258258

259259
:::note
260-
See <a href="https://swiperjs.com/react#usage" target="_blank" rel="noopener noreferrer">https://swiperjs.com/react#usage</a> for a full list of modules.
260+
Refer to <a href="https://swiperjs.com/react#usage" target="_blank" rel="noopener noreferrer">Swiper's React usage documentation</a> for a full list of modules.
261261
:::
262262

263263
## The IonicSlides Module
@@ -356,7 +356,7 @@ Below is a full list of property changes when going from `IonSlides` to Swiper R
356356
| scrollbar | You can continue to use the `scrollbar` property, just be sure to install the Scrollbar module first. |
357357

358358
:::note
359-
All properties available in Swiper React can be found at <a href="https://swiperjs.com/react#swiper-props" target="_blank" rel="noopener noreferrer">https://swiperjs.com/react#swiper-props</a>.
359+
All properties available in Swiper React can be found in the <a href="https://swiperjs.com/react#swiper-props" target="_blank" rel="noopener noreferrer">Swiper React props documentation</a>.
360360
:::
361361

362362
## Events
@@ -413,7 +413,7 @@ Below is a full list of event name changes when going from `IonSlides` to Swiper
413413
| `onIonSlidesDidLoad` | `onInit` |
414414

415415
:::note
416-
All events available in Swiper can be found at <a href="https://swiperjs.com/swiper-api#events" target="_blank" rel="noopener noreferrer">https://swiperjs.com/swiper-api#events</a>.
416+
All events available in Swiper can be found in the <a href="https://swiperjs.com/swiper-api#events" target="_blank" rel="noopener noreferrer">Swiper API events documentation</a>.
417417
:::
418418

419419
## Methods
@@ -545,7 +545,7 @@ export default Home;
545545
```
546546

547547
:::note
548-
For more information on effects in Swiper, please see <a href="https://swiperjs.com/react#effects" target="_blank" rel="noopener noreferrer">https://swiperjs.com/react#effects</a>.
548+
For more information on effects in Swiper, please refer to the <a href="https://swiperjs.com/react#effects" target="_blank" rel="noopener noreferrer">Swiper React effects documentation</a>.
549549
:::
550550

551551
## Wrap Up
@@ -566,6 +566,6 @@ If you are running into issues with the migration, please create a post on the [
566566

567567
Before opening an issue, please consider creating a post on the <a href="https://github.com/nolimits4web/swiper/discussions" target="_blank" rel="noopener noreferrer">Swiper Discussion Board</a> or the <a href="https://forum.ionicframework.com" target="_blank">Ionic Forum</a> to see if your issue can be resolved by the community.
568568

569-
If you are running into problems with the Swiper library, new bugs should be filed on the Swiper repo: <a href="https://github.com/nolimits4web/swiper/issues" target="_blank" rel="noopener noreferrer">https://github.com/nolimits4web/swiper/issues</a>
569+
If you are running into problems with the Swiper library, new bugs should be filed on the <a href="https://github.com/nolimits4web/swiper/issues" target="_blank" rel="noopener noreferrer">Swiper issue tracker</a>.
570570

571-
If you are running into problems with the `IonicSlides` module, new bugs should be filed on the Ionic Framework repo: <a href="https://github.com/ionic-team/ionic-framework/issues" target="_blank" rel="noopener noreferrer">https://github.com/ionic-team/ionic-framework/issues</a>
571+
If you are running into problems with the `IonicSlides` module, new bugs should be filed on the <a href="https://github.com/ionic-team/ionic-framework/issues" target="_blank" rel="noopener noreferrer">Ionic Framework issue tracker</a>.

0 commit comments

Comments
 (0)