nokogiri2.rb 954 B

12345678910111213141516171819202122232425262728
  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.13.0'
  10. self.base_url = "https://nokogiri.org/rdoc/"
  11. html_filters.replace 'rdoc/entries', 'nokogiri2/entries'
  12. options[:root_title] = 'Nokogiri'
  13. options[:only_patterns] = [/\ANokogiri/, /\AXSD/]
  14. options[:attribution] = <<-HTML
  15. &copy; 2008&ndash;2021 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,<br>
  16. Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis<br>
  17. Licensed under the MIT License.
  18. HTML
  19. def get_latest_version(opts)
  20. get_latest_github_release('sparklemotion', 'nokogiri', opts)
  21. end
  22. end
  23. end