nim.rb 528 B

123456789101112131415161718192021
  1. module Docs
  2. class Nim < UrlScraper
  3. self.type = 'nim'
  4. self.release = '0.17.2'
  5. self.base_url = 'https://nim-lang.org/docs/'
  6. self.root_path = 'overview.html'
  7. self.links = {
  8. home: 'https://nim-lang.org/',
  9. code: 'https://github.com/nim-lang/Nim'
  10. }
  11. html_filters.push 'nim/entries', 'nim/clean_html'
  12. options[:skip] = %w(theindex.html docgen.txt)
  13. options[:attribution] = <<-HTML
  14. &copy; 2006&ndash;2017 Andreas Rumpf<br>
  15. Licensed under the MIT License.
  16. HTML
  17. end
  18. end