ソースを参照

Update JavaScript documentation

Simon Legner 10 ヶ月 前
コミット
cb3bb1d76e

+ 1 - 1
lib/docs/filters/core/normalize_urls.rb

@@ -42,7 +42,7 @@ module Docs
     def fix_url(url)
       if context[:redirections]
         url = URL.parse(url)
-        path = url.path.downcase
+        path = url.path ? url.path.downcase : nil
 
         if context[:redirections].key?(path)
           url.path = context[:redirections][path]

+ 1 - 1
lib/docs/scrapers/mdn/javascript.rb

@@ -3,7 +3,7 @@ module Docs
     prepend FixInternalUrlsBehavior
     prepend FixRedirectionsBehavior
 
-    # release = '2024-11-18'
+    # release = '2025-01-30'
     self.name = 'JavaScript'
     self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference'
     self.links = {