diff --git a/public/img/icons/favicon.ico b/public/img/icons/favicon.ico index 7abd812e5..16bbec564 100644 Binary files a/public/img/icons/favicon.ico and b/public/img/icons/favicon.ico differ diff --git a/public/logos/docs-header.png b/public/logos/docs-header.png index b6597c581..530f2151f 100644 Binary files a/public/logos/docs-header.png and b/public/logos/docs-header.png differ diff --git a/public/logos/twitter-logo.png b/public/logos/twitter-logo.png index e936b1557..530f2151f 100644 Binary files a/public/logos/twitter-logo.png and b/public/logos/twitter-logo.png differ diff --git a/theme.config.tsx b/theme.config.tsx index a4b8adcca..51718af44 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -1,123 +1,78 @@ -import React from "react"; -import { DocsThemeConfig } from "nextra-theme-docs"; -import { useRouter } from "next/router"; -import { useConfig } from "nextra-theme-docs"; -import { FeelbackYesNo, PRESET_LIKE_DISLIKE } from "@feelback/react"; -import "@feelback/react/styles/feelback.css"; -import { Search } from "./components/Search"; +import React from 'react'; +import { DocsThemeConfig } from 'nextra-theme-docs'; +import { useRouter } from 'next/router'; +import { useConfig } from 'nextra-theme-docs'; +import { FeelbackYesNo, PRESET_LIKE_DISLIKE } from '@feelback/react'; +import '@feelback/react/styles/feelback.css'; +import { Search } from './components/Search'; const config: DocsThemeConfig = { logo: ( <> - - - + + ), darkMode: true, - search: { - component: Search, - }, + search: { + component: Search + }, project: { - link: "https://github.com/ethereum-optimism/docs", + link: 'https://github.com/ethereum-optimism/docs' }, - docsRepositoryBase: "https://github.com/ethereum-optimism/docs/blob/main/", + docsRepositoryBase: 'https://github.com/ethereum-optimism/docs/blob/main/', footer: { - text: "OP Documentation", + text: 'OP Documentation' }, sidebar: { defaultMenuCollapseLevel: 1, - autoCollapse: true, + autoCollapse: true }, toc: { backToTop: true, extraContent: () => ( <> -
- -
+
+ +
- ), + ) }, feedback: { - content: "❤️ Share general feedback", - labels: "user-feedback", + content: '❤️ Share general feedback', + labels: 'user-feedback' }, editLink: { - text: "✏️ Edit this page on GitHub", + text: '✏️ Edit this page on GitHub' }, useNextSeoProps() { const { asPath } = useRouter(); - if (asPath !== "/") { + if (asPath !== '/') { return { - titleTemplate: "%s | Optimism Docs", + titleTemplate: '%s | Optimism Docs' }; } }, head: () => { const { asPath, defaultLocale, locale } = useRouter(); const { frontMatter } = useConfig(); - const url = - "https://docs.optimism.io" + - (defaultLocale === locale ? asPath : `/${locale}${asPath}`); + const url = 'https://docs.optimism.io' + (defaultLocale === locale ? asPath : `/${locale}${asPath}`); return ( <> - - - - - - - - - + + + + + + + + + ); - }, + } // https://nextra.site/docs/docs-theme/theme-configuration // primaryHue: { // dark: