From 3d798d0afc113d4c38b1ac65c906aea8af72d3b4 Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Tue, 17 Nov 2026 16:32:29 -0800 Subject: [PATCH 1/3] docs: link to other docs by absolute path --- CONTRIBUTING.md | 2 + docs/angular/add-to-existing.mdx | 2 +- docs/angular/build-options.mdx | 4 +- docs/angular/navigation.mdx | 2 +- docs/angular/overview.mdx | 4 +- docs/angular/platform.mdx | 2 +- docs/angular/quickstart.mdx | 8 +- docs/angular/your-first-app.mdx | 8 +- .../your-first-app/2-taking-photos.mdx | 2 +- .../your-first-app/5-adding-mobile.mdx | 4 +- docs/angular/your-first-app/7-live-reload.mdx | 4 +- docs/angular/your-first-app/8-distribute.mdx | 2 +- docs/api/accordion-group.mdx | 2 +- docs/api/accordion.mdx | 6 +- docs/api/action-sheet.mdx | 2 +- docs/api/alert.mdx | 2 +- docs/api/app.mdx | 6 +- docs/api/back-button.mdx | 2 +- docs/api/breadcrumb.mdx | 2 +- docs/api/buttons.mdx | 6 +- docs/api/card-content.mdx | 2 +- docs/api/card-header.mdx | 4 +- docs/api/card-subtitle.mdx | 4 +- docs/api/card-title.mdx | 4 +- docs/api/card.mdx | 2 +- docs/api/col.mdx | 4 +- docs/api/content.mdx | 8 +- docs/api/datetime-button.mdx | 10 +-- docs/api/datetime.mdx | 8 +- docs/api/fab-button.mdx | 4 +- docs/api/fab-list.mdx | 4 +- docs/api/fab.mdx | 8 +- docs/api/footer.mdx | 2 +- docs/api/grid.mdx | 8 +- docs/api/header.mdx | 2 +- docs/api/img.mdx | 2 +- docs/api/infinite-scroll-content.mdx | 2 +- docs/api/input-password-toggle.mdx | 4 +- docs/api/input.mdx | 4 +- docs/api/item-divider.mdx | 2 +- docs/api/item-group.mdx | 2 +- docs/api/item-option.mdx | 4 +- docs/api/item-options.mdx | 4 +- docs/api/item-sliding.mdx | 8 +- docs/api/item.mdx | 16 ++-- docs/api/label.mdx | 2 +- docs/api/list-header.mdx | 4 +- docs/api/list.mdx | 4 +- docs/api/menu-button.mdx | 2 +- docs/api/menu-toggle.mdx | 2 +- docs/api/menu.mdx | 2 +- docs/api/modal.mdx | 6 +- docs/api/nav-link.mdx | 2 +- docs/api/nav.mdx | 2 +- docs/api/picker-column-option.mdx | 2 +- docs/api/picker-column.mdx | 2 +- docs/api/picker.mdx | 4 +- docs/api/radio-group.mdx | 2 +- docs/api/radio.mdx | 4 +- docs/api/refresher.mdx | 4 +- docs/api/reorder-group.mdx | 4 +- docs/api/reorder.mdx | 2 +- docs/api/route-redirect.mdx | 2 +- docs/api/route.mdx | 2 +- docs/api/router-link.mdx | 2 +- docs/api/router.mdx | 4 +- docs/api/row.mdx | 4 +- docs/api/segment-button.mdx | 2 +- docs/api/segment-content.mdx | 4 +- docs/api/segment-view.mdx | 2 +- docs/api/segment.mdx | 4 +- docs/api/select-option.mdx | 2 +- docs/api/select.mdx | 20 ++--- docs/api/tab-bar.mdx | 2 +- docs/api/tab-button.mdx | 4 +- docs/api/tab.mdx | 8 +- docs/api/tabs.mdx | 4 +- docs/api/textarea.mdx | 4 +- docs/api/title.mdx | 8 +- docs/api/toast.mdx | 12 +-- docs/api/toggle.mdx | 2 +- docs/api/toolbar.mdx | 14 ++-- docs/cli/configuration.mdx | 4 +- docs/cli/livereload.mdx | 2 +- docs/components.mdx | 76 +++++++++---------- docs/contributing/how-to-contribute.mdx | 2 +- docs/core-concepts/cross-platform.mdx | 8 +- docs/core-concepts/fundamentals.mdx | 12 +-- docs/core-concepts/webview.mdx | 8 +- docs/deployment/progressive-web-app.mdx | 8 +- docs/developing/config.mdx | 2 +- docs/developing/hardware-back-button.mdx | 2 +- docs/developing/managing-focus.mdx | 12 +-- docs/developing/previewing.mdx | 8 +- docs/developing/tips.mdx | 2 +- docs/index.mdx | 12 +-- docs/intro/cdn.mdx | 14 ++-- docs/intro/cli.mdx | 10 +-- docs/intro/environment.mdx | 8 +- docs/intro/next.mdx | 6 +- docs/javascript/overview.mdx | 2 +- docs/javascript/quickstart.mdx | 2 +- docs/layout/css-utilities.mdx | 6 +- docs/layout/global-stylesheets.mdx | 16 ++-- docs/layout/structure.mdx | 10 +-- docs/native-setup.mdx | 2 +- docs/react/add-to-existing.mdx | 2 +- docs/react/navigation.mdx | 6 +- docs/react/overview.mdx | 4 +- docs/react/platform.mdx | 2 +- docs/react/quickstart.mdx | 8 +- docs/react/testing/unit-testing/setup.mdx | 2 +- docs/react/utility-functions.mdx | 2 +- docs/react/your-first-app.mdx | 8 +- docs/react/your-first-app/2-taking-photos.mdx | 2 +- docs/react/your-first-app/5-adding-mobile.mdx | 2 +- docs/react/your-first-app/7-live-reload.mdx | 4 +- docs/react/your-first-app/8-distribute.mdx | 2 +- docs/reference/browser-support.mdx | 2 +- docs/reference/glossary.mdx | 6 +- docs/reference/support.mdx | 2 +- docs/techniques/security.mdx | 2 +- docs/theming/advanced.mdx | 8 +- docs/theming/basics.mdx | 10 +-- docs/theming/colors.mdx | 8 +- docs/theming/css-shadow-parts.mdx | 10 +-- docs/theming/css-variables.mdx | 4 +- docs/theming/dark-mode.mdx | 12 +-- docs/theming/high-contrast-mode.mdx | 16 ++-- docs/theming/platform-styles.mdx | 6 +- docs/theming/themes.mdx | 4 +- docs/troubleshooting/debugging.mdx | 2 +- docs/troubleshooting/native.mdx | 2 +- docs/troubleshooting/runtime.mdx | 2 +- docs/updating/4-0.mdx | 12 +-- docs/updating/5-0.mdx | 2 +- docs/updating/6-0.mdx | 16 ++-- docs/updating/7-0.mdx | 4 +- docs/updating/8-0.mdx | 12 +-- docs/updating/9-0.mdx | 10 +-- docs/utilities/animations.mdx | 2 +- docs/utilities/gestures.mdx | 2 +- docs/vue/add-to-existing.mdx | 2 +- docs/vue/lifecycle.mdx | 2 +- docs/vue/navigation.mdx | 8 +- docs/vue/overview.mdx | 6 +- docs/vue/platform.mdx | 2 +- docs/vue/quickstart.mdx | 8 +- docs/vue/troubleshooting.mdx | 2 +- docs/vue/utility-functions.mdx | 8 +- docs/vue/your-first-app.mdx | 8 +- docs/vue/your-first-app/2-taking-photos.mdx | 2 +- docs/vue/your-first-app/5-adding-mobile.mdx | 4 +- docs/vue/your-first-app/7-live-reload.mdx | 4 +- docs/vue/your-first-app/8-distribute.mdx | 2 +- .../version-v8/angular/add-to-existing.mdx | 2 +- .../version-v8/angular/build-options.mdx | 4 +- .../version-v8/angular/navigation.mdx | 2 +- .../version-v8/angular/overview.mdx | 4 +- .../version-v8/angular/platform.mdx | 2 +- .../version-v8/angular/quickstart.mdx | 8 +- .../version-v8/angular/your-first-app.mdx | 8 +- .../your-first-app/2-taking-photos.mdx | 2 +- .../your-first-app/5-adding-mobile.mdx | 4 +- .../angular/your-first-app/7-live-reload.mdx | 4 +- .../angular/your-first-app/8-distribute.mdx | 2 +- .../version-v8/api/accordion-group.mdx | 2 +- versioned_docs/version-v8/api/accordion.mdx | 8 +- .../version-v8/api/action-sheet.mdx | 2 +- versioned_docs/version-v8/api/alert.mdx | 2 +- versioned_docs/version-v8/api/app.mdx | 6 +- versioned_docs/version-v8/api/back-button.mdx | 2 +- versioned_docs/version-v8/api/breadcrumb.mdx | 2 +- versioned_docs/version-v8/api/buttons.mdx | 6 +- .../version-v8/api/card-content.mdx | 2 +- versioned_docs/version-v8/api/card-header.mdx | 4 +- .../version-v8/api/card-subtitle.mdx | 4 +- versioned_docs/version-v8/api/card-title.mdx | 4 +- versioned_docs/version-v8/api/card.mdx | 2 +- versioned_docs/version-v8/api/col.mdx | 4 +- versioned_docs/version-v8/api/content.mdx | 8 +- .../version-v8/api/datetime-button.mdx | 10 +-- versioned_docs/version-v8/api/datetime.mdx | 8 +- versioned_docs/version-v8/api/fab-button.mdx | 4 +- versioned_docs/version-v8/api/fab-list.mdx | 4 +- versioned_docs/version-v8/api/fab.mdx | 8 +- versioned_docs/version-v8/api/footer.mdx | 2 +- versioned_docs/version-v8/api/grid.mdx | 8 +- versioned_docs/version-v8/api/header.mdx | 2 +- .../api/infinite-scroll-content.mdx | 2 +- .../version-v8/api/input-password-toggle.mdx | 4 +- versioned_docs/version-v8/api/input.mdx | 4 +- .../version-v8/api/item-divider.mdx | 2 +- versioned_docs/version-v8/api/item-group.mdx | 2 +- versioned_docs/version-v8/api/item-option.mdx | 4 +- .../version-v8/api/item-options.mdx | 4 +- .../version-v8/api/item-sliding.mdx | 8 +- versioned_docs/version-v8/api/item.mdx | 14 ++-- versioned_docs/version-v8/api/label.mdx | 2 +- versioned_docs/version-v8/api/list-header.mdx | 4 +- versioned_docs/version-v8/api/list.mdx | 4 +- versioned_docs/version-v8/api/menu-button.mdx | 2 +- versioned_docs/version-v8/api/menu-toggle.mdx | 2 +- versioned_docs/version-v8/api/menu.mdx | 2 +- versioned_docs/version-v8/api/modal.mdx | 4 +- versioned_docs/version-v8/api/nav-link.mdx | 2 +- versioned_docs/version-v8/api/nav.mdx | 2 +- .../version-v8/api/picker-column-option.mdx | 2 +- .../version-v8/api/picker-column.mdx | 2 +- .../version-v8/api/picker-legacy.mdx | 2 +- versioned_docs/version-v8/api/picker.mdx | 4 +- versioned_docs/version-v8/api/radio-group.mdx | 2 +- versioned_docs/version-v8/api/radio.mdx | 4 +- versioned_docs/version-v8/api/refresher.mdx | 4 +- .../version-v8/api/reorder-group.mdx | 4 +- versioned_docs/version-v8/api/reorder.mdx | 2 +- .../version-v8/api/route-redirect.mdx | 2 +- versioned_docs/version-v8/api/route.mdx | 2 +- versioned_docs/version-v8/api/router-link.mdx | 2 +- versioned_docs/version-v8/api/router.mdx | 2 +- versioned_docs/version-v8/api/row.mdx | 4 +- .../version-v8/api/segment-button.mdx | 2 +- .../version-v8/api/segment-content.mdx | 4 +- .../version-v8/api/segment-view.mdx | 2 +- versioned_docs/version-v8/api/segment.mdx | 4 +- .../version-v8/api/select-option.mdx | 2 +- versioned_docs/version-v8/api/select.mdx | 18 ++--- versioned_docs/version-v8/api/tab-bar.mdx | 2 +- versioned_docs/version-v8/api/tab-button.mdx | 4 +- versioned_docs/version-v8/api/tab.mdx | 8 +- versioned_docs/version-v8/api/tabs.mdx | 4 +- versioned_docs/version-v8/api/textarea.mdx | 4 +- versioned_docs/version-v8/api/title.mdx | 8 +- versioned_docs/version-v8/api/toast.mdx | 12 +-- versioned_docs/version-v8/api/toggle.mdx | 2 +- versioned_docs/version-v8/api/toolbar.mdx | 14 ++-- .../version-v8/cli/configuration.mdx | 4 +- versioned_docs/version-v8/cli/livereload.mdx | 2 +- versioned_docs/version-v8/components.mdx | 76 +++++++++---------- .../contributing/how-to-contribute.mdx | 2 +- .../core-concepts/cross-platform.mdx | 8 +- .../version-v8/core-concepts/fundamentals.mdx | 12 +-- .../version-v8/core-concepts/webview.mdx | 8 +- .../deployment/progressive-web-app.mdx | 8 +- .../version-v8/developing/config.mdx | 2 +- .../developing/hardware-back-button.mdx | 2 +- .../version-v8/developing/managing-focus.mdx | 12 +-- .../version-v8/developing/previewing.mdx | 8 +- versioned_docs/version-v8/developing/tips.mdx | 2 +- versioned_docs/version-v8/index.mdx | 12 +-- versioned_docs/version-v8/intro/cdn.mdx | 14 ++-- versioned_docs/version-v8/intro/cli.mdx | 10 +-- .../version-v8/intro/environment.mdx | 8 +- versioned_docs/version-v8/intro/next.mdx | 6 +- .../version-v8/javascript/overview.mdx | 2 +- .../version-v8/javascript/quickstart.mdx | 2 +- .../version-v8/layout/css-utilities.mdx | 6 +- .../version-v8/layout/global-stylesheets.mdx | 16 ++-- .../version-v8/layout/structure.mdx | 10 +-- versioned_docs/version-v8/native-setup.mdx | 2 +- .../version-v8/react/add-to-existing.mdx | 2 +- versioned_docs/version-v8/react/overview.mdx | 4 +- versioned_docs/version-v8/react/platform.mdx | 2 +- .../version-v8/react/quickstart.mdx | 8 +- .../version-v8/react/your-first-app.mdx | 8 +- .../react/your-first-app/2-taking-photos.mdx | 2 +- .../react/your-first-app/5-adding-mobile.mdx | 2 +- .../react/your-first-app/7-live-reload.mdx | 4 +- .../react/your-first-app/8-distribute.mdx | 2 +- .../version-v8/reference/browser-support.mdx | 2 +- .../version-v8/reference/glossary.mdx | 6 +- .../version-v8/reference/support.mdx | 2 +- .../version-v8/techniques/security.mdx | 2 +- .../version-v8/theming/advanced.mdx | 8 +- versioned_docs/version-v8/theming/basics.mdx | 10 +-- versioned_docs/version-v8/theming/colors.mdx | 8 +- .../version-v8/theming/css-shadow-parts.mdx | 10 +-- .../version-v8/theming/css-variables.mdx | 4 +- .../version-v8/theming/dark-mode.mdx | 12 +-- .../version-v8/theming/high-contrast-mode.mdx | 16 ++-- .../version-v8/theming/platform-styles.mdx | 6 +- versioned_docs/version-v8/theming/themes.mdx | 4 +- .../version-v8/troubleshooting/debugging.mdx | 2 +- .../version-v8/troubleshooting/native.mdx | 2 +- .../version-v8/troubleshooting/runtime.mdx | 2 +- versioned_docs/version-v8/updating/4-0.mdx | 12 +-- versioned_docs/version-v8/updating/5-0.mdx | 2 +- versioned_docs/version-v8/updating/6-0.mdx | 16 ++-- versioned_docs/version-v8/updating/7-0.mdx | 4 +- versioned_docs/version-v8/updating/8-0.mdx | 12 +-- .../version-v8/utilities/animations.mdx | 2 +- .../version-v8/utilities/gestures.mdx | 2 +- .../version-v8/vue/add-to-existing.mdx | 2 +- versioned_docs/version-v8/vue/lifecycle.mdx | 2 +- versioned_docs/version-v8/vue/navigation.mdx | 8 +- versioned_docs/version-v8/vue/overview.mdx | 6 +- versioned_docs/version-v8/vue/platform.mdx | 2 +- versioned_docs/version-v8/vue/quickstart.mdx | 8 +- .../version-v8/vue/troubleshooting.mdx | 2 +- .../version-v8/vue/utility-functions.mdx | 8 +- .../version-v8/vue/your-first-app.mdx | 8 +- .../vue/your-first-app/2-taking-photos.mdx | 2 +- .../vue/your-first-app/5-adding-mobile.mdx | 4 +- .../vue/your-first-app/7-live-reload.mdx | 4 +- .../vue/your-first-app/8-distribute.mdx | 2 +- 305 files changed, 829 insertions(+), 827 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a0938dbe5b..7cfd9ceed5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -227,6 +227,8 @@ Use Markdown for links and headings whenever possible. When you need JSX, such a - [``](https://docusaurus.io/docs/docusaurus-core#link) from `@docusaurus/Link` instead of ``. It handles the base URL and locale, and opens external URLs in a new tab with `rel="noopener noreferrer"`. - [``](https://docusaurus.io/docs/api/misc/@docusaurus/eslint-plugin/prefer-docusaurus-heading) from `@theme/Heading` instead of `

` to `

`. +Link to another doc by its file path from the docs folder, with the extension, such as `[Accordion](/api/accordion.mdx)`. Docusaurus resolves it to the page in the same version and locale, and the build fails if the file doesn't exist. A JSX prop such as `href` skips that step, so use the URL path without `/docs` or an extension instead: `/api/accordion`, or `/v8/api/accordion` on a v8 page. + The build only checks links and anchors that go through Markdown or these components. A raw `` to a page that doesn't exist builds without errors, and a raw heading's `id` can't be used as a link target. Markup inside code samples is exempt, since it's example code rather than part of the page. CI fails on a raw `` or heading anywhere else. To check before pushing, run: diff --git a/docs/angular/add-to-existing.mdx b/docs/angular/add-to-existing.mdx index 2ef3d72357..5e26e8aad9 100644 --- a/docs/angular/add-to-existing.mdx +++ b/docs/angular/add-to-existing.mdx @@ -322,7 +322,7 @@ Now that you have Ionic Angular integrated into your project, check out: - +

Discover how to handle routing and navigation in Ionic Angular apps using the Angular Router.

diff --git a/docs/angular/build-options.mdx b/docs/angular/build-options.mdx index f9dc9e3323..3f25f1ff0b 100644 --- a/docs/angular/build-options.mdx +++ b/docs/angular/build-options.mdx @@ -47,7 +47,7 @@ All Ionic imports should be imported from the `@ionic/angular` submodule. This i **Bootstrapping and Configuration** -Ionic Angular needs to be configured when the Angular application calls `bootstrapApplication` using the `provideIonicAngular` function. Developers can pass any [IonicConfig](../developing/config#ionicconfig) values as an object in this function. Note that `provideIonicAngular` needs to be called even if no custom config is passed. +Ionic Angular needs to be configured when the Angular application calls `bootstrapApplication` using the `provideIonicAngular` function. Developers can pass any [IonicConfig](/developing/config.mdx#ionicconfig) values as an object in this function. Note that `provideIonicAngular` needs to be called even if no custom config is passed. ```typescript title="main.ts" import { enableProdMode, importProvidersFrom } from '@angular/core'; @@ -216,7 +216,7 @@ All Ionic imports should be imported from the `@ionic/angular` submodule. This i **Bootstrapping and Configuration** -Ionic Angular needs to be configured in the `providers` array of `app.module.ts` using the `provideIonicAngular` function. Developers can pass any [IonicConfig](../developing/config#ionicconfig) values as an object in this function. Note that `provideIonicAngular` needs to be called even if no custom config is passed. +Ionic Angular needs to be configured in the `providers` array of `app.module.ts` using the `provideIonicAngular` function. Developers can pass any [IonicConfig](/developing/config.mdx#ionicconfig) values as an object in this function. Note that `provideIonicAngular` needs to be called even if no custom config is passed. ```typescript title="app.module.ts" import { NgModule } from '@angular/core'; diff --git a/docs/angular/navigation.mdx b/docs/angular/navigation.mdx index f1440eac70..ff2b552a9e 100644 --- a/docs/angular/navigation.mdx +++ b/docs/angular/navigation.mdx @@ -197,7 +197,7 @@ export class AppRoutingModule {} :::tip -If you are using `routerLink`, `routerDirection`, or `routerAction` be sure to also import the `IonRouterLink` directive for Ionic components or the `IonRouterLinkWithHref` directive for `
` elements. An example of this is available in the [Ionic Angular Build Options docs](./build-options.mdx#migrating-from-modules-to-standalone). +If you are using `routerLink`, `routerDirection`, or `routerAction` be sure to also import the `IonRouterLink` directive for Ionic components or the `IonRouterLinkWithHref` directive for `` elements. An example of this is available in the [Ionic Angular Build Options docs](/angular/build-options.mdx#migrating-from-modules-to-standalone). ::: diff --git a/docs/angular/overview.mdx b/docs/angular/overview.mdx index 1fb4aa3982..79f222697f 100644 --- a/docs/angular/overview.mdx +++ b/docs/angular/overview.mdx @@ -44,7 +44,7 @@ $ ionic serve █ - +

Quickly set up your first Ionic Angular app and learn the basics of the framework and CLI.

@@ -52,7 +52,7 @@ $ ionic serve █

Learn more about Angular's core concepts, tools, and best practices from the official Angular documentation.

- +

Discover how to handle routing and navigation in Ionic Angular apps using the Angular Router.

diff --git a/docs/angular/platform.mdx b/docs/angular/platform.mdx index d11ebf80db..5209911718 100644 --- a/docs/angular/platform.mdx +++ b/docs/angular/platform.mdx @@ -93,7 +93,7 @@ Below is a table listing all the possible platform values along with correspondi #### Customizing Platform Detection Functions {/* #customizing-platform-detection-functions */} -The function used to detect a specific platform can be overridden by providing an alternative function in the global [Ionic config](../developing/config). Each function takes `window` as a parameter and returns a boolean. +The function used to detect a specific platform can be overridden by providing an alternative function in the global [Ionic config](/developing/config.mdx). Each function takes `window` as a parameter and returns a boolean. - +

Build a real Photo Gallery app with Ionic Angular and native device features.

@@ -427,7 +427,7 @@ This guide covered the basics of creating an Ionic Angular app, adding navigatio

Learn more about Angular's core concepts, tools, and best practices from the official Angular documentation.

- +

Discover how to handle routing and navigation in Ionic Angular apps using the Angular Router.

diff --git a/docs/angular/your-first-app.mdx b/docs/angular/your-first-app.mdx index 89c4ce5f26..bbcdf4ec48 100644 --- a/docs/angular/your-first-app.mdx +++ b/docs/angular/your-first-app.mdx @@ -30,7 +30,7 @@ We'll create a Photo Gallery app that offers the ability to take photos with you Highlights include: -- One Angular-based codebase that runs on the web, iOS, and Android using Ionic Framework [UI components](../components.mdx). +- One Angular-based codebase that runs on the web, iOS, and Android using Ionic Framework [UI components](/components.mdx). - Deployed as a native iOS and Android mobile app using [Capacitor](https://capacitorjs.com), Ionic's official native app runtime. - Photo Gallery functionality powered by the Capacitor [Camera](/native/camera.mdx), [Filesystem](/native/filesystem.mdx), and [Preferences](/native/preferences.mdx) APIs. @@ -64,7 +64,7 @@ npm install -g @ionic/cli native-run cordova-res The `-g` option means _install globally_. When packages are installed globally, `EACCES` permission errors can occur. -Consider setting up npm to operate globally without elevated permissions. Refer to [Resolving Permission Errors](../developing/tips.mdx#resolving-permission-errors) for more information. +Consider setting up npm to operate globally without elevated permissions. Refer to [Resolving Permission Errors](/developing/tips.mdx#resolving-permission-errors) for more information. ::: @@ -168,7 +168,7 @@ Open `/src/app/tab2/tab2.page.html`. It contains: ``` -`ion-header` represents the top navigation and toolbar, with "Tab 2" as the title (there are two of them due to iOS [Collapsible Large Title](../api/title.mdx#collapsible-large-titles) support). Rename both `ion-title` elements to: +`ion-header` represents the top navigation and toolbar, with "Tab 2" as the title (there are two of them due to iOS [Collapsible Large Title](/api/title.mdx#collapsible-large-titles) support). Rename both `ion-title` elements to: ```html @@ -190,7 +190,7 @@ Open `/src/app/tab2/tab2.page.html`. It contains: ``` -We put the visual aspects of our app into ``. In this case, it’s where we’ll add a button that opens the device’s camera as well as displays the image captured by the camera. Start by adding a [floating action button](../api/fab.mdx) (FAB) to the bottom of the page and set the camera image as the icon. +We put the visual aspects of our app into ``. In this case, it’s where we’ll add a button that opens the device’s camera as well as displays the image captured by the camera. Start by adding a [floating action button](/api/fab.mdx) (FAB) to the bottom of the page and set the camera image as the icon. ```html diff --git a/docs/angular/your-first-app/2-taking-photos.mdx b/docs/angular/your-first-app/2-taking-photos.mdx index f9bea16149..9f4b64f25c 100644 --- a/docs/angular/your-first-app/2-taking-photos.mdx +++ b/docs/angular/your-first-app/2-taking-photos.mdx @@ -232,7 +232,7 @@ export interface UserPhoto { } ``` -Next, switch to `tab2.page.html` to display the images. We'll add a [Grid component](../../api/grid.mdx) so the photos display neatly as they're added to the gallery. Inside the grid, loop through each photo in the `PhotoService`'s `photos` signal with the built-in [`@for`](https://angular.dev/guide/templates/control-flow#for-block-repeaters) block - calling `photoService.photos()` reads the signal's current value. For each item, add an `` element and set its `src` property to the photo's path. +Next, switch to `tab2.page.html` to display the images. We'll add a [Grid component](/api/grid.mdx) so the photos display neatly as they're added to the gallery. Inside the grid, loop through each photo in the `PhotoService`'s `photos` signal with the built-in [`@for`](https://angular.dev/guide/templates/control-flow#for-block-repeaters) block - calling `photoService.photos()` reads the signal's current value. For each item, add an `` element and set its `src` property to the photo's path. ```html diff --git a/docs/angular/your-first-app/5-adding-mobile.mdx b/docs/angular/your-first-app/5-adding-mobile.mdx index 864c1062bd..ce14e45ca1 100644 --- a/docs/angular/your-first-app/5-adding-mobile.mdx +++ b/docs/angular/your-first-app/5-adding-mobile.mdx @@ -17,7 +17,7 @@ Our photo gallery app won’t be complete until it runs on iOS, Android, and the Let’s start with making some small code changes - then our app will “just work” when we deploy it to a device. -Import the Ionic [Platform API](../platform.mdx) into `photo.service.ts`, which is used to retrieve information about the current device. In this case, it’s useful for selecting which code to execute based on the platform the app is running on (web or mobile). +Import the Ionic [Platform API](/angular/platform.mdx) into `photo.service.ts`, which is used to retrieve information about the current device. In this case, it’s useful for selecting which code to execute based on the platform the app is running on (web or mobile). Add `Platform` to the imports at the top of the file and a new property `platform` to the `PhotoService` class. We'll also need to update the constructor to set the user's platform. @@ -86,7 +86,7 @@ private async savePicture(photo: Photo) { } ``` -When running on mobile, set `filepath` to the result of the `writeFile()` operation - `savedFile.uri`. When setting the `webviewPath`, use the special `Capacitor.convertFileSrc()` method ([details on the File Protocol](../../core-concepts/webview.mdx#file-protocol)). To use this method, we'll need to import Capacitor into `photo.service.ts`. +When running on mobile, set `filepath` to the result of the `writeFile()` operation - `savedFile.uri`. When setting the `webviewPath`, use the special `Capacitor.convertFileSrc()` method ([details on the File Protocol](/core-concepts/webview.mdx#file-protocol)). To use this method, we'll need to import Capacitor into `photo.service.ts`. ```ts import { Injectable, inject, signal } from '@angular/core'; diff --git a/docs/angular/your-first-app/7-live-reload.mdx b/docs/angular/your-first-app/7-live-reload.mdx index 9473e6e9cc..65a4cb4dd3 100644 --- a/docs/angular/your-first-app/7-live-reload.mdx +++ b/docs/angular/your-first-app/7-live-reload.mdx @@ -13,7 +13,7 @@ sidebar_label: Live Reload So far, we’ve learned how easy it is to develop a cross-platform app that works everywhere. The development experience is pretty quick, but what if I told you there was a way to go faster? -We can use the Ionic CLI’s [Live Reload functionality](../../cli/livereload.mdx) to boost our productivity when building Ionic apps. When active, Live Reload will reload the browser and/or WebView when changes in the app are detected. +We can use the Ionic CLI’s [Live Reload functionality](/cli/livereload.mdx) to boost our productivity when building Ionic apps. When active, Live Reload will reload the browser and/or WebView when changes in the app are detected. ## Live Reload {/* #live-reload */} @@ -158,7 +158,7 @@ export class Tab2Page implements OnInit { } ``` -Open `tab2.page.html` and wrap each image in a `