From 87d4cd5400e10a65d69a8bbb2700748e63bbdc9f Mon Sep 17 00:00:00 2001 From: Yana Date: Fri, 11 Oct 2024 21:31:24 +0300 Subject: [PATCH] Add styles --- documentation/docs/components/landing-page.tsx | 2 +- documentation/docs/pages/styles.css | 4 ++++ documentation/docs/{theme.config.tsx => theme.config.jsx} | 8 ++++++-- documentation/docs/tsconfig.json | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) rename documentation/docs/{theme.config.tsx => theme.config.jsx} (75%) diff --git a/documentation/docs/components/landing-page.tsx b/documentation/docs/components/landing-page.tsx index 117b825287..cdcd9354f8 100644 --- a/documentation/docs/components/landing-page.tsx +++ b/documentation/docs/components/landing-page.tsx @@ -9,7 +9,7 @@ export const LandingPage = () => { href: "/developers", Icon: Zap, }, - { text: "SDKs", href: "/sdk", Icon: Code }, + { text: "SDKs", href: "/developers/rust", Icon: Code }, { text: "Operators: Setup Guides & Maintenance", href: "/operators", diff --git a/documentation/docs/pages/styles.css b/documentation/docs/pages/styles.css index 94738ed641..d70be7c8a3 100644 --- a/documentation/docs/pages/styles.css +++ b/documentation/docs/pages/styles.css @@ -30,6 +30,10 @@ div.nextra-code-block > div { color: var(--textPrimary) !important; } +.nextra-sidebar-container { + border-right: 1px solid #262626; +} + /* aside ul > li > a:hover{ background: #fb6e4ea9 !important; } */ diff --git a/documentation/docs/theme.config.tsx b/documentation/docs/theme.config.jsx similarity index 75% rename from documentation/docs/theme.config.tsx rename to documentation/docs/theme.config.jsx index c1dc1be2c2..0eb81fb97e 100644 --- a/documentation/docs/theme.config.tsx +++ b/documentation/docs/theme.config.jsx @@ -1,8 +1,12 @@ import React from "react"; import { DocsThemeConfig } from "nextra-theme-docs"; +import { Search } from 'nextra-theme-docs'; +import { useConfig } from 'nextra-theme-docs'; + + import { Footer } from "./components/footer"; -const config: DocsThemeConfig = { +const config = { logo: Nym Docs, project: { link: "https://github.com/nymtech/nym", @@ -11,7 +15,7 @@ const config: DocsThemeConfig = { link: "https://matrix.to/#/#dev:nymtech.chat", }, docsRepositoryBase: - "https://github.com/nymtech/nym/tree/develop/documentation/", + "https://github.com/nymtech/nym/tree/develop/documentation/docs", footer: { text: Footer, }, diff --git a/documentation/docs/tsconfig.json b/documentation/docs/tsconfig.json index 5020c55e5a..4ad1f743d5 100644 --- a/documentation/docs/tsconfig.json +++ b/documentation/docs/tsconfig.json @@ -15,6 +15,6 @@ "isolatedModules": true, "jsx": "preserve" }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "theme.config.jsx"], "exclude": ["node_modules"] }