Update Vagrant documentation (1.9.2)

pull/602/head
Thibaut Courouble 8 years ago
parent 7bdbac3de7
commit 599310aee8

@ -581,9 +581,9 @@ credits = [
'https://raw.githubusercontent.com/jashkenas/underscore/master/LICENSE' 'https://raw.githubusercontent.com/jashkenas/underscore/master/LICENSE'
], [ ], [
'Vagrant', 'Vagrant',
'2010-2016 Mitchell Hashimoto', '2010-2017 Mitchell Hashimoto',
'MIT', 'MPL',
'https://raw.githubusercontent.com/mitchellh/vagrant/master/LICENSE' 'https://raw.githubusercontent.com/mitchellh/vagrant/master/website/LICENSE.md'
], [ ], [
'Vue.js', 'Vue.js',
'2013-2017 Evan You, Vue.js contributors', '2013-2017 Evan You, Vue.js contributors',

@ -3,12 +3,12 @@ module Docs
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
def get_name def get_name
if slug.start_with?('push/') if slug.start_with?('push/')
name = at_css('h2').try(:content) name = at_css('#main-content h2').try(:content)
elsif slug.start_with?('cli/') elsif slug.start_with?('cli/')
name = at_css('h1 + p > strong > code').try(:content).try(:[], /\s*vagrant\s+[\w\-]+/) name = at_css('#main-content h1 + p > strong > code').try(:content).try(:[], /\s*vagrant\s+[\w\-]+/)
end end
name || at_css('h1').content name || at_css('#main-content h1').content
end end
def get_type def get_type

@ -2,7 +2,7 @@ module Docs
class Vagrant < UrlScraper class Vagrant < UrlScraper
self.name = 'Vagrant' self.name = 'Vagrant'
self.type = 'vagrant' self.type = 'vagrant'
self.release = '1.9.0' self.release = '1.9.2'
self.base_url = 'https://www.vagrantup.com/docs/' self.base_url = 'https://www.vagrantup.com/docs/'
self.root_path = 'index.html' self.root_path = 'index.html'
self.links = { self.links = {
@ -13,8 +13,8 @@ module Docs
html_filters.push 'vagrant/entries', 'vagrant/clean_html' html_filters.push 'vagrant/entries', 'vagrant/clean_html'
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2010&ndash;2016 Mitchell Hashimoto<br> &copy; 2010&ndash;2017 Mitchell Hashimoto<br>
Licensed under the MIT License. Licensed under the MPL 2.0 License.
HTML HTML
end end
end end

Loading…
Cancel
Save