|
|
@ -1,13 +1,14 @@
|
|
|
|
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.6'
|
|
|
|
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(
|
|
|
|
phoenix/api-reference.html
|
|
|
|
phoenix/api-reference.html
|
|
|
|
ecto/api-reference.html
|
|
|
|
ecto/api-reference.html
|
|
|
|
phoenix_html/api-reference.html
|
|
|
|
phoenix_html/api-reference.html
|
|
|
|
|
|
|
|
phoenix_live_view/api-reference.html
|
|
|
|
phoenix_pubsub/api-reference.html
|
|
|
|
phoenix_pubsub/api-reference.html
|
|
|
|
plug/api-reference.html)
|
|
|
|
plug/api-reference.html)
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
@ -25,13 +26,15 @@ module Docs
|
|
|
|
/\Aecto\//,
|
|
|
|
/\Aecto\//,
|
|
|
|
/\Aphoenix_pubsub\//,
|
|
|
|
/\Aphoenix_pubsub\//,
|
|
|
|
/\Aphoenix_html\//,
|
|
|
|
/\Aphoenix_html\//,
|
|
|
|
|
|
|
|
/\Aphoenix_live_view\//,
|
|
|
|
/\Aplug\//
|
|
|
|
/\Aplug\//
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
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')
|
|
|
@ -39,6 +42,11 @@ module Docs
|
|
|
|
© 2013 Plataformatec<br>
|
|
|
|
© 2013 Plataformatec<br>
|
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
elsif filter.slug.start_with?('phoenix_live_view')
|
|
|
|
|
|
|
|
<<-HTML
|
|
|
|
|
|
|
|
© 2018 Chris McCord<br>
|
|
|
|
|
|
|
|
Licensed under the MIT License.
|
|
|
|
|
|
|
|
HTML
|
|
|
|
else
|
|
|
|
else
|
|
|
|
<<-HTML
|
|
|
|
<<-HTML
|
|
|
|
© 2014 Chris McCord<br>
|
|
|
|
© 2014 Chris McCord<br>
|
|
|
|