Move cluster-capabilities-table to a headless bundle and include it as a page instead of reading the file

This prevents the table to automatically be included on pages of other bundles.
By including the page instead of reading the file also the shortcodes in the table are expanded correctly.

This fixes broken links in the table.

Fixes https://github.com/rancher/docs/issues/2577

Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
This commit is contained in:
Bastian Hofmann
2020-07-03 13:11:36 +02:00
committed by Catherine Luse
parent 1787e3c0a5
commit e610bc8ef2
6 changed files with 12 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ Alternatively, you can switch between projects and clusters directly in the navi
After clusters have been [provisioned into Rancher]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/), [cluster owners]({{<baseurl>}}/rancher/v2.x/en/admin-settings/rbac/cluster-project-roles/#cluster-roles) will need to manage these clusters. There are many different options of how to manage your cluster.
{{% readfile file="/rancher/v2.x/en/cluster-admin/cluster-capabilities-table.md" markdown="true" %}}
{{% include file="/rancher/v2.x/en/cluster-provisioning/cluster-capabilities-table" %}}
## Configuring Tools

View File

@@ -12,7 +12,7 @@ The options and settings available for an existing cluster change based on the m
The following table summarizes the options and settings available for each cluster type:
{{% readfile file="/rancher/v2.x/en/cluster-admin/cluster-capabilities-table.md" markdown="true" %}}
{{% include file="/rancher/v2.x/en/cluster-provisioning/cluster-capabilities-table" %}}
## Editing Cluster Membership

View File

@@ -28,7 +28,7 @@ This section covers the following topics:
The following table summarizes the options and settings available for each cluster type:
{{% readfile file="/rancher/v2.x/en/cluster-admin/cluster-capabilities-table.md" markdown="true" %}}
{{% include file="/rancher/v2.x/en/cluster-provisioning/cluster-capabilities-table" %}}
# Setting up Clusters in a Hosted Kubernetes Provider

View File

@@ -1,3 +1,6 @@
---
headless: true
---
| Action | [Rancher launched Kubernetes Clusters]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/rke-clusters/) | [Hosted Kubernetes Clusters]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/hosted-kubernetes-clusters/) | [Imported Clusters]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/imported-clusters) |
| --- | --- | ---| ---|
| [Using kubectl and a kubeconfig file to Access a Cluster]({{<baseurl>}}/rancher/v2.x/en/cluster-admin/cluster-access/kubectl/) | ✓ | ✓ | ✓ |

View File

@@ -60,4 +60,4 @@ After a cluster is created with Rancher, a cluster administrator can manage clus
The following table summarizes the options and settings available for each cluster type:
{{% readfile file="/rancher/v2.x/en/cluster-admin/cluster-capabilities-table.md" markdown="true" %}}
{{% include file="/rancher/v2.x/en/cluster-provisioning/cluster-capabilities-table" %}}

View File

@@ -0,0 +1,5 @@
{{$file := .Get "file"}}
{{- with .Site.GetPage $file -}}
{{- .Content | markdownify -}}
{{- end -}}