Update Mongoose documentation (4.0.3)

pull/210/merge
Thibaut 10 years ago
parent ea54230d13
commit 329dfea923

@ -22,14 +22,18 @@ module Docs
entries = [] entries = []
css('h3[id]').each do |node| css('h3[id]').each do |node|
next if node['id'] == 'index_' id = node['id']
next if id == 'index_'
id.sub!('%24', '$')
node['id'] = id
name = node.content.strip name = node.content.strip
name.sub! %r{\(.+\)}, '()' name.sub! %r{\(.+\)}, '()'
next if name.include?(' ') next if name.include?(' ')
type = name.split(/[#\.\(]/).first type = name.split(/[#\.\(]/).first
entries << [name, node['id'], type] entries << [name, id, type]
end end
entries entries

@ -2,10 +2,14 @@ module Docs
class Mongoose < UrlScraper class Mongoose < UrlScraper
self.name = 'Mongoose' self.name = 'Mongoose'
self.type = 'mongoose' self.type = 'mongoose'
self.version = '3.8.19' self.version = '4.0.3'
self.base_url = 'http://mongoosejs.com/docs/' self.base_url = 'http://mongoosejs.com/docs/'
self.root_path = 'index.html' self.root_path = 'index.html'
self.initial_paths = %w(guide.html api.html) self.initial_paths = %w(guide.html api.html)
self.links = {
home: 'http://mongoosejs.com/',
code: 'https://github.com/Automattic/mongoose'
}
html_filters.push 'mongoose/clean_html', 'mongoose/entries' html_filters.push 'mongoose/clean_html', 'mongoose/entries'

Loading…
Cancel
Save