d.rb 806 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class D < UrlScraper
  3. include MultipleBaseUrls
  4. self.release = '2.076.0'
  5. self.type = 'd'
  6. self.base_urls = ['https://dlang.org/phobos/', 'https://dlang.org/spec/']
  7. self.root_path = 'index.html'
  8. self.links = {
  9. home: 'https://dlang.org/',
  10. code: 'https://github.com/dlang/phobos'
  11. }
  12. html_filters.push 'd/entries', 'd/clean_html'
  13. options[:skip] = %w(spec.html)
  14. options[:container] = '.container'
  15. options[:root_title] = 'D Programming Language'
  16. options[:title] = false
  17. options[:attribution] = <<-HTML
  18. &copy; 1999&ndash;2017 The D Language Foundation<br>
  19. Licensed under the Boost License 1.0.
  20. HTML
  21. def initial_urls
  22. %w(https://dlang.org/phobos/index.html https://dlang.org/spec/intro.html)
  23. end
  24. end
  25. end