LaRecipe is a code-driven package created by Saleem Hadad that provides an easy way to create beautiful documentation for your product or application inside your Laravel app using Markdown.
To get started in your project, you need to install it via composer and run the setup command to publish the necessary assets and configuration:
1php artisan larecipe:install
Out of the box, LaRecipe put’s your documentation at the /docs
URL, and you can version control your documentation alongside your application. The folder structure of a typical installation looks like this:
1├─ config 2│ └─ larecipe.php 3└─ resources 4 └─ docs 5 │─ 1.0 6 │ │─ index.md 7 │ └─ overview.md 8 └─ 2.0 9 │─ index.md10 └─ overview.md
The above example would have routes to /docs/1.0
and /docs/2.0
. You can customize the base route, path to the documentation files, and the landing page. For example, configuring the landing
configuration option to overview
would map to overview.md
.
You can also configure the default version, and control published versions of the documentation:
1return [2 'versions' => [3 'default' => '1.0',4 'published' => [5 '1.0'6 ]7 ]8];
LaRecipe includes other configurations that you can learn about in the documentation and from the PHP configuration file.
LaRecipe converts your markdown documents into HTML, with optional Vue component support. You can read about Vue component support in the documentation. Out of the box, it includes Vue components for Cards, Buttons, Badges, and Progress.
You can get started with LaRecipe by reading through the LaRecipe documentation. The source code is also available at saleem-hadad/larecipe on GitHub.
0 comments:
Post a Comment
Thanks