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 @@
1[1[
2 [
3 "2021-12-07",
4 "Renamed documentation: <a href=\"/dom/\">Web APIs</a>"
5 ],
2 [6 [
3 "2021-12-05",7 "2021-12-05",
4 "New documentation: <a href=\"/esbuild/\">esbuild</a>"8 "New documentation: <a href=\"/esbuild/\">esbuild</a>"
lib/docs.rb+1−1
@@ -44,7 +44,7 @@ module Docs · 43 unmodified lines
44 end44 end
45 45
46 def self.defaults46 def self.defaults
47 %w(css dom html http javascript).map(&method(:find))47 %w(css 'Web APIs' html http javascript).map(&method(:find))
48 end48 end
49 49
50 def self.installed50 def self.installed
lib/docs/scrapers/mdn/dom.rb+4−3
@@ -1,13 +1,14 @@
1module Docs1module Docs
2 class Dom < Mdn2 class Dom < Mdn
3 3
4 # release = '2021-10-22'4 # release = '2021-12-07'
5 self.name = 'DOM'5 self.name = 'Web APIs'
6 self.slug = 'dom'
6 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API'7 self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API'
7 8
8 html_filters.push 'dom/clean_html', 'dom/entries'9 html_filters.push 'dom/clean_html', 'dom/entries'
9 10
10 options[:root_title] = 'DOM'11 options[:root_title] = 'Web APIs'
11 12
12 end13 end
13end14end