Skip to content

Commit

Permalink
Move lts to kong versions (#7299)
Browse files Browse the repository at this point in the history
* Bump jekyll-generator-single-source

* Set lts: true in kong_versions.yml
  • Loading branch information
fabianrbz committed Apr 26, 2024
1 parent 056734a commit fcf26a1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source 'https://rubygems.org'
gem 'jekyll'
gem 'jekyll-include-cache'
gem 'jekyll-redirect-from'
gem 'jekyll-generator-single-source'
gem 'jekyll-generator-single-source', github: 'kong/jekyll-generator-single-source', branch: 'add-lts-to-release'
gem 'kramdown-parser-gfm'
gem 'liquid-c'
gem 'rouge', '3.30.0'
Expand Down
12 changes: 9 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
GIT
remote: https://github.com/kong/jekyll-generator-single-source.git
revision: aa0dc3f841ba8b55fcd53b23e0ed8726e80df393
branch: add-lts-to-release
specs:
jekyll-generator-single-source (0.0.13)
jekyll (>= 4.2, < 5.0)

PATH
remote: app/_src/.repos/kuma/jekyll-kuma-plugins
specs:
Expand Down Expand Up @@ -92,8 +100,6 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-generator-single-source (0.0.13)
jekyll (>= 4.2, < 5.0)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-redirect-from (0.16.0)
Expand Down Expand Up @@ -221,7 +227,7 @@ DEPENDENCIES
capybara
foreman
jekyll
jekyll-generator-single-source
jekyll-generator-single-source!
jekyll-include-cache
jekyll-kuma-plugins!
jekyll-redirect-from
Expand Down
3 changes: 3 additions & 0 deletions app/_data/kong_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
libyaml: "0.2.5"
pcre: "8.45"
lua_doc: true
lts: true
- release: "3.0.x"
ee-version: "3.0.2.0"
ce-version: "3.0.2"
Expand Down Expand Up @@ -113,6 +114,7 @@
libyaml: "0.2.5"
pcre: 8.45
lua_doc: true
lts: true
- release: "3.5.x"
ee-version: "3.5.0.3"
ce-version: "3.5.0"
Expand Down Expand Up @@ -260,6 +262,7 @@
- release: "2.8.x"
version: "2.8.2"
edition: "kubernetes-ingress-controller"
lts: true
- release: "2.9.x"
version: "2.9.3"
edition: "kubernetes-ingress-controller"
Expand Down
4 changes: 2 additions & 2 deletions app/_includes/docs-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{% if include.release.latest? %}
<span>(latest)</span>
{% endif %}
{% if include.release == '2.8.x' or include.release == '3.4.x' %}
{% if include.release.lts %}
<span>(LTS)</span>
{% endif %}
</span>
Expand All @@ -73,7 +73,7 @@
{% for option in include.releases_dropdown.options reversed %}
<li {% if option.active? %}class="active" {% endif %} role="menuitem" tabindex="-1">
<a href="{{ option.url }}" {% if option.active? %} class="active" {% endif %} data-version-id="{{ option.data_id }}">
{{ option.value }}{% if option.value == '2.8.x' or option.value == '3.4.x' %} (LTS){% endif %}
{{ option.value }}{% if option.lts %} (LTS){% endif %}
</a>
</li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion app/_layouts/docs-v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% if page.release.latest? %}
<span>(latest)</span>
{% endif %}
{% if page.release == '2.8.x' or page.release == '3.4.x' %}
{% if page.release.lts %}
<span>LTS</span>
{% endif %}
</div>
Expand Down
4 changes: 4 additions & 0 deletions app/_plugins/drops/releases_dropdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def data_id
@data_id ||= @release.value
end

def lts
@release.lts
end

private

def label
Expand Down

0 comments on commit fcf26a1

Please sign in to comment.