diff --git a/astro.config.mjs b/astro.config.mjs index aace4f0..4439d1f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,9 +1,8 @@ import mdx from "@astrojs/mdx"; import react from "@astrojs/react"; import starlight from "@astrojs/starlight"; -import { defineConfig } from "astro/config"; - import tailwind from "@astrojs/tailwind"; +import { defineConfig } from "astro/config"; // https://astro.build/config export default defineConfig({ @@ -57,7 +56,7 @@ export default defineConfig({ { label: "🦄 Very Good Engineering", autogenerate: { - directory: "very_good_engineering", + directory: "engineering", }, }, { diff --git a/src/components/vgv_footer/vgv-footer.astro b/src/components/vgv_footer/vgv-footer.astro index 1886b62..df16968 100644 --- a/src/components/vgv_footer/vgv-footer.astro +++ b/src/components/vgv_footer/vgv-footer.astro @@ -7,6 +7,7 @@ interface Props { } const { compact = false } = Astro.props; +const base = import.meta.env.BASE_URL; ---
Testimonials Careers Our Work - Engineering + Engineering
diff --git a/src/components/vgv_nav/vgv-nav.astro b/src/components/vgv_nav/vgv-nav.astro index ceeedb4..8311033 100644 --- a/src/components/vgv_nav/vgv-nav.astro +++ b/src/components/vgv_nav/vgv-nav.astro @@ -7,7 +7,8 @@ import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro"; import type { Props } from "@astrojs/starlight/props"; // Only show docs link from homepage -const shouldShowLinks = Astro.url.pathname === "/"; +const base = import.meta.env.BASE_URL; +const shouldShowLinks = Astro.url.pathname === base + "/"; ---
@@ -25,7 +26,7 @@ const shouldShowLinks = Astro.url.pathname === "/"; { shouldShowLinks && ( Docs diff --git a/src/content/docs/very_good_engineering/contributing.mdx b/src/content/docs/engineering/contributing.mdx similarity index 100% rename from src/content/docs/very_good_engineering/contributing.mdx rename to src/content/docs/engineering/contributing.mdx diff --git a/src/content/docs/very_good_engineering/conventions.mdx b/src/content/docs/engineering/conventions.mdx similarity index 100% rename from src/content/docs/very_good_engineering/conventions.mdx rename to src/content/docs/engineering/conventions.mdx diff --git a/src/content/docs/very_good_engineering/credits.mdx b/src/content/docs/engineering/credits.mdx similarity index 100% rename from src/content/docs/very_good_engineering/credits.mdx rename to src/content/docs/engineering/credits.mdx diff --git a/src/content/docs/very_good_engineering/diagrams/good_code_dark.png b/src/content/docs/engineering/diagrams/good_code_dark.png similarity index 100% rename from src/content/docs/very_good_engineering/diagrams/good_code_dark.png rename to src/content/docs/engineering/diagrams/good_code_dark.png diff --git a/src/content/docs/very_good_engineering/diagrams/good_code_light.png b/src/content/docs/engineering/diagrams/good_code_light.png similarity index 100% rename from src/content/docs/very_good_engineering/diagrams/good_code_light.png rename to src/content/docs/engineering/diagrams/good_code_light.png diff --git a/src/content/docs/very_good_engineering/philosophy.mdx b/src/content/docs/engineering/philosophy.mdx similarity index 100% rename from src/content/docs/very_good_engineering/philosophy.mdx rename to src/content/docs/engineering/philosophy.mdx diff --git a/src/content/docs/very_good_engineering/services.mdx b/src/content/docs/engineering/services.mdx similarity index 100% rename from src/content/docs/very_good_engineering/services.mdx rename to src/content/docs/engineering/services.mdx diff --git a/src/pages/index.astro b/src/pages/index.astro index 01b4890..010a204 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -30,6 +30,8 @@ import financialDashboard from "./home/demos/financial_dashboard.png"; import vehicleCockpit from "./home/demos/vehicle_cockpit.png"; import hero from "./home/very_good_engineering.png"; +const base = import.meta.env.BASE_URL; + const props = await generateStarlightPageRouteData({ props: { ...Astro.props, @@ -40,7 +42,7 @@ const props = await generateStarlightPageRouteData({ actions: [ { text: "Read the Best Practices", - link: "/very_good_engineering/philosophy/", + link: `${base}/engineering/philosophy`, icon: "right-arrow", variant: "primary", },