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/zig.rb

25 lines
586 B

module Docs
class Zig < UrlScraper
self.name = 'Zig'
self.type = 'simple'
self.release = '0.9.0'
self.base_url = 'https://ziglang.org/documentation/0.9.0/'
self.links = {
home: 'https://ziglang.org/',
code: 'https://github.com/ziglang/zig'
}
html_filters.push 'zig/entries', 'zig/clean_html'
options[:follow_links] = false
options[:attribution] = <<-HTML
&copy; 20152021, Zig contributors
HTML
def get_latest_version(opts)
tags = get_github_tags('ziglang', 'zig', opts)
tags[0]['name']
end
end
end