[devdocsgjs/main: 1476/1867] Update Erlang documentation (23.2)




commit 3b14a531eba94a7e84cf073828ababa9686eccf9
Author: Simon Legner <Simon Legner gmail com>
Date:   Fri Jan 29 22:46:19 2021 +0100

    Update Erlang documentation (23.2)

 assets/javascripts/templates/pages/about_tmpl.coffee |  2 +-
 docs/file-scrapers.md                                |  6 ++++++
 lib/docs/filters/erlang/clean_html.rb                |  2 +-
 lib/docs/scrapers/erlang.rb                          | 10 +++++++++-
 4 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index e629f314..35d40b8c 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/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'
   ], [
diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md
index 50842f0d..21c7ac5a 100644
--- a/docs/file-scrapers.md
+++ b/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
diff --git a/lib/docs/filters/erlang/clean_html.rb b/lib/docs/filters/erlang/clean_html.rb
index c30bc9d7..8f55cc9b 100644
--- a/lib/docs/filters/erlang/clean_html.rb
+++ b/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
 
diff --git a/lib/docs/scrapers/erlang.rb b/lib/docs/scrapers/erlang.rb
index a888e511..6809274a 100644
--- a/lib/docs/scrapers/erlang.rb
+++ b/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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]