2018-10-03 21:50:22 +02:00
|
|
|
module Docs
|
|
|
|
class VueRouter < UrlScraper
|
|
|
|
self.name = 'Vue Router'
|
2019-08-13 18:14:58 +02:00
|
|
|
self.slug = 'vue_router'
|
2018-10-03 21:50:22 +02:00
|
|
|
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'
|
|
|
|
|
|
|
|
options[:skip_patterns] = [
|
|
|
|
# Other languages
|
2018-10-11 19:33:24 +02:00
|
|
|
/^(zh|ja|ru|kr|fr)\//,
|
2018-10-03 21:50:22 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
2019-08-13 18:14:58 +02:00
|
|
|
© 2013–present Evan You<br>
|
2018-10-03 21:50:22 +02:00
|
|
|
Licensed under the MIT License.
|
|
|
|
HTML
|
2019-08-13 18:14:58 +02:00
|
|
|
|
2021-01-30 00:38:53 +01:00
|
|
|
version '4' do
|
2021-10-22 21:42:39 +02:00
|
|
|
self.release = '4.0.12'
|
2021-01-30 00:38:53 +01:00
|
|
|
self.base_url = 'https://next.router.vuejs.org/'
|
|
|
|
end
|
|
|
|
|
|
|
|
version '3' do
|
|
|
|
self.release = '3.5.1'
|
|
|
|
self.base_url = 'https://router.vuejs.org/'
|
|
|
|
end
|
|
|
|
|
2019-08-13 18:14:58 +02:00
|
|
|
def get_latest_version(opts)
|
2021-01-30 00:38:53 +01:00
|
|
|
get_npm_version('vue-router', opts, 'next')
|
2019-08-13 18:14:58 +02:00
|
|
|
end
|
2018-10-03 21:50:22 +02:00
|
|
|
end
|
|
|
|
end
|