Unified · Split
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | |||
| 3 | class CleanHtmlFilter < Filter | 3 | class CleanHtmlFilter < Filter |
| 4 | def call | 4 | def call |
| 5 | if result[:path].start_with?('api/deno/') | 5 | if result[:path].start_with?('api/deno/') |
| 6 | @doc = at_css('main') | 6 | @doc = at_css('main[id!="content"] article', 'main[id!="content"]') |
| 7 | else | 7 | else |
| 8 | @doc = at_css('main article .markdown-body') | 8 | @doc = at_css('main article .markdown-body') |
| 9 | end | 9 | end |
| @@ -25,6 +25,7 @@ module Docs · 15 unmodified lines | |||
| 25 | end | 25 | end |
| 26 | 26 | ||
| 27 | css('a.header-anchor').remove() | 27 | css('a.header-anchor').remove() |
| 28 | css('.breadcrumbs').remove() | ||
| 28 | 29 | ||
| 29 | doc | 30 | doc |
| 30 | end | 31 | end |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | |||
| 4 | 4 | ||
| 5 | def get_name | 5 | def get_name |
| 6 | if result[:path].start_with?('api/deno/') | 6 | 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] |
| 8 | else | 8 | else |
| 9 | at_css('main article h1').content | 9 | at_css('main article h1').content |
| 10 | end | 10 | end |
| @@ -8,8 +8,9 @@ module Docs · 7 unmodified lines | |||
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | # https://github.com/denoland/manual/blob/main/LICENSE | 10 | # https://github.com/denoland/manual/blob/main/LICENSE |
| 11 | # https://github.com/denoland/deno/blob/main/LICENSE.md | ||
| 11 | options[:attribution] = <<-HTML | 12 | options[:attribution] = <<-HTML |
| 12 | © 2018–2024 the Deno authors<br> | 13 | © 2018–2025 the Deno authors<br> |
| 13 | Licensed under the MIT License. | 14 | Licensed under the MIT License. |
| 14 | HTML | 15 | HTML |
| 15 | 16 | ||
| @@ -17,7 +18,7 @@ module Docs · 1 unmodified line | |||
| 17 | html_filters.push 'deno/entries', 'deno/clean_html' | 18 | html_filters.push 'deno/entries', 'deno/clean_html' |
| 18 | 19 | ||
| 19 | version '2' do | 20 | version '2' do |
| 20 | self.release = '2.1.1' | 21 | self.release = '2.4.4' |
| 21 | self.base_url = 'https://docs.deno.com/' | 22 | self.base_url = 'https://docs.deno.com/' |
| 22 | self.root_path = 'runtime' | 23 | self.root_path = 'runtime' |
| 23 | options[:only_patterns] = [/\Aruntime/, /\Aapi\/deno\/~/, /\Adeploy/, /\Asubhosting/] | 24 | options[:only_patterns] = [/\Aruntime/, /\Aapi\/deno\/~/, /\Adeploy/, /\Asubhosting/] |