From 0b6d2f051d21f2e7fbac67b074af23d87529a642 Mon Sep 17 00:00:00 2001 From: Jason Butz <736696+jbutz@users.noreply.github.com> Date: Tue, 26 Nov 2019 13:22:54 +0000 Subject: [PATCH] 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