diff --git a/lib/docs/filters/tcl_tk/entries.rb b/lib/docs/filters/tcl_tk/entries.rb index f364384a..4f1b90f1 100644 --- a/lib/docs/filters/tcl_tk/entries.rb +++ b/lib/docs/filters/tcl_tk/entries.rb @@ -16,15 +16,14 @@ module Docs } def get_name - if slug == 'contents.htm' - TYPE_MAP[slug.split('/').first] + if slug.end_with?('contents.htm') + slug.split('/').first else slug.split('/').last.remove('.htm') end end def get_type - return nil if name == 'contents' TYPE_MAP.fetch(slug.split('/').first) end diff --git a/lib/docs/scrapers/tcl_tk.rb b/lib/docs/scrapers/tcl_tk.rb index 148a3e3f..1e4b2567 100644 --- a/lib/docs/scrapers/tcl_tk.rb +++ b/lib/docs/scrapers/tcl_tk.rb @@ -3,7 +3,7 @@ module Docs self.name = 'Tcl/Tk' self.type = '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.root_path = 'contents.htm'