elixir.rb 801 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class Elixir < UrlScraper
  3. self.name = 'Elixir'
  4. self.type = 'elixir'
  5. self.release = '1.2.0'
  6. self.base_url = 'http://elixir-lang.org/docs/stable/'
  7. self.root_path = 'elixir/api-reference.html'
  8. self.initial_paths = %w(
  9. eex/EEx.html
  10. ex_unit/ExUnit.html
  11. iex/IEx.html
  12. logger/Logger.html
  13. mix/Mix.html
  14. )
  15. self.links = {
  16. home: 'http://elixir-lang.org/',
  17. code: 'https://github.com/elixir-lang/elixir'
  18. }
  19. html_filters.push 'elixir/clean_html', 'elixir/entries', 'title'
  20. options[:container] = "#content"
  21. options[:title] = false
  22. options[:root_title] = 'Elixir'
  23. options[:attribution] = <<-HTML
  24. &copy; 2012 Plataformatec<br>
  25. Licensed under the Apache License, Version 2.0.
  26. HTML
  27. end
  28. end