Skip to content

Commit 3a61a3d

Browse files
authored
website: upgrade vuepress 0.x to 1.x (#2828)
* docs: upgrade vuepress 0.x to 1.x * add .node-version
1 parent 08e9c5a commit 3a61a3d

File tree

10 files changed

+5890
-3503
lines changed

10 files changed

+5890
-3503
lines changed

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.21.2

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ end-to-end-deps: ## Install e2e dependencies
8383
end-to-end-tests: ## Run e2e tests
8484
./scripts/e2e.sh
8585

86-
website-dev:
86+
website-dev: ## Run runatlantic.io on localhost:8080
8787
yarn website:dev

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"devDependencies": {
3-
"vuepress": "^0.14.2"
3+
"@vuepress/plugin-google-analytics": "^1.9.7",
4+
"vuepress": "^1.9.7"
45
},
56
"scripts": {
67
"website:dev": "vuepress dev runatlantis.io",

runatlantis.io/.vuepress/config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
module.exports = {
22
title: 'Atlantis',
33
description: 'Atlantis: Terraform Pull Request Automation',
4-
ga: "UA-6850151-3",
4+
plugins: [
5+
['@vuepress/google-analytics', { ga: "UA-6850151-3", }]
6+
],
57
head: [
68
['link', { rel: 'icon', type: 'image/png', href: '/favicon-196x196.png', sizes: '196x196' }],
79
['link', { rel: 'icon', type: 'image/png', href: '/favicon-96x96.png', sizes: '96x96' }],
File renamed without changes.
File renamed without changes.

runatlantis.io/.vuepress/components/HomeCustom.vue renamed to runatlantis.io/.vuepress/theme/components/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@
192192
$MQMobile = 719px
193193
$MQMobileNarrow = 419px
194194
195-
@import '~@temp/override.styl' // generated from user config
196-
197195
$homeWidth = 960px
198196
$buttonColor = #34be68
199197
$darkBackground = rgb(250, 250, 250)
198+
.container
199+
padding-top 3.6rem
200200
.home
201201
padding 0 2rem
202202
max-width $homeWidth
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// introduce custom home with navbar
2+
// https://stackoverflow.com/a/60220684
3+
// https://vuepress.vuejs.org/theme/inheritance.html#usage
4+
module.exports = {
5+
extend: '@vuepress/theme-default'
6+
}

runatlantis.io/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: HomeCustom
2+
home: true
33
pageClass: home-custom
44
heroImage: /hero.png
55
heroText: Atlantis

yarn.lock

Lines changed: 5874 additions & 3497 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)