瀏覽代碼

Update Rust documentation (1.80.0)

Simon Legner 1 年之前
父節點
當前提交
febe65d6ab
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      assets/stylesheets/pages/_rust.scss
  2. 2 0
      lib/docs/filters/rust/clean_html.rb
  3. 1 1
      lib/docs/scrapers/rust.rb

+ 1 - 1
assets/stylesheets/pages/_rust.scss

@@ -14,7 +14,7 @@
   em.stab, span.stab { @extend %label; }
   em.stab.unstable, span.stab.unstable { @extend %label-orange; }
   .out-of-band { float: right; }
-  .since, .srclink {
+  .since, .src, .rightside {
     float: right;
     margin-left: .5rem;
   }

+ 2 - 0
lib/docs/filters/rust/clean_html.rb

@@ -30,6 +30,8 @@ module Docs
           end
         end
 
+        css('.doc-anchor').remove
+
         # Fix notable trait sections
         css('.method, .rust.trait').each do |node|
           traitSection = node.at_css('.notable-traits')

+ 1 - 1
lib/docs/scrapers/rust.rb

@@ -3,7 +3,7 @@
 module Docs
   class Rust < UrlScraper
     self.type = 'rust'
-    self.release = '1.79.0'
+    self.release = '1.80.0'
     self.base_url = 'https://doc.rust-lang.org/'
     self.root_path = 'book/index.html'
     self.initial_paths = %w(