|
|
@ -1,7 +1,7 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Phoenix < UrlScraper
|
|
|
|
class Phoenix < UrlScraper
|
|
|
|
self.type = 'elixir'
|
|
|
|
self.type = 'elixir'
|
|
|
|
self.release = '1.3.4'
|
|
|
|
self.release = '1.5.4'
|
|
|
|
self.base_url = 'https://hexdocs.pm/'
|
|
|
|
self.base_url = 'https://hexdocs.pm/'
|
|
|
|
self.root_path = 'phoenix/Phoenix.html'
|
|
|
|
self.root_path = 'phoenix/Phoenix.html'
|
|
|
|
self.initial_paths = %w(
|
|
|
|
self.initial_paths = %w(
|
|
|
@ -31,7 +31,8 @@ module Docs
|
|
|
|
options[:attribution] = -> (filter) {
|
|
|
|
options[:attribution] = -> (filter) {
|
|
|
|
if filter.slug.start_with?('ecto')
|
|
|
|
if filter.slug.start_with?('ecto')
|
|
|
|
<<-HTML
|
|
|
|
<<-HTML
|
|
|
|
© 2012 Plataformatec<br>
|
|
|
|
© 2013 Plataformatec<br>
|
|
|
|
|
|
|
|
© 2020 Dashbit<br>
|
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
elsif filter.slug.start_with?('plug')
|
|
|
|
elsif filter.slug.start_with?('plug')
|
|
|
|