Selaa lähdekoodia

Update Erlang documentation (23.2)

Simon Legner 4 vuotta sitten
vanhempi
commit
3b14a531eb

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -283,7 +283,7 @@ credits = [
     'https://raw.githubusercontent.com/airbnb/enzyme/master/LICENSE.md'
   ], [
     'Erlang',
-    '2010-2017 Ericsson AB',
+    '2010-2020 Ericsson AB',
     'Apache',
     'https://raw.githubusercontent.com/erlang/otp/maint/LICENSE.txt'
   ], [

+ 6 - 0
docs/file-scrapers.md

@@ -41,6 +41,12 @@ bsdtar --extract --file - --directory=docs/django\~$VERSION/
 
 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_23.2.tar.gz | \
+bsdtar --extract --file - --directory=docs/erlang\~$VERSION/
+```
+
 ## Gnu
 
 ### GCC

+ 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 .innertube')
+        @doc = at_css('#content')
 
         # frontpage
 

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

@@ -36,10 +36,18 @@ module Docs
     ]
 
     options[:attribution] = <<-HTML
-      &copy; 2010&ndash;2017 Ericsson AB<br>
+      &copy; 2010&ndash;2020 Ericsson AB<br>
       Licensed under the Apache License, Version 2.0.
     HTML
 
+    version '23' do
+      self.release = '23.2'
+    end
+
+    version '22' do
+      self.release = '22.3'
+    end
+
     version '21' do
       self.release = '21.0'
     end