Skip to content

Commit 7ff958a

Browse files
committed
fix rust 1.79.0 docs std crate indexing
1 parent 7d24d97 commit 7ff958a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/docs/filters/rust/clean_html.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

lib/docs/filters/rust/entries.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)