diff --git a/doctum/.gitignore b/doctum/.gitignore new file mode 100644 index 00000000..168c26c8 --- /dev/null +++ b/doctum/.gitignore @@ -0,0 +1,3 @@ +build/ +cache/ +vendor/ diff --git a/doctum/composer.json b/doctum/composer.json new file mode 100644 index 00000000..3e757eeb --- /dev/null +++ b/doctum/composer.json @@ -0,0 +1,8 @@ +{ + "require": { + "code-lts/doctum": "v5.5.x-dev" + }, + "scripts": { + "doctum": "./vendor/bin/doctum.php update doctum.php --output-format=github --force --ignore-parse-errors --no-ansi --no-progress -v" + } +} diff --git a/doctum/doctum.php b/doctum/doctum.php new file mode 100644 index 00000000..41dd1dfe --- /dev/null +++ b/doctum/doctum.php @@ -0,0 +1,30 @@ +files() + ->name('*.php') + ->in($dir = __DIR__ . '/../src'); + +$versions = GitVersionCollection::create($dir) + ->add('1.x', 'Tenancy 1.x') + ->add('2.x', 'Tenancy 2.x') + ->add('3.x', 'Tenancy 3.x') + ->add('master', 'Tenancy Dev'); + +return new Doctum($iterator, [ + 'title' => 'Tenancy for Laravel API Documentation', + 'versions' => $versions, + 'build_dir' => __DIR__ . '/build/%version%', + 'cache_dir' => __DIR__ . '/cache/%version%', + 'default_opened_level' => 2, + 'base_url' => 'https://api.tenancyforlaravel.com/', + 'favicon' => 'https://tenancyforlaravel.com/favicon.ico', + 'remote_repository' => new GitHubRemoteRepository('archtechx/tenancy', dirname($dir)), +]);