File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1414 em .stab , span .stab { @extend %label ; }
1515 em .stab.unstable , span .stab.unstable { @extend %label-orange ; }
1616 .out-of-band { float : right ; }
17- .since , .srclink {
17+ .since , .src , .rightside {
1818 float : right ;
1919 margin-left : .5rem ;
2020 }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ def call
1919 css ( '.anchor' ) . remove
2020
2121 css ( '.main-heading > h1' ) . each do |node |
22+ node . at ( 'button' ) &.remove
2223 node . parent . name = 'h1'
2324 node . parent . content = node . content
2425 end
@@ -29,6 +30,8 @@ def call
2930 end
3031 end
3132
33+ css ( '.doc-anchor' ) . remove
34+
3235 # Fix notable trait sections
3336 css ( '.method, .rust.trait' ) . each do |node |
3437 traitSection = node . at_css ( '.notable-traits' )
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ def get_name
99 elsif slug == 'error-index'
1010 'Compiler Errors'
1111 else
12+ at_css ( 'main h1' ) . at_css ( 'button' ) &.remove
1213 name = at_css ( 'main h1' ) . content . remove ( /\A .+\s / ) . remove ( '⎘' )
1314 mod = slug . split ( '/' ) . first
1415 name . prepend ( "#{ mod } ::" ) unless name . start_with? ( mod )
Original file line number Diff line number Diff line change 33module Docs
44 class Rust < UrlScraper
55 self . type = 'rust'
6- self . release = '1.79 .0'
6+ self . release = '1.80 .0'
77 self . base_url = 'https://doc.rust-lang.org/'
88 self . root_path = 'book/index.html'
99 self . initial_paths = %w(
You can’t perform that action at this time.
0 commit comments