Thibaut CouroubleMulti-version supportb2d206610 years agoHistory
38 lines · 1.0 KB · Ruby
RawDownload
module Docs  class Python < FileScraper    self.type = 'sphinx'    self.root_path = 'library/index.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      &copy; 1990&ndash;2015 Python Software Foundation<br>      Licensed under the PSF License.    HTML     version '3.5' do      self.release = '3.5.1'      self.dir = '/Users/Thibaut/DevDocs/Docs/Python35' # docs.python.org/3.5/download.html      self.base_url = 'https://docs.python.org/3.5/'       html_filters.push 'python/entries_v3', 'python/clean_html'    end     version '2.7' do      self.release = '2.7.10'      self.dir = '/Users/Thibaut/DevDocs/Docs/Python27' # docs.python.org/2.7/download.html      self.base_url = 'https://docs.python.org/2.7/'       html_filters.push 'python/entries_v2', 'python/clean_html'    end  endend

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t