1
0

django.rb 1.2 KB

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