Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon How can I customize the documentation templates in LaRecipe
    Laravel Service Provider


How can I customize the documentation templates in LaRecipe


To customize the documentation templates in LaRecipe, you can follow these steps:

1. Publish the LaRecipe views and assets by running the following command:


php artisan larecipe:publish

This will publish the LaRecipe views and assets to your application's `resources/views/vendor/larecipe` and `public/vendor/larecipe` directories, respectively.

2. Customize the Blade templates in the `resources/views/vendor/larecipe` directory. You can modify the HTML structure, CSS styles, and JavaScript functionality to match your desired design and functionality.

Some key files you can customize include:

- `layout.blade.php`: The main layout template that wraps the entire documentation.
- `index.blade.php`: The template for the documentation homepage.
- `show.blade.php`: The template for individual documentation pages.
- `partials/*.blade.php`: Various partials used throughout the documentation, such as the sidebar, navbar, and footer.

3. Customize the CSS and JavaScript assets in the `public/vendor/larecipe` directory. You can modify the existing styles and scripts or add your own custom styles and scripts.

4. If you need to change the default routes, configurations, or other settings, you can publish the LaRecipe configuration file by running:


php artisan vendor:publish --provider="BinaryTorch\LaRecipe\LaRecipeServiceProvider"

This will create a `config/larecipe.php` file in your application, where you can customize various settings.

By following these steps, you can fully customize the documentation templates in LaRecipe to match the branding and design of your application.

Citations:
[1] https://www.youtube.com/watch?v=tQCkVnkwfDg
[2] https://madewithvuejs.com/larecipe
[3] https://github.com/larecipe
[4] https://dev.to/bobbyiliev/write-gorgeous-documentations-for-your-products-using-markdown-inside-your-laravel-app-2p23
[5] https://github.com/saleem-hadad/larecipe