History

Merge pull request #2534 from NasaGeek/tcltk-90-support

Add support for tcl9.0 and fix some other Tcl issues

Simon Legner committed 1 year ago

Commit 8faf9542 parents 59e990a 6b680d16 files · +16 −4Browse files

Unified · Split

6 files
  1. lib/docs/filters/tcl_tk/clean_html.rb +4 −0
  2. lib/docs/scrapers/tcl_tk.rb +14 −6
  3. public/icons/docs/tcl_tk/16.png +0 −0
  4. public/icons/docs/tcl_tk/16@2.png +0 −0
  5. public/icons/docs/tcl_tk/16@2x.png +0 −0
  6. public/icons/docs/tcl_tk/SOURCE +1 −1
lib/docs/filters/tcl_tk/clean_html.rb+4−0
@@ -35,6 +35,10 @@ module Docs · 34 unmodified lines
35 node.content = node.content.capitalize35 node.content = node.content.capitalize
36 end36 end
37 37
38 css('pre').each do |node|
39 node['data-language'] = 'tcl'
40 end
41
38 doc42 doc
39 end43 end
40 end44 end
lib/docs/scrapers/tcl_tk.rb+14−6
@@ -3,11 +3,8 @@ module Docs · 2 unmodified lines
3 self.name = 'Tcl/Tk'3 self.name = 'Tcl/Tk'
4 self.type = 'tcl_tk'4 self.type = 'tcl_tk'
5 self.slug = 'tcl_tk'5 self.slug = 'tcl_tk'
6 self.release = '8.6.6'
7 self.base_url = 'https://www.tcl.tk/man/tcl/'
8 self.root_path = 'contents.htm'
9 self.links = {6 self.links = {
10 home: 'https://www.tcl.tk/',7 home: 'https://www.tcl-lang.org/',
11 code: 'https://sourceforge.net/projects/tcl/files/Tcl/'8 code: 'https://sourceforge.net/projects/tcl/files/Tcl/'
12 }9 }
13 10
@@ -27,11 +24,22 @@ module Docs · 13 unmodified lines
27 ]24 ]
28 25
29 options[:attribution] = <<-HTML26 options[:attribution] = <<-HTML
30 Licensed under <a href="http://tcl.tk/software/tcltk/license.html">Tcl/Tk terms</a>27 Licensed under <a href="http://www.tcl-lang.org/software/tcltk/license.html">Tcl/Tk terms</a>
31 HTML28 HTML
32 29
30 version '9.0' do
31 self.base_url = "https://www.tcl-lang.org/man/tcl#{self.version}/"
32 self.release = '9.0.2'
33 end
34
35 version '8.6' do
36 self.base_url = "https://www.tcl-lang.org/man/tcl#{self.version}/"
37 self.root_path = 'contents.htm'
38 self.release = '8.6.16'
39 end
40
33 def get_latest_version(opts)41 def get_latest_version(opts)
34 doc = fetch_doc('https://www.tcl.tk/man/tcl/contents.htm', opts)42 doc = fetch_doc('https://www.tcl-lang.org/man/tcl/', opts)
35 doc.at_css('h2').content.scan(/Tk([0-9.]+)/)[0][0]43 doc.at_css('h2').content.scan(/Tk([0-9.]+)/)[0][0]
36 end44 end
37 end45 end
public/icons/docs/tcl_tk/16.png+0−0

Binary file not shown.

public/icons/docs/tcl_tk/16@2.png+0−0

Binary file not shown.

public/icons/docs/tcl_tk/16@2x.png+0−0

Binary file not shown.

public/icons/docs/tcl_tk/SOURCE+1−1
@@ -1 +1 @@
1https://commons.wikimedia.org/wiki/File:Tcl.svg1https://www.tcl-lang.org/images/plume.png

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t