diff --git a/docs/theme.config.js b/docs/theme.config.js index 787153bc7e519..db6ec38eb7853 100644 --- a/docs/theme.config.js +++ b/docs/theme.config.js @@ -5,6 +5,8 @@ import Navigation from "./components/Navigation"; import HeaderLogo from "./components/HeaderLogo"; import { Discord, Github } from "./components/Social"; +const SITE_ROOT = "https://turbo.build"; + /** * @type {import('nextra-theme-docs').DocsThemeConfig} */ @@ -16,7 +18,7 @@ const theme = { icon: Discord, }, docsRepositoryBase: "https://github.com/vercel/turbo/blob/main/docs", - titleSuffix: " | Turb", + titleSuffix: " | Turbo", unstable_flexsearch: true, unstable_staticImage: true, toc: { @@ -32,9 +34,7 @@ const theme = { const router = useRouter(); const { frontMatter, title } = useConfig(); const fullUrl = - router.asPath === "/" - ? "https://turborepo.org" - : `https://turborepo.org${router.asPath}`; + router.asPath === "/" ? SITE_ROOT : `${SITE_ROOT}${router.asPath}`; return ( <> @@ -73,18 +73,14 @@ const theme = { - + ); },