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.
28 lines
633 B
28 lines
633 B
6 years ago
|
module Docs
|
||
|
class VueRouter < UrlScraper
|
||
|
self.slug = 'vue_router'
|
||
|
self.name = 'Vue Router'
|
||
|
self.type = 'simple'
|
||
|
|
||
|
self.links = {
|
||
|
home: 'https://router.vuejs.org',
|
||
|
code: 'https://github.com/vuejs/vue-router'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'vue_router/entries', 'vue_router/clean_html'
|
||
|
|
||
|
self.release = '3.0.1'
|
||
|
self.base_url = 'https://router.vuejs.org/'
|
||
|
|
||
|
options[:skip_patterns] = [
|
||
|
# Other languages
|
||
|
/^(zh|ja|ru|kr)\//,
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 2013–2018 Evan You, Vue.js contributors<br>
|
||
|
Licensed under the MIT License.
|
||
|
HTML
|
||
|
end
|
||
|
end
|