Skip to content

Document the IDE plugin #321

Closed
4 of 6 issues completed
Closed
Feature
4 of 6 issues completed
@jmacdotorg

Description

@jmacdotorg
Contributor
  • Perform initial research
    Plan doc structure
    Get content plan approved
    Draft the docs
    Get approval

Sub-issues

Sub-issues

4 of 6 Issues completed

Activity

self-assigned this
on May 6, 2025
linear

linear commented on May 6, 2025

@linear
traycerai

traycerai commented on May 6, 2025

@traycerai

Plan

Observations

  • The repository uses Docusaurus with a docs/ directory and sidebars.ts for navigation.
  • No existing section or code references for an IDE plugin were found.
  • Current docs are organized into categories like "integrations" and "tools".
  • The ticket outlines steps: research, plan structure, draft, and approval.
  • We need to create a new docs/ide-plugin section and integrate it into the sidebar.

Approach

  • Research the IDE plugin’s source or specification to gather its commands, configuration options, and API.
  • Plan a clear hierarchy: overview, installation, configuration, usage, API reference, and development.
  • Scaffold markdown files under docs/ide-plugin/ following conventions from other integrations.
  • Update sidebars.ts to add an "IDE Plugin" category under "Configure CodeRabbit".
  • Optionally configure an automated API reference generator (e.g., TypeDoc) if the plugin is in a TS repo.
  • Draft content, open a PR for review, iterate, and obtain approval.

Reasoning

  • Inspected top-level repository files and confirmed it's a Docusaurus site.
  • Examined docs/ and sidebars.ts to understand existing nav structure.
  • Searched for any IDE plugin references in codebase and online; none existed.
  • Verified the GitHub ticket tasks and determined a new docs section is required.

Proposed File Changes

📁 docs/ide-plugin (NEW) 🔗

Create a new directory docs/ide-plugin/ to house all IDE plugin documentation.

📄 docs/ide-plugin/_category_.yaml (NEW) 🔗

Add _category_.yaml with metadata:

  • label: IDE Plugin
  • position: 8 (after integrations/tools)
  • collapsible: true
  • collapsed: false
📄 docs/ide-plugin/overview.md (NEW) 🔗

Create overview.md with:

  • Title and introduction to the IDE plugin
  • Goals and benefits
  • Prerequisites (e.g., supported IDEs, CodeRabbit account)
📄 docs/ide-plugin/installation.md (NEW) 🔗

Create installation.md with installation steps:

  • Installing from npm or IDE marketplace
  • Enabling the plugin in the IDE
  • Minimal initial configuration
📄 docs/ide-plugin/configuration.md (NEW) 🔗

Create configuration.md documenting all plugin options:

  • Plugin settings schema
  • Sample JSON/YAML configuration
  • Environment variables and defaults
📄 docs/ide-plugin/usage.md (NEW) 🔗

Create usage.md with examples:

  • How to activate reviews inside the IDE
  • Sample commands: plugin.activate(), plugin.reviewCurrentFile()
  • Screenshots or code sample blocks
📄 docs/ide-plugin/api-reference.md (NEW) 🔗

References

Create api-reference.md as a placeholder for generated API docs.

  • Note: configure TypeDoc in docusaurus.config.ts to output here.
📄 docs/ide-plugin/development.md (NEW) 🔗

Create development.md covering:

  • Cloning and building the plugin code
  • Running in debug mode within an IDE
  • Contribution guidelines for plugin repo
📄 sidebars.ts (MODIFY) 🔗

References

Under the "Configure CodeRabbit" category, insert a new category item:

{
  type: 'category',
  label: 'IDE Plugin',
  items: [
    'ide-plugin/overview',
    'ide-plugin/installation',
    'ide-plugin/configuration',
    'ide-plugin/usage',
    'ide-plugin/api-reference',
    'ide-plugin/development'
  ]
}

Import In IDE

VSCode Icon Cursor Icon Windsurf Icon

Developer Humor

Why did the developer pick the IDE plugin?
Because the docs hopped right into place! 🐇
Now reviewing code is a breeze,
With guidance in every IDE! 📚
Happy hopping! 🎉


Execution Information

Branch: main
Commit: 8831f9b


💡 Tips

Supported Commands (Inside Comments)

  • Use @traycerai generate to iterate on the previous version of the implementation plan.

Supported Commands (Inside Description)

  • Add @traycerai ignore anywhere in the ticket description to prevent this ticket from being processed.
  • Add @traycerai branch:<branch-name> anywhere in the ticket description to specify the target branch for the implementation plan.

Community

  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @jmacdotorg

    Issue actions

      Document the IDE plugin · Issue #321 · coderabbitai/coderabbit-docs