nim.rb 590 B

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