Comments (3)
It's possible to prevent documents from being searched by removing the search box in the navigation bar. Below is an example code for achieving this. In this code, we are passing an empty element to the option to replace the search box in theme.config
from the Docs Theme Configuration, effectively disabling the search functionality.
import type { DocsThemeConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
search: {
component: <></>,
}
};
export default config;
I hope this helps! Let me know if you need any further assistance.
from nextra.
Thank you, what should I do if I just want a document not to be searched?
from nextra.
Specify a document.~
from nextra.
Related Issues (20)
- Hide breadcrumb on summary pages
- Theme Configuration - 404/500 HOT 1
- the way I make it is like this HOT 1
- How can I override the `img`
- [BUG?] Every reload i get this error HOT 2
- Display sidebar for "page" type
- Feedback for “Kirish” HOT 1
- Navbar UI
- How to order pages inside a subfolder?
- How to highlight a new item added in the right sidebar ? HOT 6
- Feedback for “Elon Store - MLOs - Changelogs”
- [v3] applying `display: "hidden"` breaks _meta in the subdir
- [v3] Extra {:foo} annotations not stripped from search text
- Tabs are not shown in Sidebar even after mentioning in `_meta.json` HOT 1
- Recma plugins order HOT 1
- Feedback for “Page Configuration” HOT 3
- v3 back-to-top button does not scroll all the way to top
- Defaults Meta Tags Doesn't Get Removed on Nextra.js HOT 6
- Sidebar hidden in production only HOT 6
- “Bleed” is bleeding on larger screen sizes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextra.