浏览代码

Fix Phoenix scraper

Fixes #509. Closes #511.
Thibaut Courouble 9 年之前
父节点
当前提交
6f75f3c44d
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      lib/docs/scrapers/phoenix.rb

+ 5 - 3
lib/docs/scrapers/phoenix.rb

@@ -1,5 +1,5 @@
 module Docs
-  class Phoenix < Elixir
+  class Phoenix < UrlScraper
     self.type = 'elixir'
     self.release = '1.2.1'
     self.base_url = 'https://hexdocs.pm/'
@@ -9,13 +9,15 @@ module Docs
       ecto/api-reference.html
       phoenix_html/api-reference.html
       phoenix_pubsub/api-reference.html
-      plug/extra-api-reference.html)
+      plug/api-reference.html)
     self.links = {
       home: 'http://www.phoenixframework.org',
       code: 'https://github.com/phoenixframework/phoenix'
     }
 
-    options[:root_title] = false
+    html_filters.push 'elixir/clean_html', 'elixir/entries'
+
+    options[:container] = '#content'
 
     options[:skip_patterns] = [/extra-api-reference/]
     options[:only_patterns] = [