kumahq / kuma-website

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

feat(jekyll): add conditional increment plugin "inc" #2053

Closed bartsmykla closed 3 weeks ago

bartsmykla commented 3 weeks ago

This new inc plugin enables conditional incrementation of values based on version checks, addressing a limitation in Jekyll's native {% increment %} tag, which increments unconditionally, even within {% if_version ... %} blocks.

With this plugin, we can now increment values only when specific version conditions are met, as shown:

## Step {% inc step_number if_version="gte:2.9.x" %}: ...

or

[Link to other page's Step {% inc guide_step if_version="lte:2.4.x" init_value=5 %}: ...](...)

Additionally, I refactored parameter parsing logic into a separate module, making it reusable for other plugins.

Did you sign your commit? Instructions: 👍

Have you read Contributing guidelines?: 👍

netlify[bot] commented 3 weeks ago

Deploy Preview for kuma ready!

Name Link
Latest commit ae7970b55e0c3de7af2a297bc683badf3d17ceb3
Latest deploy log https://app.netlify.com/sites/kuma/deploys/6723615c2329f60008535df5
Deploy Preview https://deploy-preview-2053--kuma.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance: 83 (🔴 down 8 from production)
Accessibility: 90 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

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