Skip to content

Commit

Permalink
Latest OSE version variable introduced + example (#135)
Browse files Browse the repository at this point in the history
Fixes: #133 

Introduced **ose_latest** variable, which is created from OSE github
repo metadata.
  • Loading branch information
mrgarris0n authored Sep 17, 2024
2 parents f881a56 + 0ea64c4 commit f9015ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ gem "nokogiri"
group :jekyll_plugins do

gem "jekyll-remote-theme"
gem "jekyll-github-metadata"
# gem "jekyll-paginate"
# gem "jekyll-sitemap"
# gem "jekyll-gist"
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ plugins:
- jekyll-sitemap # Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site.
- jekyll-gist # Liquid tag for displaying GitHub Gists in Jekyll sites.
- jekyll-include-cache # Liquid tag that caches Liquid includes.
- jekyll-github-metadata

# Whitelist plugins under safe mode.
whitelist:
Expand Down Expand Up @@ -256,3 +257,5 @@ footer:
product:
name: 'syslog-ng Open Source Edition'
short_name: 'syslog-ng OSE'

repository: syslog-ng/syslog-ng
2 changes: 2 additions & 0 deletions _includes/doc/common_snippets
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ that contains the include tag, further inherited e.g. layouts will not see the i

{% assign img_folder = '/assets/images' | relative_url %}

{% assign ose_latest = site.github.latest_release.name | remove: '.tar.gz' | remove: 'syslog-ng-' %}

{% include doc/dev-guide/common_snippets %}

{% include doc/admin-guide/common_snippets %}
Expand Down
3 changes: 1 addition & 2 deletions doc/_admin-guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: syslog-ng Open Source Edition Administration Guides
id: adm-guide
description: >-
Welcome to the {{ site.product.name }} 4.6 Administration Guide.
This document describes how to configure and manage {{ site.product.name }} ({{ site.product.short_name }}). Background information for the technology and concepts used by the product is also discussed.
Welcome to the {{ site.product.name }} {{ site.github.latest_release.name | remove: '.tar.gz' | remove: 'syslog-ng-'}} Administration Guide. This document describes how to configure and manage {{ site.product.name }} ({{ site.product.short_name }}). Background information for the technology and concepts used by the product is also discussed.
---

## Target audience
Expand Down

0 comments on commit f9015ef

Please sign in to comment.