Skip to content

Commit 6f4719b

Browse files
yhakbarDaniicecreamkarlcarstensen
authored
docs: Updating Terragrunt Homepage (#4550)
* Front-end for Terragrunt Project * Changes: - The navigation bar is fixed. - The Starlight component for Searchbar was integrated. - The color palette was added to @theme. - The text box was corrected in Petadvertisement. - Minor adjustments to adjust some elements. * Changes Implemented: #4494 (comment) Note: - Some images I did the best I could searching them online, however I couldn't find all of them I used the ones from the figma file (the one provided hen I asked for the assets) - Didn't connect the newsletter. I was responsible only for the design. Appreciate your comprehension. * Added: - auto-scroll TB * Added: - auto-scroll TB * Update: - Alignment Improvements on some sections. - Modified Header to make it like the one on Home Page. - Modified theme colors to match colors on Home Page. * fix: TG-1753 - Make OpenTofu and Terraform logos proper links Also fixing "Quick Start" and "Read the Docs" links. * fix: TG-1743 - Fixing navbar links Also updating buttons for commercial tie-ins. * fix: TG-1743 - Fixing links in Orchestrate section * fix: TG-1743 - Fixing links in Consistency section * fix: TG-1743 - Fixing links in DRY section * fix: TG-1743 - Fixing links in supercharge section Also fixing logo hovers and renamed `Eyebrown` to `Eyebrow`. * fix: TG-1776 - Adjusting copy for newsletter subscription * fix: TG-1776 - Integrating HubSpot form the way it was in the Jekyll version of the docs * fix: TG-1776 - Making subscription look a bit better * fix: Reworking implementation of brand wheel to use content collection * Testimonials should be a content collection (#4573) * Adding polish to buttons and cleanup (#4578) * Web 765 (#4577) * Front-end for Terragrunt Project * Changes: - The navigation bar is fixed. - The Starlight component for Searchbar was integrated. - The color palette was added to @theme. - The text box was corrected in Petadvertisement. - Minor adjustments to adjust some elements. * Changes Implemented: #4494 (comment) Note: - Some images I did the best I could searching them online, however I couldn't find all of them I used the ones from the figma file (the one provided hen I asked for the assets) - Didn't connect the newsletter. I was responsible only for the design. Appreciate your comprehension. * Added: - auto-scroll TB * Added: - auto-scroll TB * Update: - Alignment Improvements on some sections. - Modified Header to make it like the one on Home Page. - Modified theme colors to match colors on Home Page. * fix: Updating bun.lock * fix: TG-1753 - Make OpenTofu and Terraform logos proper links Also fixing "Quick Start" and "Read the Docs" links. * fix: TG-1743 - Fixing navbar links Also updating buttons for commercial tie-ins. * fix: TG-1743 - Fixing links in Orchestrate section * fix: TG-1743 - Fixing links in Consistency section * fix: TG-1743 - Fixing links in DRY section * fix: TG-1743 - Fixing links in supercharge section Also fixing logo hovers and renamed `Eyebrown` to `Eyebrow`. * fix: TG-1776 - Adjusting copy for newsletter subscription * fix: TG-1776 - Integrating HubSpot form the way it was in the Jekyll version of the docs * fix: TG-1776 - Making subscription look a bit better * fix: Reworking implementation of brand wheel to use content collection * Testimonials should be a content collection (#4573) * Polish and cleanup --------- Co-authored-by: Daniel Vásquez <daniel.vasquezrs@gmail.com> Co-authored-by: Yousif Akbar <11247449+yhakbar@users.noreply.github.com> * Responsive styles for logo to resolve 768 (#4580) * Sharper hero images (#4583) * Reduce opacity of background image (#4584) * fix: Enable Vercel image optimization (#4585) * fix: Conditionally enable Vercel adapter (#4586) * Adding padding to resolve issue (#4581) * Fixing up terminal install commands (#4592) * Fixing up terminal install commands * Hiding commands for now * Styling search (#4617) * Resolving display issues on large monitors (#4620) * Fix typos (#4625) * Fix typo * Fixing border-b-1 which is not a valid tailwind class * Updated secondary border color (#4624) * Update to styles for consistency (#4623) * Update to styles for consistency * fix: Reverting intentional change to header copy --------- Co-authored-by: Yousif Akbar <11247449+yhakbar@users.noreply.github.com> * Fixing double border bug at mobile (#4622) * Show search shortcut (#4626) * fix: Getting rid of `ReponsiveTable` component * fix: Fixing line numbering in docs (#4619) * fix: Fixing line numbering in docs * fix: Fixing indentation size * Fixing styles --------- Co-authored-by: Karl <karl.carstensen@gmail.com> * Cleanup of colors on /docs (#4640) * Cleanup of colors on /docs * Revert bg color * Remove underline and make background solid (#4642) * Code block polish (#4643) * fix Star Count Link Underline (#4644) * Fixing docs tree nav (#4645) * Fixing double underline (#4647) * Fixing headers and eyebrow spacing (#4646) * Docs link on nav (#4641) * Docs link on nav * More polish --------- Co-authored-by: Yousif Akbar <11247449+yhakbar@users.noreply.github.com> * Polish to OSS friends (#4648) * Polish to OSS friends * Additional polish * Design polish * More specific color change (#4656) * Updating styles for the TOC (#4658) * Strokes dashed (#4660) * Fixing Grunty location and naming (#4662) * Translate from spanish to english (#4661) * Adding light dark toggle (#4659) * Adding light dark toggle * Feedback * Fixes navbar (#4663) * Fixes for docs markdown * Fixes aside also * Fixes code block * Fixes asides * Fixing cards * Web 833 (#4665) * Styles update * Shared component for nav * Consolodate styles * Cleanup * General cleanup (#4666) --------- Co-authored-by: Daniel Vásquez <daniel.vasquezrs@gmail.com> Co-authored-by: Karl Carstensen <karl.carstensen@gmail.com>
1 parent bb2dfee commit 6f4719b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+8621
-595
lines changed

docs-starlight/astro.config.mjs

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import tailwindcss from "@tailwindcss/vite";
88

99
import partytown from "@astrojs/partytown";
1010

11+
// Check if we're in Vercel environment
12+
const isVercel = globalThis.process?.env?.VERCEL;
13+
1114
export const sidebar = [
1215
{
1316
label: "Getting Started",
@@ -71,12 +74,13 @@ export const sidebar = [
7174
// https://astro.build/config
7275
export default defineConfig({
7376
site: "https://terragrunt-v1.gruntwork.io",
74-
output: "server",
75-
adapter: vercel({
77+
output: isVercel ? "server" : "static",
78+
adapter: isVercel ? vercel({
79+
imageService: true,
7680
isr: {
7781
expiration: 60 * 60 * 24, // 24 hours
7882
},
79-
}),
83+
}) : undefined,
8084
integrations: [starlight({
8185
title: "Terragrunt",
8286
editLink: {
@@ -105,6 +109,16 @@ export default defineConfig({
105109
})(window,document,'script','dataLayer','GTM-5TTJJGTL');
106110
`,
107111
},
112+
{
113+
tag: 'script',
114+
attrs: {
115+
type: 'text/javascript',
116+
id: 'hs-script-loader',
117+
async: true,
118+
defer: true,
119+
src: '//js.hs-scripts.com/8376079.js',
120+
},
121+
},
108122
],
109123
components: {
110124
Header: './src/components/Header.astro',
@@ -142,7 +156,7 @@ export default defineConfig({
142156
// It's recommended that we just skip generation in Vercel,
143157
// and generate diagrams locally:
144158
// https://astro-d2.vercel.app/guides/how-astro-d2-works/#deployment
145-
skipGeneration: !!process.env['VERCEL']
159+
skipGeneration: !!isVercel
146160
}), partytown({
147161
config: {
148162
forward: ['dataLayer.push']
@@ -163,8 +177,7 @@ export default defineConfig({
163177
"/docs/reference/configuration/": "/docs/reference/hcl/",
164178
"/docs/reference/cli-options/": "/docs/reference/cli/",
165179
"/docs/reference/built-in-functions/": "/docs/reference/hcl/functions/",
166-
"/docs/reference/config-blocks-and-attributes/":
167-
"/docs/reference/hcl/blocks/",
180+
"/docs/reference/config-blocks-and-attributes/": "/docs/reference/hcl/blocks/",
168181
"/docs/reference/strict-mode/": "/docs/reference/strict-controls/",
169182
"/docs/reference/log-formatting/": "/docs/reference/logging/formatting/",
170183
"/docs/features/aws-authentication/": "/docs/features/authentication/",
@@ -186,17 +199,12 @@ export default defineConfig({
186199
"/docs/features/inputs/": "/docs/features/units/",
187200
"/docs/features/locals/": "/docs/features/units/",
188201
"/docs/features/keep-your-terraform-code-dry/": "/docs/features/units/",
189-
"/docs/features/execute-terraform-commands-on-multiple-units-at-once/":
190-
"/docs/features/stacks/",
191-
"/docs/features/keep-your-terragrunt-architecture-dry/":
192-
"/docs/features/includes/",
193-
"/docs/features/keep-your-remote-state-configuration-dry/":
194-
"/docs/features/state-backend/",
195-
"/docs/features/keep-your-cli-flags-dry/":
196-
"/docs/features/extra-arguments/",
202+
"/docs/features/execute-terraform-commands-on-multiple-units-at-once/": "/docs/features/stacks/",
203+
"/docs/features/keep-your-terragrunt-architecture-dry/": "/docs/features/includes/",
204+
"/docs/features/keep-your-remote-state-configuration-dry/": "/docs/features/state-backend/",
205+
"/docs/features/keep-your-cli-flags-dry/": "/docs/features/extra-arguments/",
197206
"/docs/features/aws-auth/": "/docs/features/aws-authentication/",
198-
"/docs/features/work-with-multiple-aws-accounts/":
199-
"/docs/features/aws-authentication/",
207+
"/docs/features/work-with-multiple-aws-accounts/": "/docs/features/aws-authentication/",
200208
"/docs/features/auto-retry/": "/docs/features/runtime-control/",
201209
"/docs/features/provider-cache/": "/docs/features/provider-cache-server/",
202210
"/docs/features/provider-caching/": "/docs/features/provider-cache-server/",

docs-starlight/bun.lock

Lines changed: 157 additions & 252 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs-starlight/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
"@astrojs/starlight-tailwind": "^4.0.1",
1616
"@astrojs/vercel": "^8.2.3",
1717
"@tailwindcss/vite": "^4.1.11",
18-
"@zachleat/table-saw": "^1.0.6",
1918
"astro": "^5.12.3",
2019
"astro-d2": "^0.8.0",
2120
"gray-matter": "^4.0.3",
2221
"sharp": "^0.34.3",
23-
"starlight-links-validator": "^0.17.0",
24-
"tailwindcss": "^4.1.11"
22+
"starlight-links-validator": "^0.17.0"
2523
},
2624
"devDependencies": {
2725
"@types/bun": "^1.2.19"
135 KB
Binary file not shown.
Binary file not shown.
854 KB
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)