Unified · Split
| @@ -5,7 +5,9 @@ module Docs · 4 unmodified lines | |||
| 5 | if current_url.path.start_with?('/getting-started') | 5 | if current_url.path.start_with?('/getting-started') |
| 6 | at_css('h1').content.strip.remove(/\.\z/) | 6 | at_css('h1').content.strip.remove(/\.\z/) |
| 7 | else | 7 | else |
| 8 | at_css('h1').content.split(' ').first.strip | 8 | name = at_css('h1').content.strip |
| 9 | name = name.split(' ').first unless name.start_with?('mix ') # ecto | ||
| 10 | name | ||
| 9 | end | 11 | end |
| 10 | end | 12 | end |
| 11 | 13 | ||
| @@ -1,7 +1,7 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Phoenix < UrlScraper | 2 | class Phoenix < UrlScraper |
| 3 | self.type = 'elixir' | 3 | self.type = 'elixir' |
| 4 | self.release = '1.2.3' | 4 | self.release = '1.3.0' |
| 5 | self.base_url = 'https://hexdocs.pm/' | 5 | self.base_url = 'https://hexdocs.pm/' |
| 6 | self.root_path = 'phoenix/Phoenix.html' | 6 | self.root_path = 'phoenix/Phoenix.html' |
| 7 | self.initial_paths = %w( | 7 | self.initial_paths = %w( |