26 lines · 690 B · Ruby
RawDownload
module Docs  class Mocha < UrlScraper    self.type = 'simple'    self.release = '9.0.2'    self.base_url = 'https://mochajs.org/'    self.links = {      home: 'https://mochajs.org/',      code: 'https://github.com/mochajs/mocha'    }     html_filters.push 'mocha/clean_html', 'mocha/entries', 'title'     options[:container] = '#content'    options[:title] = 'mocha'    options[:skip_links] = true     options[:attribution] = <<-HTML      &copy; 2011&ndash;2021 JS Foundation and contributors<br>      Licensed under the Creative Commons Attribution 4.0 International License.    HTML     def get_latest_version(opts)      get_npm_version('mocha', opts)    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