Browse Source

Update React documentation (0.13.3)

Thibaut 10 năm trước cách đây
mục cha
commit
a9152bdd8b
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      assets/javascripts/views/pages/react.coffee
  2. 1 1
      lib/docs/scrapers/react.rb

+ 1 - 1
assets/javascripts/views/pages/react.coffee

@@ -5,5 +5,5 @@ class app.views.ReactPage extends app.views.BasePage
     for el in @findAllByTag 'pre'
       switch el.getAttribute('data-lang')
         when 'html' then @highlightCode el, 'markup'
-        when 'javascript' then @highlightCode el, 'javascript'
+        when 'javascript', 'js' then @highlightCode el, 'javascript'
     return

+ 1 - 1
lib/docs/scrapers/react.rb

@@ -2,7 +2,7 @@ module Docs
   class React < UrlScraper
     self.name = 'React'
     self.type = 'react'
-    self.version = '0.13.2'
+    self.version = '0.13.3'
     self.base_url = 'http://facebook.github.io/react/docs/'
     self.root_path = 'getting-started.html'
     self.links = {