diff --git a/README.md b/README.md index 0bb39f7..35d3cfd 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ Manage your robots.txt from your Sylius admin pannel +![Demo of the settings form to manage robots.txt content](docs/images/demo.jpg) + ## Compatibility | Sylius Version | PHP Version | @@ -31,6 +33,41 @@ Then remove your `robots.txt` file from your public directory. rm public/robots.txt ``` +
For the installation without flex, follow these additional steps +

+ +[Setup Settings Installation](https://github.com/monsieurbiz/SyliusSettingsPlugin/?tab=readme-ov-file#installation) + +Change your `config/bundles.php` file to add this line for the plugin declaration: +```php + ['all' => true], +]; +``` + +Then create the config file in `config/packages/monsieurbiz_sylius_robots_txt_plugin.yaml` : + +```yaml +imports: + resource: '@MonsieurBizSyliusRobotsTxtPlugin/Resources/config/config.yaml' +``` + +Finally import the routes in `config/routes/monsieurbiz_sylius_robots_txt_plugin.yaml` : + +```yaml +monsieurbiz_robots_txt_render: + path: /robots.txt + methods: [ GET ] + defaults: + _controller: MonsieurBiz\SyliusRobotsTxtPlugin\Controller\RenderController +``` + +

+
+ ## Contributing You can open an issue or a Pull Request if you want! 😘 diff --git a/docs/images/demo.jpg b/docs/images/demo.jpg new file mode 100644 index 0000000..c12270d Binary files /dev/null and b/docs/images/demo.jpg differ