From 74ce9749ec8a8223e4d6919eebbb72ef6c39aaf0 Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Thu, 21 Dec 2023 12:01:02 -0500 Subject: [PATCH] Rename terra.md to index.md (#545) When generating docs for Terra before 0.44, the index page was called `terra.html`. We need it to be called `index`. --- scripts/lib/sphinx/renameUrls.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib/sphinx/renameUrls.ts b/scripts/lib/sphinx/renameUrls.ts index e9d1f14eaeb..a86b03132da 100644 --- a/scripts/lib/sphinx/renameUrls.ts +++ b/scripts/lib/sphinx/renameUrls.ts @@ -20,6 +20,7 @@ export function renameUrls(results: SphinxToMdResultWithUrl[]): void { // We can't fix their setup until qiskit.org is removed, so // instead we fix it here. .replace(/\/ibm_provider$/g, "/index") - .replace(/\/runtime_service$/g, "/index"); + .replace(/\/runtime_service$/g, "/index") + .replace(/\/terra$/g, "/index"); } }