Fixes #509. Closes #511.
Unified · Split
| @@ -1,5 +1,5 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Phoenix < Elixir | 2 | class Phoenix < UrlScraper |
| 3 | self.type = 'elixir' | 3 | self.type = 'elixir' |
| 4 | self.release = '1.2.1' | 4 | self.release = '1.2.1' |
| 5 | self.base_url = 'https://hexdocs.pm/' | 5 | self.base_url = 'https://hexdocs.pm/' |
| @@ -9,13 +9,15 @@ module Docs · 3 unmodified lines | |||
| 9 | ecto/api-reference.html | 9 | ecto/api-reference.html |
| 10 | phoenix_html/api-reference.html | 10 | phoenix_html/api-reference.html |
| 11 | phoenix_pubsub/api-reference.html | 11 | phoenix_pubsub/api-reference.html |
| 12 | plug/extra-api-reference.html) | 12 | plug/api-reference.html) |
| 13 | self.links = { | 13 | self.links = { |
| 14 | home: 'http://www.phoenixframework.org', | 14 | home: 'http://www.phoenixframework.org', |
| 15 | code: 'https://github.com/phoenixframework/phoenix' | 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 | options[:skip_patterns] = [/extra-api-reference/] | 22 | options[:skip_patterns] = [/extra-api-reference/] |
| 21 | options[:only_patterns] = [ | 23 | options[:only_patterns] = [ |