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'
], [
'Vagrant',
'2010-2016 Mitchell Hashimoto',
'MIT',
'https://raw.githubusercontent.com/mitchellh/vagrant/master/LICENSE'
'2010-2017 Mitchell Hashimoto',
'MPL',
'https://raw.githubusercontent.com/mitchellh/vagrant/master/website/LICENSE.md'
], [
'Vue.js',
'2013-2017 Evan You, Vue.js contributors',

@ -3,12 +3,12 @@ module Docs
class EntriesFilter < Docs::EntriesFilter
def get_name
if slug.start_with?('push/')
name = at_css('h2').try(:content)
name = at_css('#main-content h2').try(:content)
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
name || at_css('h1').content
name || at_css('#main-content h1').content
end
def get_type

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

Loading…
Cancel
Save