| @@ -3,8 +3,6 @@ module Docs · 2 unmodified lines |
| 3 | self.name = 'Socket.IO' | 3 | self.name = 'Socket.IO' |
| 4 | self.slug = 'socketio' | 4 | self.slug = 'socketio' |
| 5 | self.type = 'socketio' | 5 | self.type = 'socketio' |
| 6 | self.release = '1.4.5' | | |
| 7 | self.base_url = 'http://socket.io/docs/' | | |
| 8 | self.links = { | 6 | self.links = { |
| 9 | home: 'http://socket.io/', | 7 | home: 'http://socket.io/', |
| 10 | code: 'https://github.com/socketio/socket.io' | 8 | code: 'https://github.com/socketio/socket.io' |
| @@ -12,17 +10,27 @@ module Docs · 1 unmodified line |
| 12 | | 10 | |
| 13 | html_filters.push 'socketio/clean_html', 'socketio/entries' | 11 | html_filters.push 'socketio/clean_html', 'socketio/entries' |
| 14 | | 12 | |
| 15 | options[:container] = '#content' | | |
| 16 | options[:trailing_slash] = false | 13 | options[:trailing_slash] = false |
| 17 | options[:skip] = %w(faq) | 14 | options[:skip] = %w(/faq /glossary) |
| 18 | | 15 | |
| 19 | options[:attribution] = <<-HTML | 16 | options[:attribution] = <<-HTML |
| 20 | © 2014–2015 Automattic<br> | 17 | © 2014–2020 Automattic<br> |
| 21 | Licensed under the MIT License. | 18 | Licensed under the MIT License. |
| 22 | HTML | 19 | HTML |
| 23 | | 20 | |
| | 21 | version '3' do |
| | 22 | self.release = '3.0.5' |
| | 23 | self.base_url = "https://socket.io/docs/v#{version}" |
| | 24 | end |
| | 25 | |
| | 26 | version '2' do |
| | 27 | self.release = '2.4.0' |
| | 28 | self.base_url = "https://socket.io/docs/v#{version}" |
| | 29 | end |
| | 30 | |
| 24 | def get_latest_version(opts) | 31 | def get_latest_version(opts) |
| 25 | get_npm_version('socket.io', opts) | 32 | get_npm_version('socket.io', opts) |
| 26 | end | 33 | end |
| | 34 | |
| 27 | end | 35 | end |
| 28 | end | 36 | end |