Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Sep 9, 2025

…earch bar functionality for release notes


Important

Add AGENTS.md files for repository guidelines and enhance search bar functionality for release notes.

  • Documentation:
    • Add AGENTS.md files in .roo/rules-architect, .roo/rules-ask, .roo/rules-code, .roo/rules-debug, and root directory for guidance on repository rules and guidelines.
    • Centralize rules for theme components, sitemap, redirects, constants, analytics, and search plugin.
  • Search Bar:
    • Enhance search bar in src/theme/SearchBar/index.tsx to show a scope indicator when in /update-notes/* and provide a link to search the entire site.
  • Configuration:
    • Update docusaurus.config.ts to include searchContextByPaths for better search context management.

This description was created by Ellipsis for c72e817. You can customize this summary. It will automatically update as commits are pushed.

Copilot AI review requested due to automatic review settings September 9, 2025 21:23
@vercel
Copy link

vercel bot commented Sep 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
roo-code-docs Ready Ready Preview Comment Sep 9, 2025 9:25pm

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds AGENTS.md files containing project-specific rules and guidelines for AI agents, and enhances the search functionality for release notes with contextual search scoping.

  • Adds multiple AGENTS.md files with specialized guidance for different agent types (debug, code, ask, architect)
  • Implements a SearchBar wrapper component that shows contextual indicators when browsing release notes
  • Configures search context paths in Docusaurus to enable scoped search functionality

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/theme/SearchBar/index.tsx New SearchBar wrapper component with release notes context indicators
docusaurus.config.ts Adds search context configuration for different documentation sections
AGENTS.md Main agent guidance file with comprehensive project rules
.roo/rules-debug/AGENTS.md Debug-specific agent guidance focusing on CI and development issues
.roo/rules-code/AGENTS.md Code-specific agent guidance for linting, typing, and conventions
.roo/rules-ask/AGENTS.md Ask-specific agent guidance for documentation queries
.roo/rules-architect/AGENTS.md Architecture-specific agent guidance for structural decisions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

location.pathname === `${baseUrl}update-notes` ||
location.pathname.startsWith(`${baseUrl}update-notes/`);

const searchEverywhereHref = `${baseUrl}search/`;
Copy link

Copilot AI Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded 'search/' path should be extracted to a constant or configuration. This makes the search URL path configurable and easier to maintain if it needs to change.

Copilot uses AI. Check for mistakes.
{ label: "Roo Code Cloud", path: "roo-code-cloud" },
{ label: "Release Notes", path: "update-notes" }
],
useAllContextsWithNoSearchContext: true,
Copy link

Copilot AI Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The useAllContextsWithNoSearchContext configuration option lacks documentation or comments explaining its behavior and impact on search functionality.

Copilot uses AI. Check for mistakes.
@hannesrudolph hannesrudolph merged commit 6604d3a into main Sep 9, 2025
3 checks passed
@hannesrudolph hannesrudolph deleted the search-tweak branch September 9, 2025 22:32
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants