diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-13 19:55:52 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-13 19:55:52 +0200 |
commit | 81de4cc5ec48b7a4db83c094bd11c182b3142553 (patch) | |
tree | 5095e68af1ed0dbb698077d0244fc3752cee5220 /_plugins | |
parent | glep: Skip optional headers in table when not present (diff) | |
download | www-81de4cc5ec48b7a4db83c094bd11c182b3142553.tar.gz www-81de4cc5ec48b7a4db83c094bd11c182b3142553.tar.bz2 www-81de4cc5ec48b7a4db83c094bd11c182b3142553.zip |
glep: Link Requires/Replaces/Replaced-By
Diffstat (limited to '_plugins')
-rw-r--r-- | _plugins/gleps.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/_plugins/gleps.rb b/_plugins/gleps.rb index e6ca36f..2fa9753 100644 --- a/_plugins/gleps.rb +++ b/_plugins/gleps.rb @@ -39,6 +39,16 @@ module Gentoo data['nav2'] = 'gleps' data['extracss'] = ['glep.css'] + # split into lists + ['Requires', 'Replaces', 'Replaced-By'].each do |k| + if data.has_key?(k) then + data[k] = data[k].to_s.split(',').map do |n| + n.strip! + [n, "glep-#{n.rjust(4, '0')}.html"] + end + end + end + @content = RbST.new(".. contents::\n..\n\n" + @content).to_html( 'initial-header-level' => 2) |