From cd597fdb21484af5c2df9f2b001d169e7da8eb0b Mon Sep 17 00:00:00 2001 From: Saivann Date: Tue, 18 Jun 2013 00:05:19 -0400 Subject: [PATCH] Update documentation and libraries in plugins --- _plugins/sitemap.rb | 3 ++- _plugins/templates.rb | 6 ++++++ _plugins/translate.rb | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/_plugins/sitemap.rb b/_plugins/sitemap.rb index 0589019d..622736b0 100644 --- a/_plugins/sitemap.rb +++ b/_plugins/sitemap.rb @@ -1,4 +1,5 @@ -require 'open-uri' +require 'yaml' +require 'cgi' module Jekyll diff --git a/_plugins/templates.rb b/_plugins/templates.rb index 206dd6b1..33b1ee30 100644 --- a/_plugins/templates.rb +++ b/_plugins/templates.rb @@ -1,3 +1,9 @@ +require 'yaml' + +#This plugin generates all translated pages using templates in +#_templates. The final file name of each page is defined in +#the url section of each translations in _translations. + module Jekyll class TranslatePage < Page diff --git a/_plugins/translate.rb b/_plugins/translate.rb index ee106bbc..0177c4b8 100644 --- a/_plugins/translate.rb +++ b/_plugins/translate.rb @@ -1,5 +1,5 @@ require 'yaml' -require 'open-uri' +require 'cgi' #translate( id [,category ,lang] ) #Return translated string using translations files