- What is capell-app/site-discovery used for?
- It is a Laravel package that adds site discovery features to Capell sites. It exposes XML and HTML sitemaps, robots directives, canonical public URLs, and well-known endpoints so search engines and AI crawlers can find and index your content.
- How do I install capell-app/site-discovery?
- Install the package with Composer by running composer require capell-app/site-discovery. Then follow the repository setup instructions for registering the service provider and publishing any configuration your Laravel version requires.
- Does it generate both XML and HTML sitemaps?
- Yes, the package supports XML sitemaps for search engine crawlers and HTML sitemaps for human visitors. The XML output follows sitemap conventions, while the HTML sitemap provides a browsable index of public pages.
- How does canonical public URL discovery work?
- The package discovers canonical public URLs for your Capell site so sitemaps and crawler-facing endpoints use consistent, indexable addresses. This helps keep internal or duplicate URLs out of the discovery output.
- Can I customize the robots.txt directives it exposes?
- Yes, the package exposes robots directives that can be configured for your site. You can use them to point crawlers at your sitemap and control which areas should be indexed, subject to the package's configuration options.
- What well-known endpoints does it provide?
- It provides well-known endpoints that help crawlers discover site metadata and sitemap locations. The exact paths and response formats are defined by the package, so check its routes and configuration for the current list.
- Which Laravel versions does capell-app/site-discovery support?
- The package is built for Laravel applications and follows framework-native integration patterns. Check the repository's composer.json and README for the exact Laravel version constraint before adding it to your project.
- How do I exclude private or non-indexable pages from the sitemap?
- Use the package configuration to control URL discovery and which public routes are exposed to crawlers. Review your Capell routing and the published config file to keep private, admin, or duplicate pages out of sitemap and discovery output.
- Is it useful for AI crawlers as well as search engines?
- Yes, the package is designed to make your Capell site discoverable by both search engines and AI crawlers. It combines sitemaps, robots directives, canonical URLs, and well-known endpoints so crawlers have clear public discovery paths.
- How should I test sitemap and robots output before production?
- Write Laravel feature tests that request the sitemap and robots routes and assert the expected XML or plain-text responses. Also verify canonical URL discovery against your Capell site's public routes in a staging environment before deploying.