Import Tabs and TabItem globally

This commit is contained in:
Billy Tat 2024-02-07 16:14:18 -08:00
parent becc0d963e
commit 83bba81a04
9 changed files with 21 additions and 16 deletions

View File

@ -3,8 +3,7 @@ title: K8s Ingress Controllers
description: By default, RKE deploys the NGINX ingress controller. Learn how to schedule and disable default k8s ingress controllers, and how to configure NGINX controller
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
### Default Ingress

View File

@ -2,8 +2,7 @@
title: Example Scenarios
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
These example scenarios for backup and restore are different based on your version of RKE.

View File

@ -2,8 +2,7 @@
title: One-time Snapshots
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
One-time snapshots are handled differently depending on your version of RKE.

View File

@ -2,8 +2,7 @@
title: Recurring Snapshots
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Recurring snapshots are handled differently based on your version of RKE.

View File

@ -2,8 +2,7 @@
title: Restoring from Backup
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
The details of restoring your cluster from backup are different depending on your version of RKE.

View File

@ -2,8 +2,7 @@
title: Requirements
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
## Operating System

View File

@ -2,8 +2,7 @@
title: How Upgrades Work
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
In this section, you'll learn what happens when you edit or upgrade your RKE Kubernetes cluster. The below sections describe how each type of node is upgraded by default when a cluster is upgraded using `rke up`.

View File

@ -2,8 +2,7 @@
title: Upgrades
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
After RKE has deployed Kubernetes, you can upgrade the versions of the components in your Kubernetes cluster, the [definition of the Kubernetes services](../config-options/services/services.md) or the [add-ons](../config-options/add-ons/add-ons.md).

View File

@ -0,0 +1,13 @@
import React from 'react';
// Import the original mapper
import MDXComponents from '@theme-original/MDXComponents';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
export default {
// Re-use the default mapping
...MDXComponents,
// Global import the <Tabs> and <TabItem> components
Tabs: Tabs,
TabItem: TabItem,
};