django.rb 996 B

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