ソースを参照

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 年 前
コミット
0b6d2f051d
1 ファイル変更1 行追加2 行削除
  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