File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
[
2
+ [
3
+ " 2025-05-28" ,
4
+ " New documentation: <a href=\" /vertx/\" >Vert.x</a>"
5
+ ],
2
6
[
3
7
" 2025-02-23" ,
4
8
" New documentation: <a href=\" /threejs/\" >Three.js</a>"
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ def call
22
22
23
23
# Remove code highlighting
24
24
css ( 'pre' ) . each do |node |
25
+ node [ 'data-language' ] = node . at_css ( 'code' ) [ 'data-lang' ] if node . at_css ( 'code' )
25
26
node . content = node . content
26
27
end
27
28
Original file line number Diff line number Diff line change 1
1
module Docs
2
2
class Vertx < UrlScraper
3
+ self . name = 'Vert.x'
4
+ self . slug = 'vertx'
3
5
self . type = 'vertx'
4
6
self . links = {
5
7
home : 'http://vertx.io' ,
@@ -21,19 +23,24 @@ class Vertx < UrlScraper
21
23
/blog/ ,
22
24
]
23
25
24
- version '5.0.0 ' do
26
+ version '5' do
25
27
self . release = '5.0.0'
26
28
self . base_url = "https://vertx.io/docs/"
27
29
end
28
30
29
- version '4.5.15 ' do
31
+ version '4' do
30
32
self . release = '4.5.15'
31
- self . base_url = "https://vertx.io/docs/#{ self . version } "
33
+ self . base_url = "https://vertx.io/docs/#{ self . release } "
32
34
end
33
35
34
- version '3.9.16' do
35
- self . release = '4.5.15'
36
- self . base_url = "https://vertx.io/docs/#{ self . version } "
36
+ version '3' do
37
+ self . release = '3.9.16'
38
+ self . base_url = "https://vertx.io/docs/#{ self . release } "
39
+ end
40
+
41
+ def get_latest_version ( opts )
42
+ doc = fetch_doc ( 'https://repo1.maven.org/maven2/io/vertx/vertx-stack-manager/maven-metadata.xml' , opts )
43
+ doc . css ( 'version' ) [ -1 ] . text
37
44
end
38
45
end
39
46
end
You can’t perform that action at this time.
0 commit comments