Package Data | |
---|---|
Maintainer Username: | it-devgroup |
Maintainer Contact: | gavoronok30@gmail.com (Gavoronok30) |
Package Create Date: | 2021-12-17 |
Package Last Update: | 2021-12-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-10-27 15:19:33 |
Package Statistics | |
---|---|
Total Downloads: | 43 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
1. Open file bootstrap/app.php
and add new service provider
$app->register(\ItDevgroup\LaravelDeveloperDocs\Provider\DeveloperDocsServiceProvider::class);
Uncommented strings
$app->withFacades();
Added after $app->configure('app');
$app->configure('developer_docs');
2. Run commands
For creating config file
php artisan developer:docs:publish --tag=config
1. Open file config/app.php and search
'providers' => [
...
]
Add to section
\ItDevgroup\LaravelDeveloperDocs\Provider\DeveloperDocsServiceProvider::class,
Example
'providers' => [
...
\ItDevgroup\LaravelDeveloperDocs\Provider\DeveloperDocsServiceProvider::class,
]
2. Run commands
For creating config file
php artisan vendor:publish --provider="ItDevgroup\LaravelDeveloperDocs\Provider\DeveloperDocsServiceProvider" --tag=config
File .env
Enable documentation (1 - enabled, 0 - disabled)
DEVELOPER_DOCS_ENABLE=1
Route for documentation (default: http://{{HOST}}/developer-docs). Need to remove env if default path doesn't change
DEVELOPER_DOCS_ROUTE_PREFIX=developer-docs
Default folder: developer-docs
in the main folder and all child folders, there should always be a file index.html
each folder is a category which should always have an index.html file
all files must contain a title tag on the first line, 2 and further lines must be content
all links to internal pictures and internal pages of the documentation must be indicated relative to the root folder of the documentation
Example file structure:
Example file content:
<title>Main</title>
<p>text</p>
<img src="img/1.jpeg">
<img src="http://google.com/img/1.jpeg">
<a href="migration/seeds.html">Internal link</a>
<a href="http://google.com">External link</a>