bottle.rb 765 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class Bottle < UrlScraper
  3. self.type = 'sphinx'
  4. self.root_path = 'index.html'
  5. self.links = {
  6. home: 'https://bottle.org/',
  7. code: 'https://github.com/bottlepy/bottle'
  8. }
  9. html_filters.push 'bottle/entries', 'sphinx/clean_html'
  10. options[:container] = '.body'
  11. options[:skip] = %w(changelog.html development.html _modules/bottle.html)
  12. options[:attribution] = <<-HTML
  13. &copy; 2016 Marcel Hellkamp<br>
  14. Licensed under the MIT License.
  15. HTML
  16. version '0.12' do
  17. self.release = '0.12'
  18. self.base_url = "http://bottlepy.org/docs/#{self.version}/"
  19. end
  20. version '0.11' do
  21. self.release = '0.11'
  22. self.base_url = "http://bottlepy.org/docs/#{self.version}/"
  23. end
  24. end
  25. end