From 5d6b8034f1d8233bf45045ec1d1a108483d79f20 Mon Sep 17 00:00:00 2001 From: katzino Date: Tue, 8 Jul 2025 12:29:33 +0200 Subject: [PATCH] revert: "feat: header facelift (#1662)" This reverts commit 53c9f8fd22152e36a9f871497b23fab310072f1f. --- apify-docs-theme/src/config.js | 17 +- apify-docs-theme/src/theme/Footer/index.jsx | 16 +- .../src/theme/Footer/index.module.css | 87 +--- apify-docs-theme/src/theme/Layout/index.jsx | 2 +- .../src/theme/Navbar/CTA/index.jsx | 7 - .../src/theme/Navbar/CTA/styles.module.css | 57 --- .../src/theme/Navbar/Content/index.jsx | 8 +- .../theme/Navbar/Content/styles.module.css | 8 + .../Navbar/MobileSidebar/Header/index.jsx | 46 --- apify-docs-theme/src/theme/SearchBar/index.js | 25 +- .../src/theme/SearchBar/styles.css | 92 +---- apify-docs-theme/src/theme/custom.css | 386 ++++++------------ 12 files changed, 179 insertions(+), 572 deletions(-) delete mode 100644 apify-docs-theme/src/theme/Navbar/CTA/index.jsx delete mode 100644 apify-docs-theme/src/theme/Navbar/CTA/styles.module.css create mode 100644 apify-docs-theme/src/theme/Navbar/Content/styles.module.css delete mode 100644 apify-docs-theme/src/theme/Navbar/MobileSidebar/Header/index.jsx diff --git a/apify-docs-theme/src/config.js b/apify-docs-theme/src/config.js index 5cb7c0b85e..c23150c3e9 100644 --- a/apify-docs-theme/src/config.js +++ b/apify-docs-theme/src/config.js @@ -137,6 +137,13 @@ const themeConfig = { }, ], }, + { + href: 'https://github.com/apify', + label: 'GitHub', + title: 'Apify on GitHub', + position: 'right', + className: 'icon', + }, { href: 'https://discord.com/invite/jyEM2PRvMU', label: 'Discord', @@ -249,10 +256,6 @@ const themeConfig = { label: 'GitHub', href: 'https://github.com/apify', }, - { - href: 'https://discord.com/invite/jyEM2PRvMU', - label: 'Discord', - }, { label: 'Trust Center', href: 'https://trust.apify.com', @@ -271,15 +274,9 @@ const themeConfig = { appId: 'N8EOCSBQGH', apiKey: 'e97714a64e2b4b8b8fe0b01cd8592870', // search only (public) API key indexName: 'apify_sdk_v2', - placeholder: 'Search documentation', algoliaOptions: { facetFilters: ['version:VERSION'], }, - translations: { - button: { - buttonText: 'Search documentation…', - }, - }, }, hubspot: { accountId: '19497222', diff --git a/apify-docs-theme/src/theme/Footer/index.jsx b/apify-docs-theme/src/theme/Footer/index.jsx index 019c154742..fb5b24ee12 100644 --- a/apify-docs-theme/src/theme/Footer/index.jsx +++ b/apify-docs-theme/src/theme/Footer/index.jsx @@ -1,6 +1,5 @@ import { useThemeConfig } from '@docusaurus/theme-common'; import LinkItem from '@theme/Footer/LinkItem'; -import ColorModeToggle from '@theme/Navbar/ColorModeToggle'; import clsx from 'clsx'; import React from 'react'; @@ -9,7 +8,7 @@ import styles from './index.module.css'; function FooterLinksColumn({ column }) { return ( <> -
{column.title}
+
{column.title}