|
|
|
@ -5,10 +5,10 @@ module Docs
|
|
|
|
|
self.type = 'vue'
|
|
|
|
|
self.links = {
|
|
|
|
|
home: 'https://vuejs.org/',
|
|
|
|
|
code: 'https://github.com/vuejs/vue'
|
|
|
|
|
code: 'https://github.com/vuejs/core'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
options[:only_patterns] = [/guide\//, /api\//]
|
|
|
|
|
options[:only_patterns] = [/^$/ ,/guide\//, /api\//]
|
|
|
|
|
options[:skip] = %w(guide/team.html)
|
|
|
|
|
options[:skip_patterns] = [/guide\/contributing/]
|
|
|
|
|
options[:replace_paths] = { 'guide/' => 'guide/index.html' }
|
|
|
|
@ -19,16 +19,15 @@ module Docs
|
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
version '3' do
|
|
|
|
|
self.release = '3.2.26'
|
|
|
|
|
self.base_url = 'https://v3.vuejs.org/'
|
|
|
|
|
self.root_path = 'guide/introduction.html'
|
|
|
|
|
self.initial_paths = %w(api/)
|
|
|
|
|
self.release = '3.2.30'
|
|
|
|
|
self.base_url = 'https://vuejs.org/'
|
|
|
|
|
self.initial_paths = %w(guide/introduction.html)
|
|
|
|
|
html_filters.push 'vue/entries_v3', 'vue/clean_html'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
version '2' do
|
|
|
|
|
self.release = '2.6.12'
|
|
|
|
|
self.base_url = 'https://vuejs.org/v2/'
|
|
|
|
|
self.base_url = 'https://v2.vuejs.org/'
|
|
|
|
|
self.root_path = 'guide/index.html'
|
|
|
|
|
self.initial_paths = %w(api/)
|
|
|
|
|
html_filters.push 'vue/entries', 'vue/clean_html'
|
|
|
|
@ -43,7 +42,7 @@ module Docs
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
|
get_npm_version('vue', opts, 'next')
|
|
|
|
|
get_npm_version('vue', opts)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|