You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
module Docs
|
|
|
|
class Django < FileScraper
|
|
|
|
self.name = 'Django'
|
|
|
|
self.type = 'sphinx'
|
|
|
|
self.version = '1.8.0'
|
|
|
|
self.dir = '/Users/Thibaut/DevDocs/Docs/Django'
|
|
|
|
self.base_url = 'https://docs.djangoproject.com/en/1.8/'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.links = {
|
|
|
|
home: 'https://www.djangoproject.com/',
|
|
|
|
code: 'https://github.com/django/django'
|
|
|
|
}
|
|
|
|
|
|
|
|
html_filters.push 'django/entries', '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<br>
|
|
|
|
Licensed under the BSD License.
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|