mirror of https://github.com/freeCodeCamp/devdocs
parent
a23e3c02a4
commit
54f4f1f56d
@ -0,0 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.BluebirdPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
@highlightCode @findAllByClass('language-javascript'), 'javascript'
|
||||
return
|
@ -0,0 +1,11 @@
|
||||
module Docs
|
||||
class Bluebird
|
||||
class CleanHtmlFilter < Filter
|
||||
def call
|
||||
at_css('.post-content').first_element_child.remove
|
||||
css('pre').add_class('language-javascript')
|
||||
doc
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,13 @@
|
||||
module Docs
|
||||
class Bluebird
|
||||
class EntriesFilter < Docs::EntriesFilter
|
||||
def get_name
|
||||
name = at_css('.post-title')
|
||||
if name.nil?
|
||||
name = at_css('h2')
|
||||
end
|
||||
name.text
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,39 @@
|
||||
module Docs
|
||||
class Bluebird < UrlScraper
|
||||
self.name = 'Bluebird'
|
||||
self.type = 'bluebird'
|
||||
self.version = '3.0'
|
||||
self.base_url = 'http://bluebirdjs.com/docs/'
|
||||
self.root_path = '/api-reference.html'
|
||||
self.initial_paths = [
|
||||
'/api-reference.html'
|
||||
]
|
||||
self.links = {
|
||||
home: 'http://bluebirdjs.com',
|
||||
code: 'http://github.com/petkaantanov/bluebird'
|
||||
}
|
||||
|
||||
html_filters.push 'bluebird/clean_html', 'bluebird/entries'
|
||||
|
||||
options[:container] = '.post'
|
||||
|
||||
options[:skip] = %w(
|
||||
anti-patterns.html
|
||||
beginners-guide.html
|
||||
warning-explanations.html
|
||||
contribute.html
|
||||
benchmarks.html
|
||||
deprecated-apis.html
|
||||
changelog.html
|
||||
features.html
|
||||
why-performance.html
|
||||
what-about-generators.html
|
||||
async-dialogs.html
|
||||
support.html
|
||||
install.html)
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
Written by @petkaantanov and contributors
|
||||
HTML
|
||||
end
|
||||
end
|
@ -1 +1 @@
|
||||
[]
|
||||
[{"name":"Angular.js","slug":"angular","type":"angular","version":"1.4.7","index_path":"angular/index.json","db_path":"angular/db.json","links":null,"mtime":1444657214,"db_size":971848},{"name":"Apache HTTP Server","slug":"apache_http_server","type":"apache","version":"2.4.17","index_path":"apache_http_server/index.json","db_path":"apache_http_server/db.json","links":{"home":"http://httpd.apache.org/"},"mtime":1446392878,"db_size":2826573},{"name":"Backbone.js","slug":"backbone","type":"underscore","version":"1.2.3","index_path":"backbone/index.json","db_path":"backbone/db.json","links":{"home":"http://backbonejs.org/","code":"https://github.com/jashkenas/backbone"},"mtime":1442073277,"db_size":82033},{"name":"Bluebird","slug":"bluebird","type":"bluebird","version":"3.0","index_path":"bluebird/index.json","db_path":"bluebird/db.json","links":{"home":"http://bluebirdjs.com","code":"http://github.com/petkaantanov/bluebird"},"mtime":1446581225,"db_size":424951},{"name":"Bower","slug":"bower","type":"bower","version":"1.6.3","index_path":"bower/index.json","db_path":"bower/db.json","links":{"home":"http://bower.io/","code":"https://github.com/bower/bower"},"mtime":1445179203,"db_size":34591},{"name":"Chai","slug":"chai","type":"chai","version":"2.3.0","index_path":"chai/index.json","db_path":"chai/db.json","links":{"home":"http://chaijs.com/","code":"https://github.com/chaijs/chai"},"mtime":1430706732,"db_size":128007},{"name":"Clojure","slug":"clojure","type":"clojure","version":"1.7","index_path":"clojure/index.json","db_path":"clojure/db.json","links":null,"mtime":1436101905,"db_size":524295},{"name":"CoffeeScript","slug":"coffeescript","type":"coffeescript","version":"1.10.0","index_path":"coffeescript/index.json","db_path":"coffeescript/db.json","links":{"home":"http://coffeescript.org","code":"https://github.com/jashkenas/coffeescript"},"mtime":1442073359,"db_size":53981},{"name":"Cordova","slug":"cordova","type":"cordova","version":"5.1.1","index_path":"cordova/index.json","db_path":"cordova/db.json","links":{"home":"http://cordova.apache.org/"},"mtime":1439135934,"db_size":580770},{"name":"CSS","slug":"css","type":"mdn","version":null,"index_path":"css/index.json","db_path":"css/db.json","links":null,"mtime":1445184687,"db_size":5542116},{"name":"D3.js","slug":"d3","type":"d3","version":"3.5.6","index_path":"d3/index.json","db_path":"d3/db.json","links":{"home":"http://d3js.org/","code":"https://github.com/mbostock/d3"},"mtime":1436102054,"db_size":621700},{"name":"Django","slug":"django","type":"sphinx","version":"1.8.4","index_path":"django/index.json","db_path":"django/db.json","links":{"home":"https://www.djangoproject.com/","code":"https://github.com/django/django"},"mtime":1440862930,"db_size":4900789},{"name":"Git","slug":"git","type":"git","version":"2.6.1","index_path":"git/index.json","db_path":"git/db.json","links":{"home":"http://git-scm.com/","code":"https://github.com/git/git"},"mtime":1446564700,"db_size":1418799},{"name":"HTML","slug":"html","type":"mdn","version":null,"index_path":"html/index.json","db_path":"html/db.json","links":null,"mtime":1445184800,"db_size":2009435}]
|
Loading…
Reference in new issue