From 0b45b6d6028a2fec1f6f5e4708fa572eae237022 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 25 Jun 2017 11:05:19 -0400 Subject: [PATCH] Update Rust documentation (1.18.0) --- lib/docs/scrapers/rust.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/docs/scrapers/rust.rb b/lib/docs/scrapers/rust.rb index 11494780..bd5a25e8 100644 --- a/lib/docs/scrapers/rust.rb +++ b/lib/docs/scrapers/rust.rb @@ -1,9 +1,9 @@ module Docs class Rust < UrlScraper self.type = 'rust' - self.release = '1.17.0' + self.release = '1.18.0' self.base_url = 'https://doc.rust-lang.org/' - self.root_path = 'book/index.html' + self.root_path = 'book/first-edition/index.html' self.initial_paths = %w( reference/introduction.html collections/index.html @@ -17,12 +17,12 @@ module Docs html_filters.push 'rust/entries', 'rust/clean_html' options[:only_patterns] = [ - /\Abook\//, + /\Abook\/first-edition\//, /\Areference\//, /\Acollections\//, /\Astd\// ] - options[:skip] = %w(book/README.html) + options[:skip] = %w(book/first-edition/README.html) options[:skip_patterns] = [/(?(url) do