mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Phoenix documentation (1.3.0)
This commit is contained in:
parent
36eece7caa
commit
08b824985e
2 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,9 @@ module Docs
|
||||||
if current_url.path.start_with?('/getting-started')
|
if current_url.path.start_with?('/getting-started')
|
||||||
at_css('h1').content.strip.remove(/\.\z/)
|
at_css('h1').content.strip.remove(/\.\z/)
|
||||||
else
|
else
|
||||||
at_css('h1').content.split(' ').first.strip
|
name = at_css('h1').content.strip
|
||||||
|
name = name.split(' ').first unless name.start_with?('mix ') # ecto
|
||||||
|
name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module Docs
|
module Docs
|
||||||
class Phoenix < UrlScraper
|
class Phoenix < UrlScraper
|
||||||
self.type = 'elixir'
|
self.type = 'elixir'
|
||||||
self.release = '1.2.3'
|
self.release = '1.3.0'
|
||||||
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(
|
||||||
|
|
Loading…
Reference in a new issue