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 years ago
parent
commit
0b6d2f051d
1 changed files with 1 additions and 2 deletions
  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