diff --git a/apify-docs-theme/src/config.js b/apify-docs-theme/src/config.js
index a039615cf7..c53b8d035c 100644
--- a/apify-docs-theme/src/config.js
+++ b/apify-docs-theme/src/config.js
@@ -136,13 +136,6 @@ const themeConfig = {
},
],
},
- {
- href: 'https://discord.com/invite/jyEM2PRvMU',
- label: 'Discord',
- title: 'Chat on Discord',
- position: 'right',
- className: 'icon',
- },
],
},
colorMode: {
diff --git a/apify-docs-theme/src/theme/Navbar/CTA/index.jsx b/apify-docs-theme/src/theme/Navbar/CTA/index.jsx
index 4c8f82b2f2..2cf0aa5c12 100644
--- a/apify-docs-theme/src/theme/Navbar/CTA/index.jsx
+++ b/apify-docs-theme/src/theme/Navbar/CTA/index.jsx
@@ -1,6 +1,6 @@
import styles from './styles.module.css';
-const buttonText = 'Go to Console';
+const buttonText = 'Get started';
function clickHandler() {
if (window.analytics) {
diff --git a/apify-docs-theme/src/theme/Navbar/Content/DiscordIcon.jsx b/apify-docs-theme/src/theme/Navbar/Content/DiscordIcon.jsx
new file mode 100644
index 0000000000..009b8f5871
--- /dev/null
+++ b/apify-docs-theme/src/theme/Navbar/Content/DiscordIcon.jsx
@@ -0,0 +1,10 @@
+export function DiscordIcon({ color = 'currentColor', size = 24 }) {
+ return (
+
+ );
+}
diff --git a/apify-docs-theme/src/theme/Navbar/Content/index.jsx b/apify-docs-theme/src/theme/Navbar/Content/index.jsx
index 3f3ae39748..d781c53430 100644
--- a/apify-docs-theme/src/theme/Navbar/Content/index.jsx
+++ b/apify-docs-theme/src/theme/Navbar/Content/index.jsx
@@ -11,6 +11,7 @@ import React from 'react';
// import SearchBar from '../../SearchBar';
import NavbarCTA from '../CTA';
+import { DiscordIcon } from './DiscordIcon';
function NavbarItems({ items }) {
return (
@@ -22,11 +23,12 @@ function NavbarItems({ items }) {
);
}
-function NavbarContentLayout({ left, right }) {
+function NavbarContentLayout({ left, center, right }) {
return (
{left}
+
{center}
{right}
@@ -88,22 +90,42 @@ export default function NavbarContent() {
left={
<>
-
>
}
+ center={
+ !searchBarItem && (
+
+
+
+ )
+ }
right={
<>
-
- {!searchBarItem && (
-
-
-
- )}
+
+
+
>
}
/>
+
+
+ >
+ }
+ right={
+ <>
+
+ >
+ }
+ />
);
diff --git a/apify-docs-theme/src/theme/SearchBar/SparklesIcon.jsx b/apify-docs-theme/src/theme/SearchBar/SparklesIcon.jsx
new file mode 100644
index 0000000000..b9cee3f227
--- /dev/null
+++ b/apify-docs-theme/src/theme/SearchBar/SparklesIcon.jsx
@@ -0,0 +1,20 @@
+export function SparklesIcon({ color = 'currentColor', size = 16 }) {
+ return (
+
+ );
+}
diff --git a/apify-docs-theme/src/theme/SearchBar/index.js b/apify-docs-theme/src/theme/SearchBar/index.js
index 2cdc2e439c..1a3dd6c2fc 100644
--- a/apify-docs-theme/src/theme/SearchBar/index.js
+++ b/apify-docs-theme/src/theme/SearchBar/index.js
@@ -6,6 +6,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import { useState, useCallback } from 'react';
import { ApifySearch } from '@apify/docs-search-modal';
+import { SparklesIcon } from './SparklesIcon';
// needs to be imported as the last thing, so that it can override the default styles
// TODO: update simple-import-sort to allow importing css as last.
@@ -106,6 +107,7 @@ function KapaAIButton({ onClick }) {
{() => (
diff --git a/apify-docs-theme/src/theme/SearchBar/styles.css b/apify-docs-theme/src/theme/SearchBar/styles.css
index 01baaaa5c0..7e0f6da2bc 100644
--- a/apify-docs-theme/src/theme/SearchBar/styles.css
+++ b/apify-docs-theme/src/theme/SearchBar/styles.css
@@ -26,19 +26,20 @@
.AskAI-Button {
height: 4rem;
padding: 0.8rem 1.6rem !important;
- background-color: var(--ifm-color-primary);
+ background-color: rgba(255, 255, 255, 0);
border-radius: 8px;
- color: var(--color-neutral-text-on-primary);
font-family: inherit;
font-size: 1.6rem;
- font-weight: 500;
+ font-weight: 400;
line-height: 2.4rem;
- border: none;
+ border: 1px solid var(--color-neutral-border);
box-shadow: none;
outline: none;
box-sizing: border-box;
cursor: pointer;
- display: block;
+ display: flex;
+ align-items: center;
+ gap: 0.6rem;
position: relative;
text-align: center;
transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default);
@@ -53,6 +54,12 @@
display: none;
}
+@media (min-width: 769px) {
+ .DocSearch-Button {
+ width: 30rem;
+ }
+}
+
@media (max-width: 768px) {
.SearchButton-Container {
width: 100%;
diff --git a/apify-docs-theme/src/theme/custom.css b/apify-docs-theme/src/theme/custom.css
index a27c724bdf..e13fbed652 100644
--- a/apify-docs-theme/src/theme/custom.css
+++ b/apify-docs-theme/src/theme/custom.css
@@ -551,34 +551,16 @@ aside > div > a > b {
top: 10px;
}
-.navbar .icon {
- font-size: 0;
- padding: 4px;
- line-height: 0;
-}
-
-.navbar .icon::before {
- content: '';
- display: block;
- width: 24px;
- height: 24px;
- background-size: cover;
-}
-
-.navbar .icon[href*='github']::before {
- background-image: url('/img/github-brand.svg');
-}
-
-html[data-theme='dark'] .navbar .navbar__link[href*='github']:before {
- background-image: url('/img/github-brand-dark.svg');
-}
-
-.navbar .icon[href*='discord']::before {
- background-image: url('/img/discord-brand.svg');
-}
-
-html[data-theme='dark'] .navbar .navbar__link[href*='discord']:before {
- background-image: url('/img/discord-brand-dark.svg');
+.navbar .icon[href*='discord'] {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 4rem;
+ height: 4rem;
+ background-color: var(--color-Neutral_BackgroundMuted);
+ border: 1px solid var(--color-neutral-border);
+ border-radius: 4px;
+ color: var(--ifm-navbar-link-color);
}
.navbar .icon svg[class*='iconExternalLink'],
diff --git a/apify-docs-theme/static/img/discord-brand-dark.svg b/apify-docs-theme/static/img/discord-brand-dark.svg
deleted file mode 100644
index 8b97b4c5d8..0000000000
--- a/apify-docs-theme/static/img/discord-brand-dark.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/apify-docs-theme/static/img/discord-brand.svg b/apify-docs-theme/static/img/discord-brand.svg
deleted file mode 100644
index 58254473b9..0000000000
--- a/apify-docs-theme/static/img/discord-brand.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-