mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Rust documentation (1.52.1)
This commit is contained in:
parent
6f3c1167e2
commit
d0b63b6036
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
module Docs
|
||||
class Rust < UrlScraper
|
||||
self.type = 'rust'
|
||||
self.release = '1.51.0'
|
||||
self.release = '1.52.1'
|
||||
self.base_url = 'https://doc.rust-lang.org/'
|
||||
self.root_path = 'book/index.html'
|
||||
self.initial_paths = %w(
|
||||
|
@ -28,6 +28,7 @@ module Docs
|
|||
|
||||
options[:fix_urls] = ->(url) do
|
||||
url.sub! %r{(#{Rust.base_url}.+/)\z}, '\1index.html'
|
||||
url.sub! "#{Rust.base_url}nightly/", Rust.base_url
|
||||
url.sub! '/unicode/u_str', '/unicode/str/'
|
||||
url.sub! '/std/std/', '/std/'
|
||||
url
|
||||
|
|
Loading…
Reference in a new issue