Unified · Split
| @@ -1,14 +1,13 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Rust < UrlScraper | 2 | class Rust < UrlScraper |
| 3 | self.type = 'rust' | 3 | self.type = 'rust' |
| 4 | self.version = '1.0.0' | 4 | self.version = '1.1.0' |
| 5 | self.base_url = 'http://doc.rust-lang.org/' | 5 | self.base_url = 'http://doc.rust-lang.org/' |
| 6 | self.root_path = 'book/index.html' | 6 | self.root_path = 'book/index.html' |
| 7 | self.initial_paths = %w( | 7 | self.initial_paths = %w( |
| 8 | reference.html | 8 | reference.html |
| 9 | collections/index.html | 9 | collections/index.html |
| 10 | std/index.html | 10 | std/index.html) |
| 11 | unicode/index.html) | ||
| 12 | self.links = { | 11 | self.links = { |
| 13 | home: 'http://www.rust-lang.org/', | 12 | home: 'http://www.rust-lang.org/', |
| 14 | code: 'https://github.com/rust-lang/rust' | 13 | code: 'https://github.com/rust-lang/rust' |
| @@ -19,8 +18,7 @@ module Docs · 4 unmodified lines | |||
| 19 | options[:only_patterns] = [ | 18 | options[:only_patterns] = [ |
| 20 | /\Abook\//, | 19 | /\Abook\//, |
| 21 | /\Acollections\//, | 20 | /\Acollections\//, |
| 22 | /\Astd\//, | 21 | /\Astd\// ] |
| 23 | /\Aunicode\// ] | ||
| 24 | 22 | ||
| 25 | options[:skip] = %w(book/README.html) | 23 | options[:skip] = %w(book/README.html) |
| 26 | options[:skip_patterns] = [/(?<!\.html)\z/] | 24 | options[:skip_patterns] = [/(?<!\.html)\z/] |