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 @@
11 module Docs
2− class Phoenix < Elixir
2+ class Phoenix < UrlScraper
33 self.type = 'elixir'
44 self.release = '1.2.1'
55 self.base_url = 'https://hexdocs.pm/'
@@ -9,13 +9,15 @@ module Docs · 3 unmodified lines
99 ecto/api-reference.html
1010 phoenix_html/api-reference.html
1111 phoenix_pubsub/api-reference.html
12− plug/extra-api-reference.html)
12+ plug/api-reference.html)
1313 self.links = {
1414 home: 'http://www.phoenixframework.org',
1515 code: 'https://github.com/phoenixframework/phoenix'
1616 }
1717
18− options[:root_title] = false
18+ html_filters.push 'elixir/clean_html', 'elixir/entries'
19+
20+ options[:container] = '#content'
1921
2022 options[:skip_patterns] = [/extra-api-reference/]
2123 options[:only_patterns] = [