nokogiri2.rb 986 B

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/nokgiri"
  7. self.name = 'Nokogiri'
  8. self.slug = 'nokogiri'
  9. self.release = '1.9.0'
  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(options, &block)
  19. get_latest_github_release('sparklemotion', 'nokogiri', options) do |release|
  20. block.call release['tag_name'][1..-1]
  21. end
  22. end
  23. end
  24. end