File: doctum-config.php

package info (click to toggle)
phpmyadmin 4%3A5.0.4%2Bdfsg2-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 104,412 kB
  • sloc: php: 152,799; javascript: 136,970; sql: 504; sh: 263; python: 200; makefile: 196; xml: 167
file content (23 lines) | stat: -rw-r--r-- 817 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * This file has been generated by phpmyadmin/scripts/develdocs/build.sh
 * @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/doctum.php
 * @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/build.sh
 */
use Doctum\Doctum;
use Symfony\Component\Finder\Finder;
use Doctum\RemoteRepository\GitHubRemoteRepository;

$root = realpath(__DIR__ . '/../') . '/';

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->in($root . 'libraries');

return new Doctum($iterator, [
    'title'                => json_decode(file_get_contents($root . 'composer.json'))->description,
    'build_dir'            => $root . 'build/apidocs/',
    'cache_dir'            => $root . 'tmp/',
    'remote_repository'    => new GitHubRemoteRepository('phpmyadmin/phpmyadmin', $root),
]);