History

Update Rust documentation (1.88.0)

Fixes #2510.

Simon Legner committed 1 year ago

Commit 2a2c11b1 parent 131007f2 files · +5 −3Browse files

Unified · Split

2 files
  1. lib/docs/filters/rust/entries.rb +4 −2
  2. lib/docs/scrapers/rust.rb +1 −1
lib/docs/filters/rust/entries.rb+4−2
@@ -4,8 +4,10 @@ module Docs · 3 unmodified lines
4 4
5 def get_name5 def get_name
6 if slug.start_with?('book') || slug.start_with?('reference')6 if slug.start_with?('book') || slug.start_with?('reference')
7 name = at_css("#sidebar a[href='#{File.basename(slug)}']")7 name = at_css("h2", "h1")
8 name ? name.content : 'Introduction'8 ch1 = slug[/ch(\d+)-(\d+)/, 1]
9 ch2 = slug[/ch(\d+)-(\d+)/, 2]
10 name ? "#{ch1}.#{ch2}. #{name.content}" : 'Introduction'
9 elsif slug == 'error-index'11 elsif slug == 'error-index'
10 'Compiler Errors'12 'Compiler Errors'
11 else13 else
lib/docs/scrapers/rust.rb+1−1
@@ -3,7 +3,7 @@ · 2 unmodified lines
3module Docs3module Docs
4 class Rust < UrlScraper4 class Rust < UrlScraper
5 self.type = 'rust'5 self.type = 'rust'
6 self.release = '1.87.0'6 self.release = '1.88.0'
7 self.base_url = 'https://doc.rust-lang.org/'7 self.base_url = 'https://doc.rust-lang.org/'
8 self.root_path = 'book/index.html'8 self.root_path = 'book/index.html'
9 self.initial_paths = %w(9 self.initial_paths = %w(