Skip to content

Commit 0130463

Browse files
authored
Base path fixing (#12)
* base path fixing * fix more * update naming * update naming
1 parent 7e62ee1 commit 0130463

7 files changed

Lines changed: 42 additions & 38 deletions

File tree

app/layout.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Head } from "nextra/components";
33
import { getPageMap } from "nextra/page-map";
44
import "nextra-theme-docs/style.css";
55
import "./globals.css";
6-
import Image from "next/image";
7-
import { FooterLogo } from "@/components/footer-log";
6+
import { FooterLogo } from "@/components/footer-logo";
87

98
export const metadata = {
109
// Define your metadata here
@@ -14,10 +13,15 @@ export const metadata = {
1413
const navbar = (
1514
<Navbar
1615
logo={<b>Five Safes TES Docs</b>}
17-
// ... Your additional navbar options
16+
// ... Your additional navbar options
1817
/>
1918
);
20-
const footer = <Footer> <FooterLogo /></Footer>;
19+
const footer = (
20+
<Footer>
21+
{" "}
22+
<FooterLogo />
23+
</Footer>
24+
);
2125

2226
export default async function RootLayout({
2327
children,

app/page.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ import CustomCard from "@/components/custom-card";
3030
links={[
3131
{
3232
title: "Setting up TRE Agent",
33-
href: "/5st-docs/connect/setup-tre/deployment-steps",
33+
href: "/connect/setup-tre/deployment-steps",
3434
},
35-
{ title: "Connecting a TRE", href: "/5st-docs/connect/connect-submission" },
36-
{ title: "Projects and users", href: "/5s-tes-docs/connect/approvals" },
35+
{ title: "Connecting a TRE", href: "/connect/connect-submission" },
36+
{ title: "Projects and users", href: "/connect/approvals" },
3737
{ title: "TRE data access", href: "/link1" },
38-
{ title: "Outputs approval", href: "/5s-tes-docs/connect/approve-outputs" },
38+
{ title: "Outputs approval", href: "/connect/approve-outputs" },
3939
]}
4040
CTA={{ text: "Connect >", href: "/cta" }}
4141
icon={<Unplug size={24} />}

components/footer-log.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

components/footer-logo.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// components/FooterLogo.tsx
2+
"use client";
3+
4+
import Image from "next/image";
5+
6+
export function FooterLogo() {
7+
return (
8+
<>
9+
<Image
10+
src="/logo-UoN-light.png"
11+
alt="University of Nottingham"
12+
width={200}
13+
height={200}
14+
className="block dark:hidden"
15+
/>
16+
17+
<Image
18+
src="/logo-UoN-dark.png"
19+
alt="University of Nottingham"
20+
width={200}
21+
height={200}
22+
className="hidden dark:block"
23+
/>
24+
</>
25+
);
26+
}

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const nextConfig: NextConfig = {
88
},
99
distDir: "out",
1010
output: "export",
11-
basePath: "/5st-docs",
11+
basePath: "",
1212
assetPrefix: "",
1313
};
1414

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "5st-docs",
2+
"name": "5s-tes-docs",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

0 commit comments

Comments
 (0)