Merge pull request #1262 from sabiwara/phoenix_1.5

Update Phoenix doc (1.5.6) and add LiveView
This commit is contained in:
Simon Legner 2020-11-15 22:43:23 +01:00 committed by GitHub
commit 79648742ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,14 @@
module Docs
class Phoenix < UrlScraper
self.type = 'elixir'
self.release = '1.3.4'
self.release = '1.5.6'
self.base_url = 'https://hexdocs.pm/'
self.root_path = 'phoenix/Phoenix.html'
self.initial_paths = %w(
phoenix/api-reference.html
ecto/api-reference.html
phoenix_html/api-reference.html
phoenix_live_view/api-reference.html
phoenix_pubsub/api-reference.html
plug/api-reference.html)
self.links = {
@ -25,13 +26,15 @@ module Docs
/\Aecto\//,
/\Aphoenix_pubsub\//,
/\Aphoenix_html\//,
/\Aphoenix_live_view\//,
/\Aplug\//
]
options[:attribution] = -> (filter) {
if filter.slug.start_with?('ecto')
<<-HTML
&copy; 2012 Plataformatec<br>
&copy; 2013 Plataformatec<br>
&copy; 2020 Dashbit<br>
Licensed under the Apache License, Version 2.0.
HTML
elsif filter.slug.start_with?('plug')
@ -39,6 +42,11 @@ module Docs
&copy; 2013 Plataformatec<br>
Licensed under the Apache License, Version 2.0.
HTML
elsif filter.slug.start_with?('phoenix_live_view')
<<-HTML
&copy; 2018 Chris McCord<br>
Licensed under the MIT License.
HTML
else
<<-HTML
&copy; 2014 Chris McCord<br>