| @@ -2,19 +2,25 @@ module Docs · 1 unmodified line |
| 2 | 2 | class Haskell |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | IGNORE_ENTRIES_PATHS = %w( |
| 5 | | − bytestring-0.10.4.0/Data-ByteString-Lazy.html |
| 6 | | − bytestring-0.10.4.0/Data-ByteString-Char8.html |
| 7 | | − bytestring-0.10.4.0/Data-ByteString-Lazy-Char8.html |
| 8 | | − array-0.5.0.0/Data-Array-IArray.html |
| 9 | | − containers-0.5.5.1/Data-IntMap-Lazy.html |
| 10 | | − containers-0.5.5.1/Data-Map-Lazy.html |
| 11 | | − unix-2.7.0.1/System-Posix-Files-ByteString.html |
| 12 | | − filepath-1.3.0.2/System-FilePath-Windows.html |
| 13 | | − transformers-0.3.0.0/Control-Monad-Trans-RWS-Lazy.html |
| 14 | | − transformers-0.3.0.0/Control-Monad-Trans-Writer-Lazy.html |
| 15 | | − base-4.7.0.0/GHC-Conc-Sync.html |
| 16 | | − base-4.7.0.0/GHC-IO-Encoding-UTF32.html |
| 17 | | − unix-2.7.0.1/System-Posix-Terminal-ByteString.html) |
| 5 | + Data-ByteString-Lazy.html |
| 6 | + Data-ByteString-Char8.html |
| 7 | + Data-ByteString-Lazy-Char8.html |
| 8 | + Data-Array-IArray.html |
| 9 | + Data-IntMap-Lazy.html |
| 10 | + Data-Map-Lazy.html |
| 11 | + System-Posix-Files-ByteString.html |
| 12 | + System-FilePath-Windows.html |
| 13 | + Control-Monad-Trans-RWS-Lazy.html |
| 14 | + Control-Monad-Trans-State-Lazy.html |
| 15 | + Control-Monad-Trans-Writer-Lazy.html |
| 16 | + GHC-Conc-Sync.html |
| 17 | + GHC-OldList.html |
| 18 | + GHC-IO-Encoding-UTF32.html |
| 19 | + System-Posix-Terminal-ByteString.html |
| 20 | + Text-XHtml-Frameset.html |
| 21 | + Text-XHtml-Strict.html |
| 22 | + System-Posix-Process-ByteString.html |
| 23 | + Data-ByteString-Builder-Prim.html) |
| 18 | 24 | |
| 19 | 25 | def get_name |
| 20 | 26 | at_css('#module-header .caption').content.strip |
| @@ -33,7 +39,7 @@ module Docs · 12 unmodified lines |
| 33 | 39 | end |
| 34 | 40 | |
| 35 | 41 | def additional_entries |
| 36 | | − return [] if IGNORE_ENTRIES_PATHS.include?(subpath) |
| 42 | + return [] if IGNORE_ENTRIES_PATHS.include?(subpath.split('/').last) |
| 37 | 43 | |
| 38 | 44 | css('#synopsis > ul > li').each_with_object [] do |node, entries| |
| 39 | 45 | link = node.at_css('a') |
| @@ -41,7 +47,7 @@ module Docs · 1 unmodified line |
| 41 | 47 | name = node.content.strip |
| 42 | 48 | name.remove! %r{\A(?:module|data|newtype|class|type family m|type)\s+} |
| 43 | 49 | name.sub! %r{\A\((.+?)\)}, '\1' |
| 44 | | − name.sub!(/ (?:\:\: (\w+))?.+\z/) { |_| $1 ? " (#{$1})" : '' } |
| 50 | + name.sub!(/ (?:\:\: (\w+))?.*\z/) { |_| $1 ? " (#{$1})" : '' } |
| 45 | 51 | next if name == self.name |
| 46 | 52 | entries << [name, link['href'].remove('#')] |
| 47 | 53 | end |