mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Minor fix to Knockout documentation
This commit is contained in:
parent
86eb725c22
commit
2272492aea
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue