From 6ad0784fbeb5f5cf98304efd6e0942cce48decf7 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 7 Dec 2021 21:30:59 +0100 Subject: [PATCH] Rename and update Web APIs documentation Fixes #1577. --- assets/javascripts/news.json | 4 ++++ lib/docs.rb | 2 +- lib/docs/scrapers/mdn/dom.rb | 7 ++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index f011506e..f5abd69c 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,4 +1,8 @@ [ + [ + "2021-12-07", + "Renamed documentation: Web APIs" + ], [ "2021-12-05", "New documentation: esbuild" diff --git a/lib/docs.rb b/lib/docs.rb index abea0915..84c4af59 100644 --- a/lib/docs.rb +++ b/lib/docs.rb @@ -44,7 +44,7 @@ module Docs end def self.defaults - %w(css dom html http javascript).map(&method(:find)) + %w(css 'Web APIs' html http javascript).map(&method(:find)) end def self.installed diff --git a/lib/docs/scrapers/mdn/dom.rb b/lib/docs/scrapers/mdn/dom.rb index 07eb43fe..21abd46c 100644 --- a/lib/docs/scrapers/mdn/dom.rb +++ b/lib/docs/scrapers/mdn/dom.rb @@ -1,13 +1,14 @@ module Docs class Dom < Mdn - # release = '2021-10-22' - self.name = 'DOM' + # release = '2021-12-07' + self.name = 'Web APIs' + self.slug = 'dom' self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API' html_filters.push 'dom/clean_html', 'dom/entries' - options[:root_title] = 'DOM' + options[:root_title] = 'Web APIs' end end