Procházet zdrojové kódy

Merge pull request #1878 from ClasherKasten/minor/erlang

Update Erlang (25.1.2)
Simon Legner před 3 roky
rodič
revize
4c30622780

+ 1 - 1
docs/file-scrapers.md

@@ -65,7 +65,7 @@ Go to https://www.erlang.org/downloads and download the HTML documentation file.
 
 ```ah
 mkdir --parent docs/erlang\~$VERSION/; \
-curl http://erlang.org/download/otp_doc_html_$RELEASE.tar.gz | \
+curl -L https://github.com/erlang/otp/releases/download/OTP-$RELEASE/otp_doc_html_$RELEASE.tar.gz | \
 bsdtar --extract --file - --directory=docs/erlang\~$VERSION/
 ```
 

+ 1 - 1
lib/docs/filters/erlang/clean_html.rb

@@ -2,7 +2,7 @@ module Docs
   class Erlang
     class CleanHtmlFilter < Filter
       def call
-        @doc = at_css('#content')
+        @doc = at_css('#content .innertube', '#content')
 
         # frontpage
 

+ 1 - 1
lib/docs/scrapers/erlang.rb

@@ -41,7 +41,7 @@ module Docs
     HTML
 
     version '25' do
-      self.release = '25.0'
+      self.release = '25.1'
     end
 
     version '24' do