Skip to content

Commit 2745577

Browse files
committed
Update Tcl/Tk documentation (8.6.6)
1 parent a621d3f commit 2745577

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lib/docs/filters/tcl_tk/entries.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ class EntriesFilter < Docs::EntriesFilter
1616
}
1717

1818
def get_name
19-
if slug == 'contents.htm'
20-
TYPE_MAP[slug.split('/').first]
19+
if slug.end_with?('contents.htm')
20+
slug.split('/').first
2121
else
2222
slug.split('/').last.remove('.htm')
2323
end
2424
end
2525

2626
def get_type
27-
return nil if name == 'contents'
2827
TYPE_MAP.fetch(slug.split('/').first)
2928
end
3029

lib/docs/scrapers/tcl_tk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class TclTk < UrlScraper
33
self.name = 'Tcl/Tk'
44
self.type = 'tcl_tk'
55
self.slug = 'tcl_tk'
6-
self.release = '8.6'
6+
self.release = '8.6.6'
77
self.base_url = 'https://www.tcl.tk/man/tcl/'
88
self.root_path = 'contents.htm'
99

0 commit comments

Comments
 (0)