nokogiri2.rb 1.0 KB

1234567891011121314151617181920212223242526272829
  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.14.2'
  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;2023 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid,<br>
  16. Karol Bucek, Sam Ruby, Craig Barnes, Stephen Checkoway, Lars Kanis, Sergio Arbeo,<br>
  17. Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick Mahoney
  18. Licensed under the MIT License.
  19. HTML
  20. def get_latest_version(opts)
  21. get_latest_github_release('sparklemotion', 'nokogiri', opts)
  22. end
  23. end
  24. end