Rename Scala 2 filters

pull/1708/head
Nicolas Ettlin 3 years ago committed by Simon Legner
parent 17be27fc61
commit 81de797f2b

@ -1,6 +1,6 @@
module Docs module Docs
class Scala class Scala
class CleanHtmlFilter < Filter class CleanHtmlV2Filter < Filter
def call def call
@doc = at_css('#content') @doc = at_css('#content')

@ -1,6 +1,6 @@
module Docs module Docs
class Scala class Scala
class EntriesFilter < Docs::EntriesFilter class EntriesV2Filter < Docs::EntriesFilter
REPLACEMENTS = { REPLACEMENTS = {
'$eq' => '=', '$eq' => '=',
'$colon' => ':', '$colon' => ':',

@ -20,7 +20,7 @@ module Docs
self.base_url = 'https://www.scala-lang.org/api/2.13.0/' self.base_url = 'https://www.scala-lang.org/api/2.13.0/'
self.root_path = 'index.html' self.root_path = 'index.html'
html_filters.push 'scala/entries', 'scala/clean_html' html_filters.push 'scala/entries_v2', 'scala/clean_html_v2'
end end
# https://downloads.lightbend.com/scala/2.13.0/scala-docs-2.13.0.zip # https://downloads.lightbend.com/scala/2.13.0/scala-docs-2.13.0.zip
@ -30,7 +30,7 @@ module Docs
self.base_url = 'https://www.scala-lang.org/api/2.13.0/scala-reflect/' self.base_url = 'https://www.scala-lang.org/api/2.13.0/scala-reflect/'
self.root_path = 'index.html' self.root_path = 'index.html'
html_filters.push 'scala/entries', 'scala/clean_html' html_filters.push 'scala/entries_v2', 'scala/clean_html_v2'
end end
# https://downloads.lightbend.com/scala/2.12.9/scala-docs-2.12.9.zip # https://downloads.lightbend.com/scala/2.12.9/scala-docs-2.12.9.zip
@ -40,7 +40,7 @@ module Docs
self.base_url = 'https://www.scala-lang.org/api/2.12.9/' self.base_url = 'https://www.scala-lang.org/api/2.12.9/'
self.root_path = 'index.html' self.root_path = 'index.html'
html_filters.push 'scala/entries', 'scala/clean_html' html_filters.push 'scala/entries_v2', 'scala/clean_html_v2'
end end
# https://downloads.lightbend.com/scala/2.12.9/scala-docs-2.12.9.zip # https://downloads.lightbend.com/scala/2.12.9/scala-docs-2.12.9.zip
@ -50,7 +50,7 @@ module Docs
self.base_url = 'https://www.scala-lang.org/api/2.12.9/scala-reflect/' self.base_url = 'https://www.scala-lang.org/api/2.12.9/scala-reflect/'
self.root_path = 'index.html' self.root_path = 'index.html'
html_filters.push 'scala/entries', 'scala/clean_html' html_filters.push 'scala/entries_v2', 'scala/clean_html_v2'
end end
def get_latest_version(opts) def get_latest_version(opts)

Loading…
Cancel
Save