History

Fix Phoenix scraper

Fixes #509. Closes #511.

Thibaut Courouble committed 10 years ago

Commit 6f75f3c1 parent 19678731 file · +5 −3Browse files

Unified · Split

lib/docs/scrapers/phoenix.rb+5−3
@@ -1,5 +1,5 @@
1module Docs1module Docs
2 class Phoenix < Elixir2 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.html9 ecto/api-reference.html
10 phoenix_html/api-reference.html10 phoenix_html/api-reference.html
11 phoenix_pubsub/api-reference.html11 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] = false18 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] = [