django.rb 878 B

123456789101112131415161718192021222324252627282930313233343536
  1. module Docs
  2. class Django < FileScraper
  3. self.name = 'Django'
  4. self.type = 'sphinx'
  5. self.version = '1.7.1'
  6. self.dir = '/Users/Thibaut/DevDocs/Docs/Django'
  7. self.base_url = 'https://docs.djangoproject.com/en/1.7/'
  8. self.root_path = 'index.html'
  9. html_filters.push 'django/entries', 'django/clean_html'
  10. text_filters.push 'django/fix_urls'
  11. options[:container] = '#bd'
  12. options[:skip] = %w(
  13. contents.html
  14. genindex.html
  15. py-modindex.html
  16. glossary.html
  17. search.html
  18. intro/whatsnext.html)
  19. options[:skip_patterns] = [
  20. /\Afaq\//,
  21. /\Ainternals\//,
  22. /\Amisc\//,
  23. /\Areleases\//,
  24. /\A_/,
  25. /flattened\-index\.html/]
  26. options[:attribution] = <<-HTML
  27. &copy; Django Software Foundation and individual contributors<br>
  28. Licensed under the BSD License.
  29. HTML
  30. end
  31. end