Skip to content

feat: add sitemap#47

Open
avivkeller wants to merge 1 commit intomainfrom
sitemap
Open

feat: add sitemap#47
avivkeller wants to merge 1 commit intomainfrom
sitemap

Conversation

@avivkeller
Copy link
Copy Markdown
Member

cc @MattIPv4

This PR adds a new sitemap to /learn/sitemap.xml.

Copilot AI review requested due to automatic review settings April 7, 2026 14:02
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

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

Project Deployment Actions Updated (UTC)
nodejs-learn Ready Ready Preview Apr 7, 2026 2:02pm

Request Review

Copy link
Copy Markdown

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

Adds sitemap generation to the Learn site build so a sitemap can be published at /learn/sitemap.xml, leveraging doc-kit’s sitemap target and shared URL configuration.

Changes:

  • Extend the build script to run the sitemap generator target.
  • Move baseURL into global config and add a sitemap configuration block to control sitemap URLs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Adds the sitemap target to the doc-kit build pipeline.
doc-kit.config.mjs Centralizes baseURL under global and configures sitemap URL templates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@MattIPv4 MattIPv4 left a comment

Choose a reason for hiding this comment

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

Nice. Once landed, we need to update nodejs.org/robots.txt to reference it (and the root sitemap too by the looks of it).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants