Skip to content

Commit bfe1347

Browse files
Revert "Fix mobile search bar visibility and suppress search plugin warnings …"
This reverts commit 4340033.
1 parent d519baa commit bfe1347

File tree

10 files changed

+130
-567
lines changed

10 files changed

+130
-567
lines changed

.env.example

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
# PostHog Analytics (optional)
2-
# POSTHOG_API_KEY=your_posthog_api_key_here
3-
4-
# Suppress webpack warnings (optional)
5-
# Set this to suppress module resolution warnings during build
6-
# NODE_OPTIONS="--no-warnings"
7-
8-
# Alternative: Suppress specific warning types
9-
# SUPPRESS_SEARCH_WARNINGS=true
1+
POSTHOG_API_KEY=your_posthog_api_key

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
.cache-loader
1010
*.js
1111
!src/**/*.js
12-
!plugins/**/*.js
1312

1413
# Misc
1514
.DS_Store

.roorules

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -15,67 +15,4 @@ Never Thank cte, hannesrudolph, jr, roomote, dleffel or mrubens in release notes
1515

1616

1717
## Misc
18-
When moving a section, make sure to add the forwarding link in docusaurus.config.ts
19-
20-
# CLAUDE.md
21-
22-
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
23-
24-
## Common Development Commands
25-
26-
### Build & Development
27-
- `npm start` - Start local development server with hot reload at http://localhost:3000
28-
- `npm run build` - Build static production site to `/build` directory
29-
- `npm run serve` - Serve production build locally
30-
31-
### Code Quality
32-
- `npm run lint` - Lint TypeScript/JavaScript files in `/src`
33-
- `npm run lint:fix` - Auto-fix linting issues
34-
- `npm run typecheck` - Run TypeScript type checking
35-
- `npm run lint:unused` - Check for unused imports
36-
37-
### Documentation Management
38-
- `npm run clear` - Clear Docusaurus cache (useful if seeing stale content)
39-
- `npm run swizzle` - Customize Docusaurus components
40-
41-
## High-Level Architecture
42-
43-
This is a Docusaurus v3 documentation site for Roo Code, an AI-powered VS Code extension. The architecture follows these patterns:
44-
45-
### Content Structure
46-
- **Documentation** lives in `/docs` with a hierarchical folder structure
47-
- **Components** in `/src/components` provide custom React components used throughout the site
48-
- **Theme customizations** in `/src/theme` override default Docusaurus components for custom behavior
49-
- **Static assets** in `/static` (images, downloads, etc.)
50-
51-
### Key Configuration Files
52-
- `docusaurus.config.ts` - Main site configuration including URLs, metadata, plugins, and theme settings
53-
- `sidebars.ts` - Defines the documentation navigation structure
54-
- `src/constants.ts` - Centralized URLs and links used across the site
55-
56-
### Documentation Organization
57-
The `/docs` folder follows this structure:
58-
- `getting-started/` - New user onboarding
59-
- `basic-usage/` - Core features and concepts
60-
- `features/` - Detailed feature documentation
61-
- `advanced-usage/` - Power user features and tools
62-
- `providers/` - API provider configurations
63-
- `community/` - Community contributions and resources
64-
- `update-notes/` - Version release notes
65-
66-
### Custom Components
67-
The site uses custom React components for:
68-
- Social media icons and links
69-
- Tutorial video grids
70-
- Animated backgrounds
71-
- GitHub installation buttons
72-
- Custom navbar and footer implementations
73-
74-
### Search Implementation
75-
Uses `@easyops-cn/docusaurus-search-local` for local search functionality with highlighting and explicit result paths.
76-
77-
### Analytics
78-
Integrates PostHog analytics when `POSTHOG_API_KEY` environment variable is set.
79-
80-
### Redirects
81-
Extensive redirect configuration handles moved documentation pages to maintain backwards compatibility with existing links.
18+
When moving a section, make sure to add the forwarding link in docusaurus.config.ts

CLAUDE.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const config: Config = {
7373
{
7474
hashed: true,
7575
language: ["en"],
76-
highlightSearchTermsOnTargetPage: false,
76+
highlightSearchTermsOnTargetPage: true,
7777
explicitSearchResultPath: true,
7878
docsRouteBasePath: "/",
7979
},

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"docusaurus": "docusaurus",
77
"start": "node -r dotenv/config node_modules/.bin/docusaurus start",
88
"build": "node -r dotenv/config node_modules/.bin/docusaurus build",
9-
"build:quiet": "NODE_OPTIONS='--no-warnings' node -r dotenv/config node_modules/.bin/docusaurus build",
109
"swizzle": "docusaurus swizzle",
1110
"deploy": "docusaurus deploy",
1211
"clear": "docusaurus clear",

plugins/README.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/components/SearchKeyboardShortcut/index.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)