Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: enhance navigation UI with improved theme components (#438)
  • Loading branch information
Prasad Bhat authored and Prasad Bhat committed Jul 30, 2025
commit 77c413a7c129bf4bf85ec79b427db156b553d7e8
22 changes: 16 additions & 6 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const config: Config = {
"classic",
{
docs: {
editUrl: "https://github.com/coderabbitai/coderabbit-docs/edit/main/",
editUrl: () => null,
sidebarPath: "./sidebars.ts",
path: "docs",
routeBasePath: "/",
Expand Down Expand Up @@ -221,6 +221,10 @@ const config: Config = {
src: "https://cdnjs.cloudflare.com/ajax/libs/axios/1.2.1/axios.min.js",
async: true,
},
{
src: "/js/navbar-theme.js",
async: true,
},
],

themeConfig: {
Expand Down Expand Up @@ -253,11 +257,6 @@ const config: Config = {
to: "/",
className: "navbar-link-active",
},
{
href: "https://coderabbit.ai/blog",
label: "Blog",
position: "left",
},
{
href: "https://discord.gg/coderabbit",
className: "navbar-icon-link discord-link",
Expand All @@ -270,6 +269,17 @@ const config: Config = {
"aria-label": "GitHub",
position: "right",
},
{
type: "html",
position: "right",
value:
'<div class="navbar__item"><button class="clean-btn navbar__item navbar-theme-toggle" type="button" aria-label="Switch between dark and light mode" tabindex="0"></button></div>',
},
{
href: "https://coderabbit.ai/blog",
label: "Blog",
position: "right",
},
],
},
prism: {
Expand Down
10 changes: 10 additions & 0 deletions src/components/SidebarSearch.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import SearchBar from '@theme/SearchBar';

export default function SidebarSearch(): JSX.Element {
return (
<div className="sidebar-search-container">
<SearchBar />
</div>
);
}
Loading
Loading