Pārlūkot izejas kodu

Update Tcl/Tk documentation (8.6.6)

Thibaut Courouble 9 gadi atpakaļ
vecāks
revīzija
2745577cf5
2 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 2 3
      lib/docs/filters/tcl_tk/entries.rb
  2. 1 1
      lib/docs/scrapers/tcl_tk.rb

+ 2 - 3
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
 

+ 1 - 1
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'