kumahq / kuma-website

🐻 The official website for Kuma, the control plane for modern service connectivity.
https://kuma.io
Apache License 2.0
104 stars 87 forks source link

Support one-click-switch to switch all code tabs between Kubernetes and Universal modes on kuma website #1811

Closed jijiechen closed 3 weeks ago

jijiechen commented 3 weeks ago

Description

As a Universal user, when I'm reading code samples on the kuma website, I have to switch to Universal mode again and again. When I click to view a particular code sample in Universal mode, it only switch the current code snippet, and others are still showing in Kubernetes mode.

This sometimes troubles me when I'm using Unviersal by default. I may have copied the wrong code sample by mistake until kumactl complains a syntax error.

I want to switch all the code samples all at once to the Universal mode, idealy by a single click.

Example page: https://kuma.io/docs/2.7.x/using-mesh/managing-ingress-traffic/builtin-routes/

jakubdyszkiewicz commented 3 weeks ago

duplicate of https://github.com/kumahq/kuma-website/issues/1101