erlang.rb 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. module Docs
  2. class Erlang < FileScraper
  3. self.type = 'erlang'
  4. self.root_path = 'doc/index.html'
  5. self.links = {
  6. home: 'https://www.erlang.org/',
  7. code: 'https://github.com/erlang/otp'
  8. }
  9. html_filters.insert_after 'container', 'erlang/pre_clean_html'
  10. html_filters.push 'erlang/entries', 'erlang/clean_html'
  11. options[:only_patterns] = [/\Alib/]
  12. options[:skip_patterns] = [
  13. /pdf/,
  14. /release_notes/,
  15. /result/,
  16. /java/,
  17. /\/html\/.*_app\.html\z/,
  18. /_examples\.html\z/,
  19. /\Alib\/edoc/,
  20. /\Alib\/erl_docgen/,
  21. /\Alib\/hipe/,
  22. /\Alib\/ose/,
  23. /\Alib\/test_server/,
  24. /\Alib\/jinterface/,
  25. /\Alib\/wx/,
  26. /\Alib\/ic/,
  27. /\Alib\/Cos/i
  28. ]
  29. options[:attribution] = <<-HTML
  30. &copy; 1999&ndash;2016 Ericsson AB<br>
  31. Licensed under the Apache License, Version 2.0.
  32. HTML
  33. version '19' do
  34. self.release = '19.0'
  35. self.dir = '/Users/Thibaut/DevDocs/Docs/Erlang19'
  36. end
  37. version '18' do
  38. self.release = '18.3'
  39. self.dir = '/Users/Thibaut/DevDocs/Docs/Erlang18'
  40. end
  41. end
  42. end