ocaml.rb 661 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Ocaml < FileScraper
  3. self.name = 'OCaml'
  4. self.type = 'ocaml'
  5. self.root_path = 'index.html'
  6. self.release = '4.11'
  7. self.base_url = "https://www.ocaml.org/releases/#{self.release}/htmlman/"
  8. self.links = {
  9. home: 'https://ocaml.org/',
  10. code: 'https://github.com/ocaml/ocaml'
  11. }
  12. html_filters.push 'ocaml/entries', 'ocaml/clean_html'
  13. options[:skip] = %w(
  14. libref/index.html
  15. )
  16. options[:skip_patterns] = [
  17. /\Acompilerlibref\//,
  18. /\Alibref\/type_/,
  19. /\Alibref\/Stdlib\.\w+\.html/,
  20. ]
  21. options[:attribution] = <<-HTML
  22. &copy; INRIA 1995-2020.
  23. HTML
  24. end
  25. end