Fixes #509. Closes #511.
Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | module Docs |
| 2 | − class Phoenix < Elixir | |
| 2 | + class Phoenix < UrlScraper | |
| 3 | 3 | self.type = 'elixir' |
| 4 | 4 | self.release = '1.2.1' |
| 5 | 5 | self.base_url = 'https://hexdocs.pm/' |
| @@ -9,13 +9,15 @@ module Docs · 3 unmodified lines | ||
| 9 | 9 | ecto/api-reference.html |
| 10 | 10 | phoenix_html/api-reference.html |
| 11 | 11 | phoenix_pubsub/api-reference.html |
| 12 | − plug/extra-api-reference.html) | |
| 12 | + plug/api-reference.html) | |
| 13 | 13 | self.links = { |
| 14 | 14 | home: 'http://www.phoenixframework.org', |
| 15 | 15 | code: 'https://github.com/phoenixframework/phoenix' |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | − options[:root_title] = false | |
| 18 | + html_filters.push 'elixir/clean_html', 'elixir/entries' | |
| 19 | + | |
| 20 | + options[:container] = '#content' | |
| 19 | 21 | |
| 20 | 22 | options[:skip_patterns] = [/extra-api-reference/] |
| 21 | 23 | options[:only_patterns] = [ |