nokogiri2.rb 905 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Nokogiri2 < Rdoc
  3. # Instructions:
  4. # 1. Download the latest release at https://github.com/sparklemotion/nokogiri/releases
  5. # 2. Run "bundle install && bundle exec rake docs" (in the Nokogiri directory)
  6. # 4. Copy the "doc" directory to "docs/nokogiri"
  7. self.name = 'Nokogiri'
  8. self.slug = 'nokogiri'
  9. self.release = '1.10.4'
  10. html_filters.replace 'rdoc/entries', 'nokogiri2/entries'
  11. options[:root_title] = 'Nokogiri'
  12. options[:only_patterns] = [/\ANokogiri/, /\AXSD/]
  13. options[:attribution] = <<-HTML
  14. &copy; 2008&ndash;2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,<br>
  15. Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis<br>
  16. Licensed under the MIT License.
  17. HTML
  18. def get_latest_version(opts)
  19. get_latest_github_release('sparklemotion', 'nokogiri', opts)
  20. end
  21. end
  22. end