Update Tcl/Tk documentation (8.6.6)

pull/469/head
Thibaut Courouble 9 years ago
parent a621d3f5cf
commit 2745577cf5

@ -16,15 +16,14 @@ module Docs
} }
def get_name def get_name
if slug == 'contents.htm' if slug.end_with?('contents.htm')
TYPE_MAP[slug.split('/').first] slug.split('/').first
else else
slug.split('/').last.remove('.htm') slug.split('/').last.remove('.htm')
end end
end end
def get_type def get_type
return nil if name == 'contents'
TYPE_MAP.fetch(slug.split('/').first) TYPE_MAP.fetch(slug.split('/').first)
end end

@ -3,7 +3,7 @@ module Docs
self.name = 'Tcl/Tk' self.name = 'Tcl/Tk'
self.type = 'tcl_tk' self.type = 'tcl_tk'
self.slug = 'tcl_tk' self.slug = 'tcl_tk'
self.release = '8.6' self.release = '8.6.6'
self.base_url = 'https://www.tcl.tk/man/tcl/' self.base_url = 'https://www.tcl.tk/man/tcl/'
self.root_path = 'contents.htm' self.root_path = 'contents.htm'

Loading…
Cancel
Save