[devdocsgjs/main: 1302/1867] Minor fix to Knockout documentation
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1302/1867] Minor fix to Knockout documentation
- Date: Fri, 19 Nov 2021 23:47:52 +0000 (UTC)
commit 2272492aeaaca0ddbb5a7c145207c90b42806500
Author: Phil Scherer <pnscher evoforge org>
Date: Tue Nov 24 22:45:38 2020 +0000
Minor fix to Knockout documentation
lib/docs/filters/knockout/entries.rb | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/lib/docs/filters/knockout/entries.rb b/lib/docs/filters/knockout/entries.rb
index 1280868d..6b4a9c66 100644
--- a/lib/docs/filters/knockout/entries.rb
+++ b/lib/docs/filters/knockout/entries.rb
@@ -18,6 +18,7 @@ module Docs
name = at_css('h1').content.strip
name.remove! 'The '
name.sub! %r{"(.+?)"}, '\1'
+ name.sub! %r{"(.+?)"}, '\1'
name.gsub!(/ [A-Z]/) { |str| str.downcase! }
name
end
@@ -27,10 +28,12 @@ module Docs
'Observables'
elsif slug =~ /component/i
'Components'
- elsif slug.include?('binding') && !name.end_with?('binding')
- 'Binding'
elsif slug.include? 'binding'
- 'Bindings'
+ if at_css('#purpose')
+ 'Bindings'
+ else
+ 'Binding'
+ end
elsif slug.include? 'plugin'
'Plugins'
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]