From 6de0dce33af584efa8b268900e22a511b775923b Mon Sep 17 00:00:00 2001 From: DerekStrickland <1111455+DerekStrickland@users.noreply.github.com> Date: Tue, 9 Jun 2020 13:58:33 -0400 Subject: [PATCH] Refactored to redirects instead of hard external links in side nav model --- website/_redirects | 14 ++++++++++++-- website/data/intro-navigation.js | 15 +++++++-------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/website/_redirects b/website/_redirects index 794e5a884..96c861c7e 100644 --- a/website/_redirects +++ b/website/_redirects @@ -24,8 +24,18 @@ /docs/command-line/* /docs/commands/:splat 200 /docs/extend/* /docs/extending/:splat 200 -/intro/getting-started/install /intro/getting-started 301! -/intro/getting-started/install.html /intro/getting-started 301! +/intro/getting-started/install https://learn.hashicorp.com/packer/getting-started/install 301! +/intro/getting-started/install.html https://learn.hashicorp.com/packer/getting-started/install 301! +/intro/getting-started/build-image https://learn.hashicorp.com/packer/getting-started/build-image 301! +/intro/getting-started/build-image.html https://learn.hashicorp.com/packer/getting-started/build-image 301! +/intro/getting-started/provision https://learn.hashicorp.com/packer/getting-started/provision 301! +/intro/getting-started/provision.html https://learn.hashicorp.com/packer/getting-started/provision 301! +/intro/getting-started/parallel-builds https://learn.hashicorp.com/packer/getting-started/parallel-builds 301! +/intro/getting-started/parallel-builds.html https://learn.hashicorp.com/packer/getting-started/parallel-builds 301! +/intro/getting-started/vagrant https://learn.hashicorp.com/packer/getting-started/vagrant 301! +/intro/getting-started/vagrant.html https://learn.hashicorp.com/packer/getting-started/vagrant 301! +/intro/getting-started/next https://learn.hashicorp.com/packer/getting-started/next 301! +/intro/getting-started/next.html https://learn.hashicorp.com/packer/getting-started/next 301! /docs/basics/terminology /docs/terminology 301! /docs/basics/terminology.html /docs/terminology 301! diff --git a/website/data/intro-navigation.js b/website/data/intro-navigation.js index 9a1d2a9a5..cf39f135d 100644 --- a/website/data/intro-navigation.js +++ b/website/data/intro-navigation.js @@ -13,29 +13,28 @@ export default [ name: 'Getting Started', content: [ { - title: 'Overview', - href: 'https://learn.hashicorp.com/packer/getting-started/install', + title: 'Install', + href: '/intro/getting-started/install', }, { title: 'Build An Image', - href: 'https://learn.hashicorp.com/packer/getting-started/build-image', + href: '/intro/getting-started/build-image', }, { title: 'Provision', - href: 'https://learn.hashicorp.com/packer/getting-started/provision', + href: '/intro/getting-started/provision', }, { title: 'Parallel Builds', - href: - 'https://learn.hashicorp.com/packer/getting-started/parallel-builds', + href: '/intro/getting-started/parallel-builds', }, { title: 'Vagrant Boxes', - href: 'https://learn.hashicorp.com/packer/getting-started/vagrant', + href: '/intro/getting-started/vagrant', }, { title: 'Next Steps', - href: 'https://learn.hashicorp.com/packer/getting-started/next', + href: '/intro/getting-started/next', }, ], },