History

Merge pull request #1472 from freeCodeCamp/erlang-23

Update Erlang documentation (23.2)

Simon Legner committed 5 years ago

Commit 60876132 parents 7721872 3b14a534 files · +17 −3Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. docs/file-scrapers.md +6 −0
  3. lib/docs/filters/erlang/clean_html.rb +1 −1
  4. lib/docs/scrapers/erlang.rb +9 −1
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -283,7 +283,7 @@ credits = [ · 282 unmodified lines
283283 'https://raw.githubusercontent.com/airbnb/enzyme/master/LICENSE.md'
284284 ], [
285285 'Erlang',
286− '2010-2017 Ericsson AB',
286+ '2010-2020 Ericsson AB',
287287 'Apache',
288288 'https://raw.githubusercontent.com/erlang/otp/maint/LICENSE.txt'
289289 ], [
docs/file-scrapers.md+6−0
@@ -41,6 +41,12 @@ bsdtar --extract --file - --directory=docs/django\~$VERSION/ · 40 unmodified lines
4141
4242 Go to https://www.erlang.org/downloads and download the HTML documentation file.
4343
44+```ah
45+mkdir --parent docs/erlang\~$VERSION/; \
46+curl http://erlang.org/download/otp_doc_html_23.2.tar.gz | \
47+bsdtar --extract --file - --directory=docs/erlang\~$VERSION/
48+```
49+
4450 ## Gnu
4551
4652 ### GCC
lib/docs/filters/erlang/clean_html.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Erlang
33 class CleanHtmlFilter < Filter
44 def call
5− @doc = at_css('#content .innertube')
5+ @doc = at_css('#content')
66
77 # frontpage
88
lib/docs/scrapers/erlang.rb+9−1
@@ -36,10 +36,18 @@ module Docs · 35 unmodified lines
3636 ]
3737
3838 options[:attribution] = <<-HTML
39− &copy; 2010&ndash;2017 Ericsson AB<br>
39+ &copy; 2010&ndash;2020 Ericsson AB<br>
4040 Licensed under the Apache License, Version 2.0.
4141 HTML
4242
43+ version '23' do
44+ self.release = '23.2'
45+ end
46+
47+ version '22' do
48+ self.release = '22.3'
49+ end
50+
4351 version '21' do
4452 self.release = '21.0'
4553 end