From 34cb96943928f6f20b2d6ad85e83ed228ec28c52 Mon Sep 17 00:00:00 2001 From: sanny-io Date: Sat, 13 Jun 2026 03:59:08 +0000 Subject: [PATCH 1/2] docs: fix missing search on mobile, cleanup navbar --- docusaurus.config.js | 45 +++++----------------------------------- src/css/custom.css | 49 -------------------------------------------- 2 files changed, 5 insertions(+), 89 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 71684e1d..5105d22b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -107,6 +107,11 @@ const config = { label: 'Reference', }, { to: '/blog', label: 'Blog', position: 'left' }, + { + href: 'https://github.com/zenstackhq/zenstack', + label: 'GitHub', + position: 'right', + }, { href: 'https://discord.gg/Ykhr738dUe', label: 'Discord', @@ -116,46 +121,6 @@ const config = { type: 'docsVersionDropdown', position: 'right', }, - { - type: 'html', - position: 'left', - value: `
- - - - - - Star on Github - - - - - - -
`, - }, ], }, footer: { diff --git a/src/css/custom.css b/src/css/custom.css index 3559aeea..c6dfd23d 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -36,52 +36,3 @@ .footer { @apply px-8 lg:px-16; } - -.navbar__item:has(> #github-button) { - display: inline-block; -} - -@media screen and (max-width: 445px) { - #github-text { - display: none; - } -} - -#github-button::before { - content: ''; - position: absolute; - top: 0; - right: -100%; - bottom: 0; - width: 100%; - opacity: 0.1; - background: var(--ifm-navbar-background-color); - transition: right 0.5s; - pointer-events: none; -} - -[data-theme='dark'] #github-button::before { - opacity: 0.3; -} - -#github-button:hover::before { - right: 0; - pointer-events: mouse; -} - -@media (max-width: 1200px) { - .navbar__items--right, - .navbar__items--left { - display: none; - } - - .navbar__toggle { - display: inherit; - } -} - -@media (min-width: 1201px) { - .navbar__toggle { - display: none; - } -} From fc86f3e7004a862a5229a7934abc831c891036a8 Mon Sep 17 00:00:00 2001 From: sanny-io Date: Sat, 13 Jun 2026 04:22:51 +0000 Subject: [PATCH 2/2] update styling --- docusaurus.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 5105d22b..ed2188a9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -109,8 +109,9 @@ const config = { { to: '/blog', label: 'Blog', position: 'left' }, { href: 'https://github.com/zenstackhq/zenstack', - label: 'GitHub', + label: '⭐ GitHub', position: 'right', + className: 'bg-gray-900 rounded-sm', }, { href: 'https://discord.gg/Ykhr738dUe',