Skip to content

Commit f9015ef

Browse files
authored
Latest OSE version variable introduced + example (#135)
Fixes: #133 Introduced **ose_latest** variable, which is created from OSE github repo metadata.
2 parents f881a56 + 0ea64c4 commit f9015ef

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ gem "nokogiri"
100100
group :jekyll_plugins do
101101

102102
gem "jekyll-remote-theme"
103+
gem "jekyll-github-metadata"
103104
# gem "jekyll-paginate"
104105
# gem "jekyll-sitemap"
105106
# gem "jekyll-gist"

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ plugins:
2424
- jekyll-sitemap # Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site.
2525
- jekyll-gist # Liquid tag for displaying GitHub Gists in Jekyll sites.
2626
- jekyll-include-cache # Liquid tag that caches Liquid includes.
27+
- jekyll-github-metadata
2728

2829
# Whitelist plugins under safe mode.
2930
whitelist:
@@ -256,3 +257,5 @@ footer:
256257
product:
257258
name: 'syslog-ng Open Source Edition'
258259
short_name: 'syslog-ng OSE'
260+
261+
repository: syslog-ng/syslog-ng

_includes/doc/common_snippets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ that contains the include tag, further inherited e.g. layouts will not see the i
1212

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

15+
{% assign ose_latest = site.github.latest_release.name | remove: '.tar.gz' | remove: 'syslog-ng-' %}
16+
1517
{% include doc/dev-guide/common_snippets %}
1618

1719
{% include doc/admin-guide/common_snippets %}

doc/_admin-guide/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
title: syslog-ng Open Source Edition Administration Guides
33
id: adm-guide
44
description: >-
5-
Welcome to the {{ site.product.name }} 4.6 Administration Guide.
6-
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.
5+
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.
76
---
87

98
## Target audience

0 commit comments

Comments
 (0)