PHP code example of aw-studio / docdress
1. Go to this page and download the library: Download aw-studio/docdress library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aw-studio / docdress example snippets
'repos' => [
'my/repo' => [
//
],
],
'repos' => [
'my/repo' => [
// ...
],
],
'repos' => [
'my/repo' => [
// ...
'default_version' => 'master',
'versions' => [
'master' => 'Master',
'1.0' => '1.0'
]'
],
],
'repos' => [
'my/repo' => [
// ...
'access_token' => env('GITHUB_ACCESS_TOKEN', null)
],
],
'repos' => [
'my/repo' => [
// ...
'subfolder' => 'docs'
],
],
'repos' => [
'my/repo' => [
// ...
'webhook_token' => env('GITHUB_WEBHOOK_TOKEN', null),
],
],
'repos' => [
'my/repo' => [
// ...
'algolia_app_key' => env('ALGOLIA_APP_KEY', null),
],
],
use Docdress\Docdress;
public function boot()
{
$this->registerPolicies();
Docdress::gate('my/repo', function ($user) {
return $user->is_admin;
});
}
shell
php artisan vendor:publish --provider="Docdress\DocdressServiceProvider"
shell
php artisan vendor:publish --tag="docdress:assets"
php artisan vendor:publish --tag="docdress:config"