Skip to content

feat: Adding homepage to Starlight docs #4250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions docs-starlight/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
import vercel from "@astrojs/vercel";

import d2 from "astro-d2";
import tailwindcss from "@tailwindcss/vite";

export const sidebar = [
{
Expand Down Expand Up @@ -78,12 +78,16 @@ export default defineConfig({
integrations: [
starlight({
title: "Terragrunt",
customCss: ["./src/styles/global.css"],
components: {
Header: './src/components/Header.astro',
SiteTitle: './src/components/SiteTitle.astro',
},
logo: {
dark: "/src/assets/logo-light.svg",
light: "/src/assets/logo-dark.svg",
dark: "/src/assets/horizontal-logo-light.svg",
light: "/src/assets/horizontal-logo-dark.svg",
},
social: {
github: "https://github.com/gruntwork-io/terragrunt",
discord: "https://discord.gg/SPu4Degs5f",
},
sidebar: sidebar,
Expand Down Expand Up @@ -162,4 +166,7 @@ export default defineConfig({
"/docs/features/provider-cache/": "/docs/features/provider-cache-server/",
"/docs/features/provider-caching/": "/docs/features/provider-cache-server/",
},
vite: {
plugins: [tailwindcss()],
},
});
105 changes: 105 additions & 0 deletions docs-starlight/bun.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion docs-starlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@
},
"dependencies": {
"@astrojs/starlight": "^0.31.1",
"@astrojs/starlight-tailwind": "^4.0.1",
"@astrojs/vercel": "^8.1.1",
"@tailwindcss/vite": "^4.1.5",
"@zachleat/table-saw": "^1.0.6",
"astro": "^5.4.2",
"astro-d2": "^0.7.0",
"gray-matter": "^4.0.3",
"sharp": "^0.32.6",
"starlight-links-validator": "^0.14.3"
"starlight-links-validator": "^0.14.3",
"tailwindcss": "^4.1.5"
},
"patchedDependencies": {
"@astrojs/starlight@0.31.1": "patches/@astrojs%2Fstarlight@0.31.1.patch"
Expand Down
3 changes: 3 additions & 0 deletions docs-starlight/src/assets/gruntwork-logo-mark-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs-starlight/src/assets/gruntwork-logo-mark-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docs-starlight/src/assets/horizontal-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading