module Docs class Scala < FileScraper include FixInternalUrlsBehavior self.name = 'scala' self.type = 'scala' self.links = { home: 'http://www.scala-lang.org/', code: 'https://github.com/scala/scala' } version '2.12 Library' do self.release = '2.12.3' self.dir = '/Users/Thibaut/DevDocs/Docs/Scala212/api/scala-library' # https://downloads.lightbend.com/scala/2.12.3/scala-docs-2.12.3.zip self.base_url = 'http://www.scala-lang.org/api/2.12.3/' self.root_path = 'index.html' options[:attribution] = <<-HTML Scala programming documentation. Copyright (c) 2003-2017 EPFL, with contributions from Lightbend. HTML html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_212' end version '2.12 Reflection' do self.release = '2.12.3' self.dir = '/Users/Thibaut/DevDocs/Docs/Scala212/api/scala-reflect' # https://downloads.lightbend.com/scala/2.12.3/scala-docs-2.12.3.zip self.base_url = 'http://www.scala-lang.org/api/2.12.3/scala-reflect/' self.root_path = 'index.html' options[:attribution] = <<-HTML Scala programming documentation. Copyright (c) 2003-2017 EPFL, with contributions from Lightbend. HTML html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_212' end version '2.11 Library' do self.release = '2.11.8' self.dir = '/Users/Thibaut/DevDocs/Docs/Scala211/api/scala-library' # https://downloads.lightbend.com/scala/2.11.8/scala-docs-2.11.8.zip self.base_url = 'http://www.scala-lang.org/api/2.11.8/' self.root_path = 'package.html' options[:skip_patterns] = [/^index.html/, /index\/index-/] options[:attribution] = <<-HTML Scala programming documentation. Copyright (c) 2003-2016 EPFL, with contributions from Lightbend. HTML html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_210' end version '2.11 Reflection' do self.release = '2.11.8' self.dir = '/Users/Thibaut/DevDocs/Docs/Scala211/api/scala-reflect' # https://downloads.lightbend.com/scala/2.11.8/scala-docs-2.11.8.zip self.base_url = 'http://www.scala-lang.org/api/2.11.8/scala-reflect/' self.root_path = 'package.html' options[:skip_patterns] = [/^index.html/, /index\/index-/] options[:attribution] = <<-HTML Scala programming documentation. Copyright (c) 2003-2016 EPFL, with contributions from Lightbend. HTML html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_210' end version '2.10' do self.release = '2.10.6' self.dir = '/Users/Thibaut/DevDocs/Docs/Scala210' # https://downloads.lightbend.com/scala/2.10.6/scala-docs-2.10.6.zip self.base_url = 'http://www.scala-lang.org/api/2.10.6/' self.root_path = 'package.html' options[:skip_patterns] = [/^index.html/, /index\/index-/] options[:attribution] = <<-HTML Scala programming documentation. Copyright (c) 2003-2013 EPFL, with contributions from Typesafe. HTML html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_210' end end end