Thibaut CouroubleFinish CodeIgniter scraper0efa4c310 years agoHistory
42 lines · 996 B · Ruby
RawDownload
module Docs  class Codeigniter < UrlScraper    self.name = 'CodeIgniter'    self.type = 'sphinx'    self.base_url = 'https://www.codeigniter.com/user_guide/'    self.root_path = 'index.html'    self.links = {      home: 'https://codeigniter.com/',      code: 'https://github.com/bcit-ci/CodeIgniter'    }     html_filters.push 'codeigniter/clean_html', 'codeigniter/entries'     options[:container] = '.document'     options[:skip] = %w(      license.html      changelog.html      DCO.html      general/welcome.html      general/requirements.html      general/credits.html      libraries/index.html      helpers/index.html    )     options[:skip_patterns] = [      /\Acontributing/,      /\Adocumentation/,      /\Ainstallation\/upgrade/    ]     options[:attribution] = <<-HTML      &copy; 2014&ndash;2016 British Columbia Institute of Technology<br>      Licensed under the MIT License.    HTML     version '3.0' do      self.release = '3.0.4'    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