1
0

phaser.rb 857 B

123456789101112131415161718192021222324252627282930313233
  1. module Docs
  2. class Phaser < UrlScraper
  3. self.type = 'phaser'
  4. self.release = '2.6.2'
  5. self.base_url = "http://phaser.io/docs/#{release}"
  6. self.root_path = '/index'
  7. self.links = {
  8. home: 'http://phaser.io/',
  9. code: 'https://github.com/photonstorm/phaser'
  10. }
  11. html_filters.push 'phaser/entries', 'phaser/clean_html'
  12. options[:skip] = %w(
  13. /docs_pixi-jsdoc.js.html
  14. /p2.Body.html
  15. /Phaser.html
  16. /PIXI.html
  17. /PIXI.WebGLMaskManager.html
  18. /PIXI.WebGLShaderManager.html
  19. /PIXI.WebGLSpriteBatch.html
  20. /PIXI.WebGLStencilManager.html)
  21. options[:attribution] = <<-HTML
  22. &copy; 2016 Richard Davey, Photon Storm Ltd.<br>
  23. Licensed under the MIT License.
  24. HTML
  25. def get_latest_version(opts)
  26. get_latest_github_release('photonstorm', 'phaser', opts)
  27. end
  28. end
  29. end