From e8c16a88e6ac70f9ffde725e7b94053f62aa3c77 Mon Sep 17 00:00:00 2001 From: Phil Scherer Date: Sat, 14 Nov 2020 19:27:57 +0000 Subject: [PATCH] Fix Codeigniter scraper --- assets/stylesheets/pages/_sphinx.scss | 1 + lib/docs/filters/codeigniter/entries.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/stylesheets/pages/_sphinx.scss b/assets/stylesheets/pages/_sphinx.scss index ffd71415..3e2c12c8 100644 --- a/assets/stylesheets/pages/_sphinx.scss +++ b/assets/stylesheets/pages/_sphinx.scss @@ -4,6 +4,7 @@ h4 { font-size: 1em; } > dl:not(.docutils) > dt { @extend %block-label, %label-blue; } dd > dl:not(.docutils) > dt { @extend %block-label; } + .class > dt { @extend %block-label, %label-blue; } dt + dt { margin-top: -.5em; } .note, .admonition, div.versionadded, div.versionchanged, .deprecated-removed, .deprecated, .topic { @extend %note; } diff --git a/lib/docs/filters/codeigniter/entries.rb b/lib/docs/filters/codeigniter/entries.rb index d841feab..18ea7346 100644 --- a/lib/docs/filters/codeigniter/entries.rb +++ b/lib/docs/filters/codeigniter/entries.rb @@ -23,7 +23,7 @@ module Docs entries = [] css('.class').each do |node| - class_name = node.at_css('dt > .descname').content + class_name = node.at_css('dt > .descname').content.split('\\').last class_id = node.at_css('dt[id]')['id'] entries << [class_name, class_id]