Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14357 from williamdes/issue-14345-apigen
Replace apigen with Sami in CI
- Loading branch information
Showing
4 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
set -e | ||
./vendor/bin/apigen generate --destination apidoc --source libraries/ | ||
./vendor/bin/sami.php --no-interaction update ./test/sami-config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
set -e | ||
composer require "apigen/apigen:^4.1" | ||
composer require "sami/sami:^4.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
<?php | ||
/** | ||
* This file has been generated by phpmyadmin/scripts:/develdocs/build.sh | ||
* @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/sami.php | ||
* @see https://github.com/phpmyadmin/scripts/blob/master/develdocs/build.sh | ||
*/ | ||
use Sami\Sami; | ||
use Symfony\Component\Finder\Finder; | ||
|
||
$iterator = Finder::create() | ||
->files() | ||
->name("*.php") | ||
->in("./libraries") | ||
; | ||
|
||
return new Sami($iterator, array( | ||
"title" => "MySQL web administration tool", | ||
"build_dir" => "./build/apidocs/", | ||
"cache_dir" => "./tmp" | ||
)); | ||
|