scala.rb 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. module Docs
  2. class Scala < FileScraper
  3. include FixInternalUrlsBehavior
  4. self.name = 'scala'
  5. self.type = 'scala'
  6. self.links = {
  7. home: 'http://www.scala-lang.org/',
  8. code: 'https://github.com/scala/scala'
  9. }
  10. version '2.12 Library' do
  11. self.release = '2.12.3'
  12. self.dir = '/Users/Thibaut/DevDocs/Docs/Scala212/api/scala-library' # https://downloads.lightbend.com/scala/2.12.3/scala-docs-2.12.3.zip
  13. self.base_url = 'http://www.scala-lang.org/api/2.12.3/'
  14. self.root_path = 'index.html'
  15. options[:attribution] = <<-HTML
  16. Scala programming documentation. Copyright (c) 2003-2017 <a
  17. href="http://www.epfl.ch" target="_blank">EPFL</a>, with contributions from <a
  18. href="http://www.lightbend.com" target="_blank">Lightbend</a>.
  19. HTML
  20. html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_212'
  21. end
  22. version '2.12 Reflection' do
  23. self.release = '2.12.3'
  24. self.dir = '/Users/Thibaut/DevDocs/Docs/Scala212/api/scala-reflect' # https://downloads.lightbend.com/scala/2.12.3/scala-docs-2.12.3.zip
  25. self.base_url = 'http://www.scala-lang.org/api/2.12.3/scala-reflect/'
  26. self.root_path = 'index.html'
  27. options[:attribution] = <<-HTML
  28. Scala programming documentation. Copyright (c) 2003-2017 <a
  29. href="http://www.epfl.ch" target="_blank">EPFL</a>, with contributions from <a
  30. href="http://www.lightbend.com" target="_blank">Lightbend</a>.
  31. HTML
  32. html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_212'
  33. end
  34. version '2.11 Library' do
  35. self.release = '2.11.8'
  36. self.dir = '/Users/Thibaut/DevDocs/Docs/Scala211/api/scala-library' # https://downloads.lightbend.com/scala/2.11.8/scala-docs-2.11.8.zip
  37. self.base_url = 'http://www.scala-lang.org/api/2.11.8/'
  38. self.root_path = 'package.html'
  39. options[:skip_patterns] = [/^index.html/, /index\/index-/]
  40. options[:attribution] = <<-HTML
  41. Scala programming documentation. Copyright (c) 2003-2016 <a
  42. href="http://www.epfl.ch" target="_blank">EPFL</a>, with contributions from <a
  43. href="http://www.lightbend.com" target="_blank">Lightbend</a>.
  44. HTML
  45. html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_210'
  46. end
  47. version '2.11 Reflection' do
  48. self.release = '2.11.8'
  49. self.dir = '/Users/Thibaut/DevDocs/Docs/Scala211/api/scala-reflect' # https://downloads.lightbend.com/scala/2.11.8/scala-docs-2.11.8.zip
  50. self.base_url = 'http://www.scala-lang.org/api/2.11.8/scala-reflect/'
  51. self.root_path = 'package.html'
  52. options[:skip_patterns] = [/^index.html/, /index\/index-/]
  53. options[:attribution] = <<-HTML
  54. Scala programming documentation. Copyright (c) 2003-2016 <a
  55. href="http://www.epfl.ch" target="_blank">EPFL</a>, with contributions from <a
  56. href="http://www.lightbend.com" target="_blank">Lightbend</a>.
  57. HTML
  58. html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_210'
  59. end
  60. version '2.10' do
  61. self.release = '2.10.6'
  62. self.dir = '/Users/Thibaut/DevDocs/Docs/Scala210' # https://downloads.lightbend.com/scala/2.10.6/scala-docs-2.10.6.zip
  63. self.base_url = 'http://www.scala-lang.org/api/2.10.6/'
  64. self.root_path = 'package.html'
  65. options[:skip_patterns] = [/^index.html/, /index\/index-/]
  66. options[:attribution] = <<-HTML
  67. Scala programming documentation. Copyright (c) 2003-2013 <a
  68. href="http://www.epfl.ch" target="_blank">EPFL</a>, with contributions from <a
  69. href="http://typesafe.com" target="_blank">Typesafe</a>.
  70. HTML
  71. html_filters.push 'scala/entries', 'scala/clean_html', 'scala/clean_html_210'
  72. end
  73. end
  74. end