mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
831 B
37 lines
831 B
module Docs
|
|
class Socketio < UrlScraper
|
|
self.name = 'Socket.IO'
|
|
self.slug = 'socketio'
|
|
self.type = 'socketio'
|
|
self.links = {
|
|
home: 'http://socket.io/',
|
|
code: 'https://github.com/socketio/socket.io'
|
|
}
|
|
|
|
html_filters.push 'socketio/clean_html', 'socketio/entries'
|
|
|
|
options[:trailing_slash] = false
|
|
options[:skip] = %w(/faq /glossary)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2014–2020 Automattic<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
version '3' do
|
|
self.release = '3.0.5'
|
|
self.base_url = "https://socket.io/docs/v#{version}"
|
|
end
|
|
|
|
version '2' do
|
|
self.release = '2.4.0'
|
|
self.base_url = "https://socket.io/docs/v#{version}"
|
|
end
|
|
|
|
def get_latest_version(opts)
|
|
get_npm_version('socket.io', opts)
|
|
end
|
|
|
|
end
|
|
end
|