mirror of https://github.com/freeCodeCamp/devdocs
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.
30 lines
829 B
30 lines
829 B
module Docs
|
|
class Python2 < FileScraper
|
|
self.name = 'Python 2'
|
|
self.slug = 'python2'
|
|
self.version = '2.7.9'
|
|
self.type = 'sphinx'
|
|
self.dir = '/Users/Thibaut/DevDocs/Docs/Python2' # downloaded from docs.python.org/2.7/download.html
|
|
self.base_url = 'http://docs.python.org/2.7/'
|
|
self.root_path = 'library/index.html'
|
|
|
|
html_filters.push 'python2/entries', 'python/clean_html'
|
|
|
|
options[:only_patterns] = [/\Alibrary\//]
|
|
|
|
options[:skip] = %w(
|
|
library/2to3.html
|
|
library/formatter.html
|
|
library/index.html
|
|
library/intro.html
|
|
library/undoc.html
|
|
library/unittest.mock-examples.html
|
|
library/sunau.html)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 1990–2015 Python Software Foundation<br>
|
|
Licensed under the PSF License.
|
|
HTML
|
|
end
|
|
end
|