From 141326ea3bb2e471a5cb51fd565521683a9792fc Mon Sep 17 00:00:00 2001 From: Orzelius <33936483+Orzelius@users.noreply.github.com> Date: Tue, 15 Apr 2025 21:27:15 +0900 Subject: [PATCH] docs: fix tabpane styling stop tabpane tabs colliding with the tabpane language by moving the tabs to the right docs: https://www.docsy.dev/docs/adding-content/shortcodes/#tabbed-panes support navigation via anchors to the various headings in the docs https://www.docsy.dev/docs/adding-content/navigation/#heading-self-links Signed-off-by: Orzelius <33936483+Orzelius@users.noreply.github.com> Signed-off-by: Andrey Smirnov --- website/content/v1.0/introduction/theila.md | 2 +- website/content/v1.1/introduction/theila.md | 2 +- .../content/v1.10/talos-guides/configuration/patching.md | 8 ++++---- .../content/v1.2/talos-guides/configuration/patching.md | 6 +++--- .../v1.3/kubernetes-guides/configuration/storage.md | 2 +- .../content/v1.3/talos-guides/configuration/patching.md | 8 ++++---- .../v1.4/kubernetes-guides/configuration/storage.md | 2 +- .../content/v1.4/talos-guides/configuration/patching.md | 8 ++++---- .../content/v1.5/talos-guides/configuration/patching.md | 8 ++++---- .../content/v1.6/talos-guides/configuration/patching.md | 8 ++++---- .../content/v1.7/talos-guides/configuration/patching.md | 8 ++++---- .../content/v1.8/talos-guides/configuration/patching.md | 8 ++++---- .../content/v1.9/talos-guides/configuration/patching.md | 8 ++++---- website/layouts/_default/_markup/render-heading.html | 1 + 14 files changed, 40 insertions(+), 39 deletions(-) create mode 100644 website/layouts/_default/_markup/render-heading.html diff --git a/website/content/v1.0/introduction/theila.md b/website/content/v1.0/introduction/theila.md index 46dcace1c..ef2623f75 100644 --- a/website/content/v1.0/introduction/theila.md +++ b/website/content/v1.0/introduction/theila.md @@ -32,7 +32,7 @@ Once installed, you can run Theila by simply running it. -{{< tabpane lang="bash" >}} +{{< tabpane lang="bash" right=true >}} {{< tab header="Binary" >}} # address and port are not required and default to the values shown theila --address 127.0.0.1 --port 8080 diff --git a/website/content/v1.1/introduction/theila.md b/website/content/v1.1/introduction/theila.md index 46dcace1c..ef2623f75 100644 --- a/website/content/v1.1/introduction/theila.md +++ b/website/content/v1.1/introduction/theila.md @@ -32,7 +32,7 @@ Once installed, you can run Theila by simply running it. -{{< tabpane lang="bash" >}} +{{< tabpane lang="bash" right=true >}} {{< tab header="Binary" >}} # address and port are not required and default to the values shown theila --address 127.0.0.1 --port 8080 diff --git a/website/content/v1.10/talos-guides/configuration/patching.md b/website/content/v1.10/talos-guides/configuration/patching.md index ccac100e9..128756c37 100644 --- a/website/content/v1.10/talos-guides/configuration/patching.md +++ b/website/content/v1.10/talos-guides/configuration/patching.md @@ -156,7 +156,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -212,7 +212,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -265,7 +265,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -320,7 +320,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/content/v1.2/talos-guides/configuration/patching.md b/website/content/v1.2/talos-guides/configuration/patching.md index c783095ca..ce53031ed 100644 --- a/website/content/v1.2/talos-guides/configuration/patching.md +++ b/website/content/v1.2/talos-guides/configuration/patching.md @@ -92,7 +92,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -148,7 +148,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -201,7 +201,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: diff --git a/website/content/v1.3/kubernetes-guides/configuration/storage.md b/website/content/v1.3/kubernetes-guides/configuration/storage.md index 8bf5dd803..cd0a3f8d7 100644 --- a/website/content/v1.3/kubernetes-guides/configuration/storage.md +++ b/website/content/v1.3/kubernetes-guides/configuration/storage.md @@ -124,7 +124,7 @@ There is already a how-to for Talos: [Link](https://github.com/piraeusdatastore/ -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: install: diff --git a/website/content/v1.3/talos-guides/configuration/patching.md b/website/content/v1.3/talos-guides/configuration/patching.md index 78343f329..83bfbbf79 100644 --- a/website/content/v1.3/talos-guides/configuration/patching.md +++ b/website/content/v1.3/talos-guides/configuration/patching.md @@ -92,7 +92,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -148,7 +148,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -201,7 +201,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -256,7 +256,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/content/v1.4/kubernetes-guides/configuration/storage.md b/website/content/v1.4/kubernetes-guides/configuration/storage.md index 9d7bba0e0..9c60d4e98 100644 --- a/website/content/v1.4/kubernetes-guides/configuration/storage.md +++ b/website/content/v1.4/kubernetes-guides/configuration/storage.md @@ -136,7 +136,7 @@ There is already a how-to for Talos: [Link](https://github.com/piraeusdatastore/ -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: install: diff --git a/website/content/v1.4/talos-guides/configuration/patching.md b/website/content/v1.4/talos-guides/configuration/patching.md index 2c4244228..58f3eff84 100644 --- a/website/content/v1.4/talos-guides/configuration/patching.md +++ b/website/content/v1.4/talos-guides/configuration/patching.md @@ -93,7 +93,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -149,7 +149,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -202,7 +202,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -257,7 +257,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/content/v1.5/talos-guides/configuration/patching.md b/website/content/v1.5/talos-guides/configuration/patching.md index 0b2c33d43..1d809bc81 100644 --- a/website/content/v1.5/talos-guides/configuration/patching.md +++ b/website/content/v1.5/talos-guides/configuration/patching.md @@ -102,7 +102,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -158,7 +158,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -211,7 +211,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -266,7 +266,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/content/v1.6/talos-guides/configuration/patching.md b/website/content/v1.6/talos-guides/configuration/patching.md index db8065f32..8462b6ab3 100644 --- a/website/content/v1.6/talos-guides/configuration/patching.md +++ b/website/content/v1.6/talos-guides/configuration/patching.md @@ -104,7 +104,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -160,7 +160,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -213,7 +213,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -268,7 +268,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/content/v1.7/talos-guides/configuration/patching.md b/website/content/v1.7/talos-guides/configuration/patching.md index db8065f32..8462b6ab3 100644 --- a/website/content/v1.7/talos-guides/configuration/patching.md +++ b/website/content/v1.7/talos-guides/configuration/patching.md @@ -104,7 +104,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -160,7 +160,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -213,7 +213,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -268,7 +268,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/content/v1.8/talos-guides/configuration/patching.md b/website/content/v1.8/talos-guides/configuration/patching.md index cdf03d8a2..c481315f2 100644 --- a/website/content/v1.8/talos-guides/configuration/patching.md +++ b/website/content/v1.8/talos-guides/configuration/patching.md @@ -156,7 +156,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -212,7 +212,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -265,7 +265,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -320,7 +320,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/content/v1.9/talos-guides/configuration/patching.md b/website/content/v1.9/talos-guides/configuration/patching.md index cdf03d8a2..c481315f2 100644 --- a/website/content/v1.9/talos-guides/configuration/patching.md +++ b/website/content/v1.9/talos-guides/configuration/patching.md @@ -156,7 +156,7 @@ The goal is to add a virtual IP `192.168.10.50` to the `eth0` interface and add -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: network: @@ -212,7 +212,7 @@ cluster: The goal is to update pod and service subnets and disable default CNI (Flannel). -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: network: @@ -265,7 +265,7 @@ machine: The goal is to set the `kubelet` node IP to come from the subnet `192.168.10.0/24`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} machine: kubelet: @@ -320,7 +320,7 @@ cluster: The goal is to add an exemption for the namespace `rook-ceph`. -{{< tabpane lang="yaml" >}} +{{< tabpane lang="yaml" right=true >}} {{< tab header="Strategic merge patch" >}} cluster: apiServer: diff --git a/website/layouts/_default/_markup/render-heading.html b/website/layouts/_default/_markup/render-heading.html new file mode 100644 index 000000000..7f8e97424 --- /dev/null +++ b/website/layouts/_default/_markup/render-heading.html @@ -0,0 +1 @@ +{{ template "_default/_markup/td-render-heading.html" . }}