Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jan 24, 2026

This PR migrates the standalone Roo-Code-Docs repository into the Roo-Code monorepo as apps/docs.

Summary of Changes

Documentation Migration

  • Moved all documentation files, components, and static assets from Roo-Code-Docs to apps/docs
  • Created new @roo-code/docs package with monorepo-compatible dependencies
  • Changed @roo-code/types dependency to workspace:^ for tighter integration

Configuration Updates

  • Updated docusaurus.config.ts editUrl to point to apps/docs/ path in monorepo
  • Fixed @roo-code/types package.json to export built files instead of source files (prevents Webpack resolution errors)
  • Added missing Docusaurus dependencies: @docusaurus/plugin-content-docs, @docusaurus/theme-common, @easyops-cn/autocomplete.js
  • Updated turbo.json to include docs-specific build outputs (.docusaurus/**, build/**)

Build & Type Fixes

  • Fixed TypeScript error with inert attribute in MobileSidebar component
  • Added .gitignore for docs to exclude build artifacts
  • Successfully tested build with pnpm --filter @roo-code/docs build

Documentation

  • Created comprehensive README at apps/docs/README.md with:
    • Development setup instructions
    • Environment variable configuration
    • Vercel deployment setup guide
    • Documentation writing guidelines

Deployment Setup Required

GitHub Actions Workflows

Two workflow files need to be manually added (GitHub App lacks workflow permissions):

  • .github/workflows/docs-deploy.yml - Deploy to Vercel on push to main
  • .github/workflows/docs-preview.yml - Deploy preview on PR

These files are available in the unstaged changes.

Vercel Configuration

Required secrets in GitHub repository settings:

  • VERCEL_TOKEN - Personal Access Token from Vercel
  • VERCEL_ORG_ID - Organization ID from Vercel
  • VERCEL_DOCS_PROJECT_ID - Project ID for docs
  • POSTHOG_API_KEY - PostHog analytics key (optional)
  • INTERCOM_APP_ID - Intercom widget ID (optional)

Vercel project settings:

  • Root Directory: apps/docs
  • Build Command: pnpm build
  • Output Directory: build
  • Install Command: pnpm install --frozen-lockfile
  • Node Version: 20.x
  • Custom Domain: docs.roocode.com

Post-Merge Tasks

  1. Add GitHub Actions workflows manually
  2. Configure Vercel project with the settings above
  3. Archive the Roo-Code-Docs repository with a redirect notice
  4. Update any external links pointing to the old repository

View task on Roo Code Cloud

- Move all documentation files from standalone repo to apps/docs
- Create @roo-code/docs package with workspace dependencies
- Update docusaurus.config.ts editUrl to point to apps/docs path
- Fix @roo-code/types package.json to export built files instead of source
- Add missing dependencies (@docusaurus/plugin-content-docs, @docusaurus/theme-common, @easyops-cn/autocomplete.js)
- Update turbo.json to include docs build outputs
- Add comprehensive README with setup instructions
- Add .gitignore to exclude build artifacts
- Fix TypeScript error with inert attribute

This migration consolidates the docs into the main repository for better
integration and streamlined deployment via Vercel.

Note: GitHub Actions workflows for deployment will be added manually
due to repository permissions.
@roomote roomote bot requested review from cte, jr and mrubens as code owners January 24, 2026 19:30
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. Documentation Improvements or additions to documentation labels Jan 24, 2026
@roomote
Copy link
Contributor Author

roomote bot commented Jan 24, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. Found 1 issue that needs attention before merging.

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@ellipsis-dev
Copy link
Contributor

ellipsis-dev bot commented Jan 24, 2026

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at help@ellipsis.dev


Generated with ❤️ by ellipsis.dev

*/

// GitHub repository information
export const GITHUB_REPO_URL = "https://github.com/RooCodeInc/Roo-Code-Docs"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

GITHUB_REPO_URL still points to the old standalone repository (Roo-Code-Docs). Since this constant is used for the editUrl in docusaurus.config.ts with /apps/docs/ appended, the resulting "Edit this page" links will be broken - the path https://github.com/RooCodeInc/Roo-Code-Docs/edit/main/apps/docs/ doesn't exist. This should point to the main monorepo instead.

Suggested change
export const GITHUB_REPO_URL = "https://github.com/RooCodeInc/Roo-Code-Docs"
export const GITHUB_REPO_URL = "https://github.com/RooCodeInc/Roo-Code"

Fix it with Roo Code or mention @roomote and request a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants