1
0

ocaml.rb 557 B

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