ソースを参照

Update Scala documentation (3.2.0)

Simon Legner 3 年 前
コミット
26f7c1425b
1 ファイル変更16 行追加0 行削除
  1. 16 0
      lib/docs/scrapers/scala.rb

+ 16 - 0
lib/docs/scrapers/scala.rb

@@ -22,6 +22,22 @@ module Docs
     # 3. From the Dotty folder, run this command in the terminal:
     #    $ sbt scaladoc/generateScalaDocumentation
     # 4. Extract scaladoc/output/scala3/api/ into docs/scala~3.1
+    version '3.2' do
+      self.release = '3.2.0'
+      self.base_url = 'https://scala-lang.org/api/3.2.0/'
+      self.root_path = 'index.html'
+
+      options[:skip_patterns] = [
+        # Ignore class names with include “#”, which cause issues with the scraper
+        /%23/,
+
+        # Ignore local links to the Java documentation created by a Scaladoc bug
+        /java\/lang/,
+      ]
+
+      html_filters.push 'scala/entries_v3', 'scala/clean_html_v3'
+    end
+
     version '3.1' do
       self.release = '3.1.1'
       self.base_url = 'https://scala-lang.org/api/3.1.1/'