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.
26 lines
581 B
26 lines
581 B
module Docs
|
|
class Mongoose < UrlScraper
|
|
self.name = 'Mongoose'
|
|
self.type = 'mongoose'
|
|
self.version = '3.8.19'
|
|
self.base_url = 'http://mongoosejs.com/docs/'
|
|
self.root_path = 'index.html'
|
|
self.initial_paths = %w(guide.html api.html)
|
|
|
|
html_filters.push 'mongoose/clean_html', 'mongoose/entries'
|
|
|
|
options[:container] = '#content'
|
|
|
|
options[:skip] = %w(
|
|
faq.html
|
|
prior.html
|
|
migration.html
|
|
plugins)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2010 LearnBoost<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|