module Docs class Socketio < UrlScraper self.name = 'Socket.IO' self.slug = 'socketio' self.type = 'sphinx' self.links = { home: 'https://socket.io/', code: 'https://github.com/socketio/socket.io' } html_filters.push 'socketio/clean_html', 'socketio/entries', 'sphinx/clean_html' options[:trailing_slash] = false options[:skip] = %w(/faq /glossary) options[:attribution] = <<-HTML © 2014–2021 Automattic<br> Licensed under the MIT License. HTML version '4' do self.release = '4.5.2' self.base_url = "https://socket.io/docs/v#{version}" end version '3' do self.release = '3.1.2' 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 endend
module Docs
class Socketio < UrlScraper
self.name = 'Socket.IO'
self.slug = 'socketio'
self.type = 'sphinx'
self.links = {
home: 'https://socket.io/',
code: 'https://github.com/socketio/socket.io'
}
html_filters.push 'socketio/clean_html', 'socketio/entries', 'sphinx/clean_html'
options[:trailing_slash] = false
options[:skip] = %w(/faq /glossary)
options[:attribution] = <<-HTML
© 2014–2021 Automattic<br>
Licensed under the MIT License.
HTML
version '4' do
self.release = '4.5.2'
self.base_url = "https://socket.io/docs/v#{version}"
end
version '3' do
self.release = '3.1.2'
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