Unified · Split
| @@ -1,4 +1,8 @@ | ||
| 1 | 1 | [ |
| 2 | + [ | |
| 3 | + "2022-01-09", | |
| 4 | + "New documentation: <a href=\"/deno/\">Deno</a>" | |
| 5 | + ], | |
| 2 | 6 | [ |
| 3 | 7 | "2021-12-29", |
| 4 | 8 | "New documentation: <a href=\"/point_cloud_library/\">PointCloudLibrary</a>" |
| @@ -232,6 +232,11 @@ credits = [ · 231 unmodified lines | ||
| 232 | 232 | '2012 the Dart project authors', |
| 233 | 233 | 'CC BY-SA', |
| 234 | 234 | 'https://creativecommons.org/licenses/by-sa/4.0/' |
| 235 | + ], [ | |
| 236 | + 'Deno', | |
| 237 | + '2018–2021 the Deno authors', | |
| 238 | + 'MIT', | |
| 239 | + 'https://raw.githubusercontent.com/denoland/manual/main/LICENSE' | |
| 235 | 240 | ], [ |
| 236 | 241 | 'Django', |
| 237 | 242 | 'Django Software Foundation and individual contributors', |
| @@ -0,0 +1,22 @@ | ||
| 1 | +module Docs | |
| 2 | + class Deno | |
| 3 | + class CleanHtmlFilter < Filter | |
| 4 | + def call | |
| 5 | + if root_page? | |
| 6 | + @doc = at_css('h2[id]').parent.parent | |
| 7 | + else | |
| 8 | + @doc = at_css('article') | |
| 9 | + end | |
| 10 | + | |
| 11 | + css('*[aria-label="Anchor"]').remove | |
| 12 | + css('*[class]').remove_attribute('class') | |
| 13 | + css('pre').each do |node| | |
| 14 | + node['data-language'] = 'typescript' | |
| 15 | + end | |
| 16 | + xpath('//a[text()="[src]"]').remove | |
| 17 | + | |
| 18 | + doc | |
| 19 | + end | |
| 20 | + end | |
| 21 | + end | |
| 22 | +end | |
| @@ -0,0 +1,15 @@ | ||
| 1 | +module Docs | |
| 2 | + class Deno | |
| 3 | + class EntriesFilter < Docs::EntriesFilter | |
| 4 | + | |
| 5 | + def get_name | |
| 6 | + at_css('h1').content | |
| 7 | + end | |
| 8 | + | |
| 9 | + def get_type | |
| 10 | + 'Deno CLI APIs' | |
| 11 | + end | |
| 12 | + | |
| 13 | + end | |
| 14 | + end | |
| 15 | +end | |
| @@ -0,0 +1,23 @@ | ||
| 1 | +module Docs | |
| 2 | + class Deno < UrlScraper | |
| 3 | + self.name = 'Deno' | |
| 4 | + self.type = 'simple' | |
| 5 | + self.release = '1.17.2' | |
| 6 | + self.base_url = 'https://doc.deno.land/deno/stable/' | |
| 7 | + self.links = { | |
| 8 | + home: 'https://deno.land/', | |
| 9 | + code: 'https://github.com/denoland/deno' | |
| 10 | + } | |
| 11 | + | |
| 12 | + html_filters.push 'deno/entries', 'deno/clean_html' | |
| 13 | + | |
| 14 | + # https://github.com/denoland/manual/blob/main/LICENSE | |
| 15 | + options[:attribution] = <<-HTML | |
| 16 | + © 2018–2021 the Deno authors | |
| 17 | + HTML | |
| 18 | + | |
| 19 | + def get_latest_version(opts) | |
| 20 | + get_latest_github_release('denoland', 'deno', opts) | |
| 21 | + end | |
| 22 | + end | |
| 23 | +end | |
Binary file not shown.
Binary file not shown.
| @@ -0,0 +1 @@ | ||
| 1 | +https://doc.deno.land/static/apple-touch-icon.png | |