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.
devdocs/lib/docs/scrapers/haxe.rb

59 lines
1.2 KiB

module Docs
class Haxe < UrlScraper
self.name = 'Haxe'
self.type = 'haxe'
self.release = '3.3.0'
self.base_url = 'http://api.haxe.org/'
html_filters.push 'haxe/clean_html', 'haxe/entries'
options[:container] = '.span9'
options[:attribution] = <<-HTML
&copy; 2005&ndash;2016 Haxe Foundation<br>
Licensed under a MIT license.
HTML
version do
self.links = {
home: 'http://haxe.org',
code: 'https://github.com/HaxeFoundation/haxe'
}
options[:skip_patterns] = [/\A(?:cpp|cs|flash|java|js|neko|php|python)/i]
end
version 'C++' do
self.base_url = 'http://api.haxe.org/cpp/'
end
version 'C#' do
self.base_url = 'http://api.haxe.org/cs/'
end
version 'Flash' do
self.base_url = 'http://api.haxe.org/flash/'
end
version 'Java' do
self.base_url = 'http://api.haxe.org/java/'
end
version 'JavaScript' do
self.base_url = 'http://api.haxe.org/js/'
end
version 'Neko' do
self.base_url = 'http://api.haxe.org/neko/'
end
version 'PHP' do
self.base_url = 'http://api.haxe.org/php/'
end
version 'Python' do
self.base_url = 'http://api.haxe.org/python/'
end
end
end