Skip to content
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

Utilize sitemap for crawling Docs website pages #53

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Burhan-Q
Copy link
Owner

@Burhan-Q Burhan-Q commented May 28, 2024

Related to #46

Implements sitemap crawling for the Ultralytics Documentation Bot to dynamically fetch and filter pages from the Docs website.

  • Adds a new function fetch_sitemap to retrieve and parse the sitemap XML from the Docs website, filtering URLs to include only desired pages.
  • Modifies docs_choices to utilize the sitemap for obtaining URLs, generating Discord Embeds for each URL with a title, author, and footer.
  • Implements a check to ensure titles for generated Discord Embeds are less than 25 characters.
  • Adds a function validate_sitemap_urls to verify the validity of URLs obtained from the sitemap, ensuring they are reachable and return a 200 status code.

For more details, open the Copilot Workspace session.

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.

1 participant