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

fix(jsonschema): remove new lines from description #1632

Closed lukidzi closed 7 months ago

lukidzi commented 7 months ago

Kubebuilder 0.14 has introduced a change in how it handles new lines in field descriptions. Now, if there is a new line, it adds it to the object, causing rendering issues for the objects. I attempted to address this by utilizing the library option, but unfortunately, it is not supported (refer to https://github.com/showdownjs/showdown/issues/801).

As a workaround, I implemented a function that iterates over the object and removes new lines from the description field.

https://kuma.io/docs/2.6.x/policies/meshgatewayinstance/#schema https://deploy-preview-1632--kuma.netlify.app/docs/2.6.x/policies/meshgatewayinstance/#schema

netlify[bot] commented 7 months ago

Deploy Preview for kuma ready!

Name Link
Latest commit 1a62d040c65b8216bdf24f52207b7b6dcebea998
Latest deploy log https://app.netlify.com/sites/kuma/deploys/65b935b12f48c20008bf3ce0
Deploy Preview https://deploy-preview-1632--kuma.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.