codeceptjs.rb 766 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Codeceptjs < UrlScraper
  3. self.name = 'CodeceptJS'
  4. self.type = 'codeceptjs'
  5. self.root_path = 'index.html'
  6. self.release = '0.4.13'
  7. self.base_url = 'http://codecept.io/'
  8. self.links = {
  9. home: 'http://codecept.io/',
  10. code: 'https://github.com/codeception/codeceptjs'
  11. }
  12. html_filters.push 'codeceptjs/clean_html', 'codeceptjs/entries', 'title'
  13. options[:root_title] = 'CodeceptJS'
  14. options[:title] = false
  15. options[:skip_links] = ->(filter) { !filter.root_page? }
  16. options[:skip_patterns] = [/changelog/, /quickstart\z/]
  17. options[:attribution] = <<-HTML
  18. &copy; 2015 DavertMik &lt;davert@codegyre.com&gt; (http://codegyre.com)<br>
  19. Licensed under the MIT License.
  20. HTML
  21. end
  22. end