Skip to content

Commit 24591d4

Browse files
committed
Update Deno documentation (2.4.4)
1 parent 5d7ef83 commit 24591d4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/docs/filters/deno/clean_html.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Deno
33
class CleanHtmlFilter < Filter
44
def call
55
if result[:path].start_with?('api/deno/')
6-
@doc = at_css('main')
6+
@doc = at_css('main[id!="content"] article', 'main[id!="content"]')
77
else
88
@doc = at_css('main article .markdown-body')
99
end
@@ -25,6 +25,7 @@ def call
2525
end
2626

2727
css('a.header-anchor').remove()
28+
css('.breadcrumbs').remove()
2829

2930
doc
3031
end

lib/docs/filters/deno/entries.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class EntriesFilter < Docs::EntriesFilter
44

55
def get_name
66
if result[:path].start_with?('api/deno/')
7-
at_css('main')['id'][/\Asymbol_([.\w]+)/, 1]
7+
at_css('main[id!="content"]')['id'][/\Asymbol_([.\w]+)/, 1]
88
else
99
at_css('main article h1').content
1010
end

lib/docs/scrapers/deno.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ class Deno < UrlScraper
88
}
99

1010
# https://github.com/denoland/manual/blob/main/LICENSE
11+
# https://github.com/denoland/deno/blob/main/LICENSE.md
1112
options[:attribution] = <<-HTML
12-
&copy; 2018–2024 the Deno authors<br>
13+
&copy; 2018–2025 the Deno authors<br>
1314
Licensed under the MIT License.
1415
HTML
1516

1617

1718
html_filters.push 'deno/entries', 'deno/clean_html'
1819

1920
version '2' do
20-
self.release = '2.1.1'
21+
self.release = '2.4.4'
2122
self.base_url = 'https://docs.deno.com/'
2223
self.root_path = 'runtime'
2324
options[:only_patterns] = [/\Aruntime/, /\Aapi\/deno\/~/, /\Adeploy/, /\Asubhosting/]

0 commit comments

Comments
 (0)