From 7e7e7ba5ccf4f4def74305134c0ba1f7677c752a Mon Sep 17 00:00:00 2001 From: GrahamSH Date: Mon, 19 Aug 2024 20:19:05 -0400 Subject: [PATCH] change base for readthedocs --- docs/docusaurus.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 861748f8c0..9954d53d8c 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -11,7 +11,9 @@ const config: Config = { url: "https://your-docusaurus-site.example.com", // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: "/", + baseUrl: process.env.READTHEDOCS + ? `/${process.env.READTHEDOCS_LANGUAGE}/${process.env.READTHEDOCS_VERSION}/` + : "/", // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these.