1
0

jsdoc.rb 824 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class Jsdoc < UrlScraper
  3. self.name = 'JSDoc'
  4. self.type = 'simple'
  5. self.release = '3.5.5'
  6. self.base_url = 'http://usejsdoc.org/'
  7. self.root_path = 'index.html'
  8. self.links = {
  9. home: 'http://usejsdoc.org/',
  10. code: 'https://github.com/jsdoc3/jsdoc'
  11. }
  12. html_filters.push 'jsdoc/clean_html', 'jsdoc/entries'
  13. options[:trailing_slash] = false
  14. options[:container] = 'article'
  15. options[:skip] = [
  16. 'about-license-jsdoc3.html'
  17. ]
  18. options[:attribution] = <<-HTML
  19. &copy; 2011&ndash;2017 the contributors to the JSDoc 3 documentation project<br>
  20. Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
  21. HTML
  22. def get_latest_version(opts)
  23. get_latest_github_release('jsdoc3', 'jsdoc', opts)
  24. end
  25. end
  26. end