diff --git a/doc/docusaurus/docusaurus.config.ts b/doc/docusaurus/docusaurus.config.ts index fe6d3f40210..57e482449e4 100644 --- a/doc/docusaurus/docusaurus.config.ts +++ b/doc/docusaurus/docusaurus.config.ts @@ -9,8 +9,13 @@ const config: Config = { // Set the production url of your site here url: "https://intersectmbo.github.io", + // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' + // WARNING: normally this would be /plutus/docs/, because + // https://intersectmbo.github.io is a GitHub Pages URL. + // However we setup a redirect from intersectmbo.github.io/plutus + // to plutus.cardano.intersectmbo.org, so /docs/ is used here instead. baseUrl: "/docs/", // GitHub pages deployment config. diff --git a/doc/docusaurus/src/components/CsvTable.tsx b/doc/docusaurus/src/components/CsvTable.tsx index 99844a5c8f3..7c7d544589e 100644 --- a/doc/docusaurus/src/components/CsvTable.tsx +++ b/doc/docusaurus/src/components/CsvTable.tsx @@ -21,7 +21,7 @@ const CsvTable = ({ async function loadCode() { // Fetch the raw csv from the file - const res = await fetch(`/plutus/master/docs/csv/${file}`); + const res = await fetch(`/docs/csv/${file}`); const rawData = await res.text(); // If the component is unmounted, don't set the state diff --git a/doc/docusaurus/src/components/LiteralInclude.tsx b/doc/docusaurus/src/components/LiteralInclude.tsx index 94f57fc4016..704c0d0125a 100644 --- a/doc/docusaurus/src/components/LiteralInclude.tsx +++ b/doc/docusaurus/src/components/LiteralInclude.tsx @@ -26,7 +26,7 @@ const LiteralInclude = ({ async function loadCode() { // Fetch the raw code from the file - const res = await fetch(`/plutus/master/docs/code/${file}`); + const res = await fetch(`/docs/code/${file}`); const rawCode = await res.text(); // If the component is unmounted, don't set the state