We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d966ea commit 589aeb7Copy full SHA for 589aeb7
lib/docs/scrapers/latex.rb
@@ -1,8 +1,10 @@
1
+# coding: utf-8
2
module Docs
3
class Latex < UrlScraper
4
self.name = 'LaTeX'
5
self.slug = 'latex'
6
self.type = 'simple'
7
+ self.release = 'April 2021'
8
self.links = {
9
home: 'https://ctan.org/pkg/latex2e-help-texinfo/'
10
}
@@ -18,5 +20,12 @@ class Latex < UrlScraper
18
20
Public Domain Software
19
21
HTML
22
23
+ def get_latest_version(opts)
24
+ body = fetch('https://latexref.xyz/', opts)
25
+ body = body.scan(/\(\w+\s\d+\)/)[0]
26
+ body.sub!('(', '')
27
+ body.sub!(')', '')
28
+ end
29
+
30
end
31
0 commit comments