module Docs class Django < FileScraper self.name = 'Django' self.type = 'sphinx' self.root_path = 'index.html' self.links = { home: 'https://www.djangoproject.com/', code: 'https://github.com/django/django' } html_filters.push 'django/entries', 'sphinx/clean_html', 'django/clean_html' text_filters.push 'django/fix_urls' options[:container] = '#bd' options[:skip] = %w( contents.html genindex.html py-modindex.html glossary.html search.html intro/whatsnext.html) options[:skip_patterns] = [ /\Afaq\//, /\Ainternals\//, /\Amisc\//, /\Areleases\//, /\A_/, /flattened\-index\.html/] options[:attribution] = <<-HTML © Django Software Foundation and individual contributors
Licensed under the BSD License. HTML version '1.10' do self.release = '1.10.0' self.dir = '/Users/Thibaut/DevDocs/Docs/Django110' self.base_url = 'https://docs.djangoproject.com/en/1.10/' end version '1.9' do self.release = '1.9.9' self.dir = '/Users/Thibaut/DevDocs/Docs/Django19' self.base_url = 'https://docs.djangoproject.com/en/1.9/' end version '1.8' do self.release = '1.8.14' self.dir = '/Users/Thibaut/DevDocs/Docs/Django18' self.base_url = 'https://docs.djangoproject.com/en/1.8/' end end end