Skip to content

Conversation

@abumalick
Copy link
Contributor

@abumalick abumalick commented Jul 25, 2025

Related GitHub Issue

Closes: #5231 partially

Roo Code Task Context (Optional)

Description

  • added sitemap generated](feat: implement sitemap generation in TypeScript and remove XML file)

Why? The previous sitemap was only indexing the root page.

Test Procedure

  • I built the website using pnpm turbo build --filter=@roo-code/web-roo-code
  • Started the web server: pnpm --filter @roo-code/web-roo-code start

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

image

Documentation Updates

  • No documentation updates are required.
  • Yes, documentation updates are required. (Please describe what needs to be updated or link to a PR in the docs repository).

Additional Notes

These changes are contributing the linked issue.

Get in Touch

Discord username: abumalick


Important

Implement TypeScript sitemap generation in sitemap.ts and remove sitemap.xml, indexing multiple pages.

  • Behavior:
    • Implement sitemap generation in TypeScript in sitemap.ts.
    • Remove sitemap.xml file.
    • Sitemap now indexes multiple pages: /, /enterprise, /evals, /privacy, /terms.
  • Technical Details:
    • Uses MetadataRoute from next for sitemap structure.
    • Each URL entry includes lastModified, changeFrequency, and priority.

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

Copilot AI review requested due to automatic review settings July 25, 2025 09:10
@abumalick abumalick requested review from cte, jr and mrubens as code owners July 25, 2025 09:10
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 25, 2025

This comment was marked as outdated.

@dosubot dosubot bot added the enhancement New feature or request label Jul 25, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 25, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jul 25, 2025
@hannesrudolph hannesrudolph added PR - Needs Preliminary Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jul 25, 2025
Copy link
Member

@daniel-lxs daniel-lxs left a comment

Choose a reason for hiding this comment

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

Hey @abumalick Thank you for the implementation, I left a couple of suggestions, let me know what you think!

Comment on lines 9 to 33
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we should address this as well.

@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Changes Requested] in Roo Code Roadmap Jul 29, 2025
@abumalick abumalick requested a review from Copilot August 7, 2025 16:55
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Aug 7, 2025

This comment was marked as outdated.

@daniel-lxs daniel-lxs moved this from PR [Changes Requested] to PR [Needs Prelim Review] in Roo Code Roadmap Aug 7, 2025
@abumalick abumalick requested a review from Copilot August 7, 2025 17:21
Copy link
Contributor

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 implements dynamic sitemap generation in TypeScript to replace the static XML sitemap file. The change enables indexing of multiple pages instead of just the root page, improving SEO coverage.

  • Replaces static sitemap.xml with dynamic sitemap.ts using Next.js MetadataRoute
  • Adds automated script to update sitemap dates based on git history
  • Configures site URL through environment variable for flexibility

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/update-sitemap-dates.js New utility script to automatically update sitemap dates from git history
package.json Adds npm script for running sitemap date updates
apps/web-roo-code/src/app/sitemap.xml Removes static XML sitemap file
apps/web-roo-code/src/app/sitemap.ts Implements dynamic TypeScript sitemap with multiple pages
apps/web-roo-code/.env.example Adds site URL configuration for sitemap generation

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 7, 2025
@daniel-lxs daniel-lxs moved this from PR [Needs Prelim Review] to PR [Needs Review] in Roo Code Roadmap Aug 7, 2025
@abumalick
Copy link
Contributor Author

You are welcome 👍🏻

@abumalick
Copy link
Contributor Author

Do you have time to review @mrubens ?

@mrubens
Copy link
Collaborator

mrubens commented Aug 12, 2025

I'm not an expert at this stuff, but could we use https://www.npmjs.com/package/next-sitemap? Seems like it would be nice to rely on a library for this logic (and seems like they might have more infrastructure for actually running the script automatically?)

@daniel-lxs daniel-lxs moved this from PR [Needs Review] to PR [Changes Requested] in Roo Code Roadmap Aug 12, 2025
- Install next-sitemap as dev dependency
- Add next-sitemap.config.cjs with proper configuration
- Configure postbuild script to generate sitemap automatically
- Add robots.txt generation
- Remove custom sitemap.ts and update-sitemap-dates.js script
- Add generated files to .gitignore
- Add .npmrc to enable pre/post scripts for pnpm

This provides better future-proofing with automatic page discovery,
robots.txt generation, and more configuration options as suggested by @mrubens.
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Aug 14, 2025
@abumalick
Copy link
Contributor Author

abumalick commented Aug 14, 2025

mmh thank you for finishing this @daniel-lxs , I am able to contribute during the weekend only.

Copy link
Member

@daniel-lxs daniel-lxs left a comment

Choose a reason for hiding this comment

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

Thank you @abumalick!

@daniel-lxs daniel-lxs moved this from PR [Changes Requested] to PR [Needs Review] in Roo Code Roadmap Aug 14, 2025
@mrubens mrubens merged commit 3d2673b into RooCodeInc:main Aug 14, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Aug 14, 2025
@github-project-automation github-project-automation bot moved this from PR [Needs Review] to Done in Roo Code Roadmap Aug 14, 2025
@abumalick
Copy link
Contributor Author

Thank you, @daniel-lxs. Ultimately, only one line of my code survived in the PR, so credit for this improvement should go to you in the release notes. I’m pleased that our work brought a valuable enhancement.

@daniel-lxs
Copy link
Member

@abumalick no worries, it was your idea and you laid the groundwork for us to complete it

fxcl added a commit to tameslabs/Roo-Cline that referenced this pull request Aug 16, 2025
* main: (70 commits)
  fix: use native Ollama API instead of OpenAI compatibility layer (RooCodeInc#7137)
  feat: add support for OpenAI gpt-5-chat-latest model (RooCodeInc#7058)
  Make enhance with task history default to true (RooCodeInc#7140)
  Bump cloud version to 0.16.0 (RooCodeInc#7135)
  Release: v1.51.0 (RooCodeInc#7130)
  Add an API for resuming tasks by ID (RooCodeInc#7122)
  Add support for task page event population (RooCodeInc#7117)
  fix: add type check before calling .match() on diffItem.content (RooCodeInc#6905) (RooCodeInc#6906)
  Fix: Enable save button for provider dropdown and checkbox changes (RooCodeInc#7113)
  fix: Use cline.cwd as primary source for workspace path in codebaseSearchTool (RooCodeInc#6902)
  Hotfix multiple folder workspace checkpoint (RooCodeInc#6903)
  fix: prevent XML entity decoding in diff tools (RooCodeInc#7107) (RooCodeInc#7108)
  Refactor task execution system: improve call stack management (RooCodeInc#7035)
  Changeset version bump (RooCodeInc#7104)
  feat(web): fill missing SEO-related values (RooCodeInc#7096)
  Update contributors list (RooCodeInc#6883)
  Release v3.25.15 (RooCodeInc#7103)
  fix: add /evals page to sitemap generation (RooCodeInc#7102)
  feat: implement sitemap generation in TypeScript and remove XML file (RooCodeInc#6206)
  fix: reset condensing state when switching tasks (RooCodeInc#6922)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer PR - Needs Review size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Index the official website in google

4 participants