[devdocsgjs/main: 234/1867] Reduce number of types
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 234/1867] Reduce number of types
- Date: Fri, 19 Nov 2021 23:47:13 +0000 (UTC)
commit c7da05580e82c6a7f7f0a7b958b2a49e4fc9d251
Author: Szabolcs Légrádi <szabolcs legradi gmail com>
Date: Sun Mar 25 22:30:37 2018 +0200
Reduce number of types
lib/docs/filters/wordpress/entries.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/wordpress/entries.rb b/lib/docs/filters/wordpress/entries.rb
index 012db134..bfcd10b3 100644
--- a/lib/docs/filters/wordpress/entries.rb
+++ b/lib/docs/filters/wordpress/entries.rb
@@ -12,7 +12,13 @@ module Docs
end
def get_type
- if breadcrumbs.size > 1
+ if subpath.starts_with?('classes')
+ 'Classes'
+ elsif subpath.starts_with?('hooks')
+ 'Hooks'
+ elsif subpath.starts_with?('functions')
+ 'Functions'
+ elsif breadcrumbs.size > 1
breadcrumbs.drop(1).join(': ')
else
at_css('.breadcrumbs .trail-end').content
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]