mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
24 lines
630 B
Ruby
24 lines
630 B
Ruby
module Docs
|
|
class Vue < UrlScraper
|
|
self.name = 'Vue.js'
|
|
self.slug = 'vue'
|
|
self.type = 'vue'
|
|
self.release = '1.0.24'
|
|
self.base_url = 'https://vuejs.org'
|
|
self.root_path = '/guide/index.html'
|
|
self.initial_paths = %w(/api/index.html)
|
|
self.links = {
|
|
home: 'https://vuejs.org/',
|
|
code: 'https://github.com/vuejs/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
|