small adjustments
This commit is contained in:
parent
69141c0039
commit
9b88ecba1a
@ -9,13 +9,6 @@ export default [
|
||||
url: '/docs',
|
||||
type: 'inbound',
|
||||
},
|
||||
{
|
||||
text: 'Book',
|
||||
url:
|
||||
'https://www.amazon.com/gp/product/1449335837/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1449335837&linkCode=as2&tag=vagrant-20',
|
||||
type: 'outbound',
|
||||
},
|
||||
|
||||
{
|
||||
text: 'VMWare',
|
||||
url: '/vmware',
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
export default '2.2.9'
|
||||
export const VMWARE_UTILITY_VERSION = '1.0.7'
|
||||
export const VMWARE_UTILITY_VERSION = '1.0.9'
|
||||
|
||||
@ -1,60 +0,0 @@
|
||||
---
|
||||
layout: "downloads"
|
||||
sidebar_current: "vmware"
|
||||
page_title: "Vagrant VMware Utility Download"
|
||||
description: |-
|
||||
This page lists all the available downloads for the Vagrant VMware Utility.
|
||||
---
|
||||
|
||||
<h1>Download Vagrant VMware Utility</h1>
|
||||
|
||||
<div class="downloads">
|
||||
<div class="description row">
|
||||
<div class="col-md-12">
|
||||
<p>
|
||||
Below are the available downloads for the latest version of the Vagrant
|
||||
VMware Utility (<%= vmware_utility_version %>). Please download the proper package
|
||||
for your operating system and architecture.
|
||||
</p>
|
||||
<p>
|
||||
You can find the
|
||||
<a href="https://releases.hashicorp.com/vagrant-vmware-utility/<%= vmware_utility_version %>/vagrant-vmware-utility_<%= vmware_utility_version %>_SHA256SUMS">
|
||||
SHA256 checksums for the Vagrant VMware Utility <%= vmware_utility_version %>
|
||||
</a>
|
||||
online and you can
|
||||
<a href="https://releases.hashicorp.com/vagrant-vmware-utility/<%= vmware_utility_version %>/vagrant-vmware-utility_<%= vmware_utility_version %>_SHA256SUMS.sig">
|
||||
verify the checksum's signature file
|
||||
</a>,
|
||||
which has been signed using <a href="https://www.hashicorp.com/security.html" target="_blank" rel="nofollow noopener noreferrer">HashiCorp's GPG key</a>.
|
||||
You can also <a href="https://releases.hashicorp.com/vagrant-vmware-utility/" target="_blank" rel="nofollow noopener noreferrer">download older versions of
|
||||
the Vagrant VMware utility</a> from the releases service.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% Middleman::HashiCorp::Releases.fetch(vmware_utility_name, vmware_utility_version).each do |os, arches| %>
|
||||
<% next if os == "web" %>
|
||||
<div class="row">
|
||||
<div class="col-md-12 download">
|
||||
<div class="icon pull-left"><%= system_icon(os) %></div>
|
||||
<div class="details">
|
||||
<h2 class="os-name"><%= pretty_os(os) %></h2>
|
||||
<ul>
|
||||
<% arches.each do |arch, url| %>
|
||||
<li><a href="<%= url %>"><%= pretty_arch(arch) %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 poweredby">
|
||||
<a href="https://www.fastly.com?utm_source=hashicorp" target="_blank" rel="nofollow noopener noreferrer">
|
||||
<%= inline_svg "fastly.svg", height: 50 %>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
50
website/pages/vmware/downloads/index.jsx
Normal file
50
website/pages/vmware/downloads/index.jsx
Normal file
@ -0,0 +1,50 @@
|
||||
import s from './style.module.css'
|
||||
import { VMWARE_UTILITY_VERSION } from '../../../data/version.js'
|
||||
import ProductDownloader from '@hashicorp/react-product-downloader'
|
||||
import Head from 'next/head'
|
||||
import HashiHead from '@hashicorp/react-head'
|
||||
|
||||
export default function DownloadsPage({ downloadData }) {
|
||||
return (
|
||||
<div className={s.root}>
|
||||
<HashiHead
|
||||
is={Head}
|
||||
title="VMWare Utility Downloads | Vagrant by HashiCorp"
|
||||
/>
|
||||
<ProductDownloader
|
||||
product="Vagrant VMWare Utility"
|
||||
baseProduct="Vagrant"
|
||||
version={VMWARE_UTILITY_VERSION}
|
||||
downloads={downloadData}
|
||||
changelog={false}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export async function getStaticProps() {
|
||||
return fetch(
|
||||
`https://releases.hashicorp.com/vagrant-vmware-utility/${VMWARE_UTILITY_VERSION}/index.json`
|
||||
)
|
||||
.then((r) => r.json())
|
||||
.then((r) => {
|
||||
// TODO: restructure product-downloader to run this logic internally
|
||||
return r.builds.reduce((acc, build) => {
|
||||
if (!acc[build.os]) acc[build.os] = {}
|
||||
acc[build.os][build.arch] = build.url
|
||||
return acc
|
||||
}, {})
|
||||
})
|
||||
.then((r) => ({ props: { downloadData: r } }))
|
||||
.catch(() => {
|
||||
throw new Error(
|
||||
`--------------------------------------------------------
|
||||
Unable to resolve version ${VMWARE_UTILITY_VERSION} on releases.hashicorp.com from link
|
||||
<https://releases.hashicorp.com/vagrant-vmware-utility/${VMWARE_UTILITY_VERSION}/index.json>. Usually this
|
||||
means that the specified version has not yet been released. The downloads page
|
||||
version can only be updated after the new version has been released, to ensure
|
||||
that it works for all users.
|
||||
----------------------------------------------------------`
|
||||
)
|
||||
})
|
||||
}
|
||||
5
website/pages/vmware/downloads/style.module.css
Normal file
5
website/pages/vmware/downloads/style.module.css
Normal file
@ -0,0 +1,5 @@
|
||||
.root {
|
||||
composes: g-grid-container from global;
|
||||
margin-top: 72px;
|
||||
margin-bottom: 72px;
|
||||
}
|
||||
@ -1,10 +1,13 @@
|
||||
import s from './style.module.css'
|
||||
import Button from '@hashicorp/react-button'
|
||||
import VMWarePurchaseForm from 'components/vmware-purchase-form'
|
||||
import Head from 'next/head'
|
||||
import HashiHead from '@hashicorp/react-head'
|
||||
|
||||
export default function VmwareIndex() {
|
||||
return (
|
||||
<>
|
||||
<HashiHead is={Head} title="VMWare Integration | Vagrant by HashiCorp" />
|
||||
<section className={s.header}>
|
||||
<div className="g-grid-container">
|
||||
<div className={s.logos}>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user