Browse Source

Fix Missing Jest Documentation

The Jest documentation was missing most of the items that should have
been under "The Jest Object". This updates the CSS selector is get
all the nodes for the API pages.
Jason Butz 6 năm trước cách đây
mục cha
commit
0b6d2f051d
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      lib/docs/filters/jest/entries.rb

+ 1 - 2
lib/docs/filters/jest/entries.rb

@@ -22,7 +22,7 @@ module Docs
 
         entries = []
 
-        at_css('.mainContainer ul').css('li > a').each do |node|
+        at_css('.mainContainer h2 + ul, ul.toc-headings').css('li > a').each do |node|
           code = node.at_css('code')
           next if code.nil?
 
@@ -35,7 +35,6 @@ module Docs
 
           entries << [name, id]
         end
-
         entries
       end
     end