Skip to content

feat: add Sitemap Utility #1169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

feat: add Sitemap Utility #1169

wants to merge 7 commits into from

Conversation

Mantisus
Copy link
Collaborator

Description

  • TODO

Issues

@Mantisus Mantisus requested a review from Copilot April 22, 2025 23:42
Copy link
Contributor

@Copilot 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.

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

@Mantisus Mantisus self-assigned this Apr 22, 2025
@Mantisus Mantisus requested a review from Copilot May 30, 2025 12:16
Copy link
Contributor

@Copilot 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 introduces a sitemap utility feature that integrates new routing logic for various sitemap formats and refactors endpoint signatures for consistency.

  • Updated request routing in tests/unit/server.py to use a dictionary mapping paths to endpoint handler functions.
  • Refactored endpoint functions to include consistent parameters (scope, _receive, send).
  • Added a new get_sitemap_endpoint to serve sitemap content and implemented extensive tests in tests/unit/_utils/test_sitemap.py.

Reviewed Changes

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

File Description
tests/unit/server.py Refactored endpoint function signatures and routing logic; added new sitemap endpoint.
tests/unit/_utils/test_sitemap.py Added comprehensive tests covering XML, gzipped, plain text, and invalid sitemap scenarios.

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.

add Sitemap parser utility
1 participant