From 99bbeefd46b6a42b4711f3220b005c03e427c4f1 Mon Sep 17 00:00:00 2001 From: Bradley Camacho <42678939+bradleycamacho@users.noreply.github.com> Date: Wed, 8 Jan 2025 14:14:11 -0800 Subject: [PATCH 1/2] Add new footer and custom styling --- styles/global.css | 4 ---- theme.config.tsx | 26 +++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/styles/global.css b/styles/global.css index 4a1dcb2af..23c8cc467 100644 --- a/styles/global.css +++ b/styles/global.css @@ -31,10 +31,6 @@ div.md-img img { margin-bottom: 0; } -/* Nextra logic for removing footer isn't working right now */ -footer { - display: none; -} /* Make shasums actually legible */ span.shasum { diff --git a/theme.config.tsx b/theme.config.tsx index acc8ef17d..d8085b20e 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -44,8 +44,32 @@ const config: DocsThemeConfig = { }, docsRepositoryBase: "https://github.com/ethereum-optimism/docs/blob/main/", footer: { - text: "OP Documentation", + text: ( +
+ Terms of Service + Community Agreement + Privacy Policy +
+ ), }, + + + + sidebar: { defaultMenuCollapseLevel: 1, autoCollapse: true, From f71d4e92508fae920a5f4aefee78b8604fab4867 Mon Sep 17 00:00:00 2001 From: krofax Date: Wed, 8 Jan 2025 23:50:33 +0100 Subject: [PATCH 2/2] Updated the the footer styles --- next-env.d.ts | 2 +- theme.config.tsx | 63 +++++++++++++++++++++++++++++++++--------------- 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03dc..a4a7b3f5c 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. diff --git a/theme.config.tsx b/theme.config.tsx index d8085b20e..8e86787b1 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -45,27 +45,50 @@ const config: DocsThemeConfig = { docsRepositoryBase: "https://github.com/ethereum-optimism/docs/blob/main/", footer: { text: ( -
- Terms of Service - Community Agreement - Privacy Policy +
+
© 2025 Optimism Foundation. All rights reserved.
+ +
+ + Optimism Community Agreement + + + Terms of Service + + + Privacy Policy + +
+ +
+ + + + + + + + + + + + + + + +
- ), - }, + ) + }, +