History

Rename and update Web APIs documentation

Fixes #1577.

Simon Legner committed 4 years ago

Commit 6ad07841 parent 937bf3b3 files · +9 −4Browse files

Unified · Split

3 files
  1. assets/javascripts/news.json +4 −0
  2. lib/docs.rb +1 −1
  3. lib/docs/scrapers/mdn/dom.rb +4 −3
assets/javascripts/news.json+4−0
@@ -1,4 +1,8 @@
11 [
2+ [
3+ "2021-12-07",
4+ "Renamed documentation: <a href=\"/dom/\">Web APIs</a>"
5+ ],
26 [
37 "2021-12-05",
48 "New documentation: <a href=\"/esbuild/\">esbuild</a>"
lib/docs.rb+1−1
@@ -44,7 +44,7 @@ module Docs · 43 unmodified lines
4444 end
4545
4646 def self.defaults
47− %w(css dom html http javascript).map(&method(:find))
47+ %w(css 'Web APIs' html http javascript).map(&method(:find))
4848 end
4949
5050 def self.installed
lib/docs/scrapers/mdn/dom.rb+4−3
@@ -1,13 +1,14 @@
11 module Docs
22 class Dom < Mdn
33
4− # release = '2021-10-22'
5− self.name = 'DOM'
4+ # release = '2021-12-07'
5+ self.name = 'Web APIs'
6+ self.slug = 'dom'
67 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API'
78
89 html_filters.push 'dom/clean_html', 'dom/entries'
910
10− options[:root_title] = 'DOM'
11+ options[:root_title] = 'Web APIs'
1112
1213 end
1314 end