[devdocsgjs/main: 979/1867] Fix Missing Jest Documentation




commit 0b6d2f051d21f2e7fbac67b074af23d87529a642
Author: Jason Butz <736696+jbutz users noreply github com>
Date:   Tue Nov 26 13:22:54 2019 +0000

    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.

 lib/docs/filters/jest/entries.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/jest/entries.rb b/lib/docs/filters/jest/entries.rb
index febe3e7f..14a697c2 100644
--- a/lib/docs/filters/jest/entries.rb
+++ b/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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]