From 4f861e78e985b3b2f06155e7b1a567fa9d7e5f80 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 24 Jan 2016 15:18:21 -0500 Subject: [PATCH] Version Ruby documentation (2.2 and 2.3) Ref #25. --- .../templates/pages/about_tmpl.coffee | 2 +- lib/docs/scrapers/rdoc/ruby.rb | 34 +++++++++++++------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 7c93ff60..9829fb8a 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -351,7 +351,7 @@ credits = [ 'https://raw.githubusercontent.com/rethinkdb/docs/master/LICENSE' ], [ 'Ruby', - '1993-2015 Yukihiro Matsumoto', + '1993-2016 Yukihiro Matsumoto', 'Ruby', 'https://www.ruby-lang.org/en/about/license.txt' ], [ diff --git a/lib/docs/scrapers/rdoc/ruby.rb b/lib/docs/scrapers/rdoc/ruby.rb index 6eb1a1f9..c3779373 100644 --- a/lib/docs/scrapers/rdoc/ruby.rb +++ b/lib/docs/scrapers/rdoc/ruby.rb @@ -1,17 +1,17 @@ module Docs class Ruby < Rdoc # Generated with: - # rdoc \ - # --root . \ - # --page-dir doc \ - # --encoding=UTF-8 \ - # --visibility=public \ - # --format=darkfish \ - # --no-line-numbers \ - # --op html . + # ./configure && make html + # or: + # rdoc \ + # --root . \ + # --page-dir doc \ + # --encoding=UTF-8 \ + # --visibility=public \ + # --format=darkfish \ + # --no-line-numbers \ + # --op html . - self.release = '2.2.1' - self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby' self.links = { home: 'https://www.ruby-lang.org/', code: 'https://github.com/ruby/ruby' @@ -30,6 +30,8 @@ module Docs regexp_rdoc.html standard_library_rdoc.html syntax_rdoc.html + extension_rdoc.html + extension_ja_rdoc.html Data.html English.html Fcntl.html @@ -69,10 +71,20 @@ module Docs /\AXMP/] options[:attribution] = <<-HTML - Ruby Core © 1993–2015 Yukihiro Matsumoto
+ Ruby Core © 1993–2016 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses. HTML + + version '2.2' do + self.release = '2.2.4' + self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby22' + end + + version '2.3' do + self.release = '2.3.0' + self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby23' + end end end