@@ -2,22 +2,40 @@ module Docs
22 class Deno < UrlScraper
33 self . name = 'Deno'
44 self . type = 'simple'
5- self . release = '1.27.0'
6- self . base_url = 'https://doc.deno.land/deno/stable/'
75 self . links = {
8- home : 'https://deno.land /' ,
6+ home : 'https://deno.com /' ,
97 code : 'https://github.com/denoland/deno'
108 }
119
12- html_filters . push 'deno/entries' , 'deno/clean_html'
13-
1410 # https://github.com/denoland/manual/blob/main/LICENSE
1511 options [ :attribution ] = <<-HTML
16- © 2018–2022 the Deno authors
12+ © 2018–2024 the Deno authors< br >
13+ Licensed under the MIT License.
1714 HTML
1815
16+
17+ html_filters . push 'deno/entries' , 'deno/clean_html'
18+
19+ version '2' do
20+ self . release = '2.1.1'
21+ self . base_url = 'https://docs.deno.com/'
22+ self . root_path = 'runtime'
23+ options [ :only_patterns ] = [ /\A runtime/ , /\A api\/ deno\/ ~/ , /\A deploy/ , /\A subhosting/ ]
24+ options [ :skip_patterns ] = [
25+ /\A runtime\/ manual/ ,
26+ /\A api\/ deno\/ .+\. prototype\z / , # all prototype pages get redirected to the main page
27+ /\A api\/ deno\/ ~\/ Deno\. jupyter\. MediaBundle.+/ , # docs unavailable
28+ /\A api\/ deno\/ ~\/ Deno\. OpMetrics/ , # deprecated in deno 2
29+ ]
30+ options [ :trailing_slash ] = false
31+ end
32+
33+ version '1' do
34+ self . release = '1.27.0'
35+ end
36+
1937 def get_latest_version ( opts )
2038 get_latest_github_release ( 'denoland' , 'deno' , opts )
21- end
39+ end
2240 end
2341end
0 commit comments