aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-14 23:14:58 +0200
committerMichał Górny <mgorny@gentoo.org>2017-10-12 22:47:59 +0200
commite9132598d46121043b3fc004378cd038576592d6 (patch)
tree680bab398f0aabd73bc2a2ea0ad7c4c9f6a0cdd8 /_plugins/gleps.rb
parentglep: Add CSS to fix style (diff)
downloadwww-e9132598d46121043b3fc004378cd038576592d6.tar.gz
www-e9132598d46121043b3fc004378cd038576592d6.tar.bz2
www-e9132598d46121043b3fc004378cd038576592d6.zip
glep: Update for .txt -> .rst rename
Diffstat (limited to '_plugins/gleps.rb')
-rw-r--r--_plugins/gleps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/_plugins/gleps.rb b/_plugins/gleps.rb
index 137b08d..631e47c 100644
--- a/_plugins/gleps.rb
+++ b/_plugins/gleps.rb
@@ -8,7 +8,7 @@ module Gentoo
site.data['gleps'] ||= []
Dir.chdir(GLEP_DIR) do
- Dir.glob('glep-[0-9][0-9][0-9][0-9].txt').reverse_each do |name|
+ Dir.glob('glep-[0-9][0-9][0-9][0-9].rst').reverse_each do |name|
begin
site.pages << GLEPPage.new(site, name)
rescue
@@ -26,7 +26,7 @@ module Gentoo
@site = site
@base = @site.source
@dir = GLEPGenerator::GLEP_DIR
- @name = "#{name.chomp('.txt')}.html"
+ @name = "#{name.chomp('.rst')}.html"
process(@name)
read_yaml(File.join(@base, GLEPGenerator::GLEP_DIR), name)