-
Notifications
You must be signed in to change notification settings - Fork 301
feat(robots.txt): add guide for extending robots.txt functionality #1988
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
base: main
Are you sure you want to change the base?
Conversation
BrocksiNet
commented
Oct 31, 2025
- Introduce a new guide on how to extend robots.txt in Shopware, including event handling for custom validation and dynamic directives.
- Update the SEO index to reference the new robots.txt guide.
* Introduce a new guide on how to extend robots.txt in Shopware, including event handling for custom validation and dynamic directives. * Update the SEO index to reference the new robots.txt guide.
…ocumentation * Update titles and references to 'robots.txt file' for consistency. * Improve phrasing and formatting in the overview and directive sections for better readability. * Ensure proper inline code formatting for 'robots.txt' throughout the documentation.
* Change title references from 'robots.txt file' to 'robots configuration' for consistency. * Update version references from 6.7.4 to 6.7.5 in the guide. * Add a new example subscriber for validating sitemap directives and crawl-delay values. * Improve overall structure and readability of the robots configuration documentation.
* Add tabs for better organization of code examples related to custom directive subscribers and service registration. * Include a complete XML service definition for the CustomDirectiveSubscriber. * Improve overall structure and readability of the documentation.
There was a problem hiding this 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 adds comprehensive documentation for extending Shopware's robots.txt configuration functionality. The changes introduce a new guide that explains how to programmatically customize robots.txt behavior through events, alongside updates to the main SEO documentation page to organize content into clear sections.
- Added new guide "Extend robots configuration" with detailed examples for handling robots.txt directives
- Restructured the main SEO index page to organize content into SEO URLs and Robots configuration sections
- Documented three key extensibility patterns: modifying parsed directives, handling custom directives, and managing parse issues
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| guides/plugins/plugins/content/seo/index.md | Reorganized content into structured sections with subsections for SEO URLs and Robots configuration |
| guides/plugins/plugins/content/seo/extend-robots-txt.md | New comprehensive guide with code examples for extending robots.txt functionality through events |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* Change title from 'Extend robots configuration' to 'Extend robots.txt configuration' for improved specificity and consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…on guide * Change code block syntax from lowercase to uppercase for PHP and XML examples for consistency and improved readability. * Ensure uniformity in formatting across all code examples in the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…bots.txt extension guide * Replace references to 'EventSubscriber' with 'EventListener' for consistency in terminology. * Update code examples to reflect the new naming conventions and improve clarity. * Add validation checks for conflicting Allow/Disallow directives in the robots.txt parsing process. * Enhance overall structure and readability of the documentation.