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.
25 lines
632 B
25 lines
632 B
module Docs
|
|
class Vue < UrlScraper
|
|
self.name = 'Vue.js'
|
|
self.slug = 'vue'
|
|
self.type = 'vue'
|
|
self.release = '1.0.13'
|
|
self.base_url = 'http://vuejs.org'
|
|
self.root_path = '/guide/index.html'
|
|
self.initial_paths = %w(/api/index.html)
|
|
self.links = {
|
|
home: 'http://vuejs.org/',
|
|
code: 'https://github.com/yyx990803/vue'
|
|
}
|
|
|
|
html_filters.push 'vue/clean_html', 'vue/entries'
|
|
|
|
options[:only_patterns] = [/\/guide\//, /\/api\//]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2013–2016 Evan You, Vue.js contributors<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|