1
0

godot.rb 729 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Godot < UrlScraper
  3. self.type = 'sphinx_simple'
  4. self.links = {
  5. home: 'https://godotengine.org/',
  6. code: 'https://github.com/godotengine/godot'
  7. }
  8. html_filters.push 'godot/entries', 'godot/clean_html', 'sphinx/clean_html'
  9. # `learning/` contains the guided learning materials, and `classes/`
  10. # contains the API reference.
  11. options[:only_patterns] = [/\Alearning\//, /\Aclasses\//]
  12. options[:attribution] = <<-HTML
  13. &copy; Copyright 2014&ndash;2017, Juan Linietsky, Ariel Manzur and the Godot community (CC-BY 3.0).
  14. HTML
  15. version '2.1' do
  16. self.release = '2.1'
  17. self.base_url = "http://docs.godotengine.org/en/#{self.version}/"
  18. end
  19. end
  20. end