devdocs/lib/docs/scrapers/markdown.rb

22 lines
487 B
Ruby
Raw Normal View History

2014-07-27 21:58:24 +02:00
module Docs
class Markdown < UrlScraper
self.name = 'Markdown'
2018-10-07 17:07:55 +02:00
self.type = 'simple'
self.base_url = 'https://daringfireball.net/projects/markdown/syntax'
2014-07-27 21:58:24 +02:00
html_filters.push 'markdown/clean_html', 'markdown/entries'
options[:container] = '.article'
options[:skip_links] = true
options[:attribution] = <<-HTML
&copy; 2004 John Gruber<br>
Licensed under the BSD License.
HTML
2019-03-10 03:02:24 +01:00
def get_latest_version(opts)
'1.0.0'
end
2014-07-27 21:58:24 +02:00
end
end