Update Rust documentation (1.1.0)

pull/229/merge
Thibaut 10 years ago
parent 72c0e953bf
commit 422d3779e2

@ -1,14 +1,13 @@
module Docs module Docs
class Rust < UrlScraper class Rust < UrlScraper
self.type = 'rust' self.type = 'rust'
self.version = '1.0.0' self.version = '1.1.0'
self.base_url = 'http://doc.rust-lang.org/' self.base_url = 'http://doc.rust-lang.org/'
self.root_path = 'book/index.html' self.root_path = 'book/index.html'
self.initial_paths = %w( self.initial_paths = %w(
reference.html reference.html
collections/index.html collections/index.html
std/index.html std/index.html)
unicode/index.html)
self.links = { self.links = {
home: 'http://www.rust-lang.org/', home: 'http://www.rust-lang.org/',
code: 'https://github.com/rust-lang/rust' code: 'https://github.com/rust-lang/rust'
@ -19,8 +18,7 @@ module Docs
options[:only_patterns] = [ options[:only_patterns] = [
/\Abook\//, /\Abook\//,
/\Acollections\//, /\Acollections\//,
/\Astd\//, /\Astd\// ]
/\Aunicode\// ]
options[:skip] = %w(book/README.html) options[:skip] = %w(book/README.html)
options[:skip_patterns] = [/(?<!\.html)\z/] options[:skip_patterns] = [/(?<!\.html)\z/]

Loading…
Cancel
Save