2015-12-03 03:31:26 +01:00
|
|
|
module Docs
|
|
|
|
class Erlang < FileScraper
|
|
|
|
self.type = 'erlang'
|
|
|
|
self.root_path = 'doc/index.html'
|
|
|
|
self.links = {
|
2016-01-31 19:39:22 +01:00
|
|
|
home: 'https://www.erlang.org/',
|
|
|
|
code: 'https://github.com/erlang/otp'
|
2015-12-03 03:31:26 +01:00
|
|
|
}
|
|
|
|
|
2016-01-31 19:39:22 +01:00
|
|
|
html_filters.insert_after 'container', 'erlang/pre_clean_html'
|
2015-12-03 03:31:26 +01:00
|
|
|
html_filters.push 'erlang/entries', 'erlang/clean_html'
|
|
|
|
|
2016-07-10 21:03:19 +02:00
|
|
|
options[:only_patterns] = [
|
|
|
|
/\Alib/,
|
|
|
|
/\Adoc\/\w+\//,
|
|
|
|
/\Aerts.+\/html/
|
|
|
|
]
|
2015-12-03 03:31:26 +01:00
|
|
|
|
|
|
|
options[:skip_patterns] = [
|
2016-01-31 19:39:22 +01:00
|
|
|
/pdf/,
|
|
|
|
/release_notes/,
|
|
|
|
/result/,
|
|
|
|
/java/,
|
2016-07-10 21:03:19 +02:00
|
|
|
/\.erl\z/,
|
2016-01-31 19:39:22 +01:00
|
|
|
/\/html\/.*_app\.html\z/,
|
|
|
|
/_examples\.html\z/,
|
|
|
|
/\Alib\/edoc/,
|
|
|
|
/\Alib\/erl_docgen/,
|
|
|
|
/\Alib\/hipe/,
|
|
|
|
/\Alib\/ose/,
|
|
|
|
/\Alib\/test_server/,
|
|
|
|
/\Alib\/jinterface/,
|
|
|
|
/\Alib\/wx/,
|
|
|
|
/\Alib\/ic/,
|
|
|
|
/\Alib\/Cos/i
|
2015-12-03 03:31:26 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
2023-02-05 10:06:13 +01:00
|
|
|
© 2010–2023 Ericsson AB<br>
|
2015-12-03 03:31:26 +01:00
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
HTML
|
2016-01-31 19:39:22 +01:00
|
|
|
|
2023-06-11 10:32:58 +02:00
|
|
|
version '26' do
|
|
|
|
self.release = '26.0.1'
|
|
|
|
end
|
|
|
|
|
2022-07-05 19:49:43 +02:00
|
|
|
version '25' do
|
2023-06-11 10:32:58 +02:00
|
|
|
self.release = '25.3.2.2'
|
2022-07-05 19:49:43 +02:00
|
|
|
end
|
|
|
|
|
2021-05-13 12:18:40 +02:00
|
|
|
version '24' do
|
|
|
|
self.release = '24.0'
|
|
|
|
end
|
|
|
|
|
2021-01-29 22:46:19 +01:00
|
|
|
version '23' do
|
|
|
|
self.release = '23.2'
|
|
|
|
end
|
|
|
|
|
|
|
|
version '22' do
|
|
|
|
self.release = '22.3'
|
|
|
|
end
|
|
|
|
|
2018-07-08 22:44:29 +02:00
|
|
|
version '21' do
|
|
|
|
self.release = '21.0'
|
|
|
|
end
|
|
|
|
|
2017-06-25 15:46:12 +02:00
|
|
|
version '20' do
|
2018-06-11 03:26:45 +02:00
|
|
|
self.release = '20.3'
|
2017-06-25 15:46:12 +02:00
|
|
|
end
|
|
|
|
|
2016-07-01 23:01:42 +02:00
|
|
|
version '19' do
|
2017-03-25 16:46:47 +01:00
|
|
|
self.release = '19.3'
|
2016-07-01 23:01:42 +02:00
|
|
|
end
|
|
|
|
|
2016-01-31 19:39:22 +01:00
|
|
|
version '18' do
|
2016-03-26 21:18:21 +01:00
|
|
|
self.release = '18.3'
|
2016-01-31 19:39:22 +01:00
|
|
|
end
|
2019-03-09 02:36:05 +01:00
|
|
|
|
2019-03-10 03:02:24 +01:00
|
|
|
def get_latest_version(opts)
|
2020-11-06 22:51:23 +01:00
|
|
|
get_latest_github_release('erlang', 'otp', opts)[4..-1]
|
2019-03-09 02:36:05 +01:00
|
|
|
end
|
2015-12-03 03:31:26 +01:00
|
|
|
end
|
|
|
|
end
|