Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored and github-actions[bot] committed Nov 5, 2023
1 parent f3a45da commit 1c134a2
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions doctum-config.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?php

use Doctum\Doctum;
use Doctum\RemoteRepository\GitHubRemoteRepository;
use Doctum\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;

$dir = './src';

$iterator = Finder::create()
->files()
->name('*.php')
->exclude('Resources')
->exclude('Tests')
->in($dir);

// generate documentation for all v2.0.* tags, the 2.0 branch, and the main one
$versions = GitVersionCollection::create($dir)
// In a non case-sensitive way, tags containing "PR", "RC", "BETA" and "ALPHA" will be filtered out
// To change this, use: `$versions->setFilter(static function (string $version): bool { // ... });`
->add('master', '3.x branch')
->add('v2-master', '2.x branch')
->add('v1', '1.x branch');

return new Doctum($iterator, [
'versions' => $versions,
'title' => 'Rappasoft - Laravel Livewire Tables',
'build_dir' => __DIR__.'/build/%version%',
'cache_dir' => __DIR__.'/cache/%version%',
'source_dir' => dirname($dir).'/',
'remote_repository' => new GitHubRemoteRepository('rappasoft/laravel-livewire-tables', dirname($dir)),
'default_opened_level' => 2, // optional, 2 is the default value
]);
<?php

use Doctum\Doctum;
use Doctum\RemoteRepository\GitHubRemoteRepository;
use Doctum\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;

$dir = './src';

$iterator = Finder::create()
->files()
->name('*.php')
->exclude('Resources')
->exclude('Tests')
->in($dir);

// generate documentation for all v2.0.* tags, the 2.0 branch, and the main one
$versions = GitVersionCollection::create($dir)
// In a non case-sensitive way, tags containing "PR", "RC", "BETA" and "ALPHA" will be filtered out
// To change this, use: `$versions->setFilter(static function (string $version): bool { // ... });`
->add('master', '3.x branch')
->add('v2-master', '2.x branch')
->add('v1', '1.x branch');

return new Doctum($iterator, [
'versions' => $versions,
'title' => 'Rappasoft - Laravel Livewire Tables',
'build_dir' => __DIR__.'/build/%version%',
'cache_dir' => __DIR__.'/cache/%version%',
'source_dir' => dirname($dir).'/',
'remote_repository' => new GitHubRemoteRepository('rappasoft/laravel-livewire-tables', dirname($dir)),
'default_opened_level' => 2, // optional, 2 is the default value
]);

0 comments on commit 1c134a2

Please sign in to comment.