Move Doctum config files to phpseclib/api-docs

Fixes: #1365
Closes: #416
Closes: #1506
This commit is contained in:
William Desportes 2020-08-21 18:04:02 +02:00
parent ded9b3043f
commit ceab38e0b8
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
4 changed files with 1 additions and 41 deletions

View File

@ -19,7 +19,7 @@ AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509
## Documentation
* [Documentation / Manual](http://phpseclib.sourceforge.net/)
* [API Documentation](https://api.phpseclib.org/1.0/) (generated by Sami)
* [API Documentation](https://api.phpseclib.org/1.0/) (generated by Doctum)
## Branches

View File

@ -22,11 +22,4 @@
tests/"
dir=".." checkreturn="true" passthru="true" />
</target>
<!-- API Generation -->
<target name="api">
<exec command="vendor/bin/sami.php update build/sami.conf.php"
dir=".." passthru="true" />
</target>
</project>

View File

@ -1,32 +0,0 @@
<?php
// Prevent e.g. 'Notice: Constant MATH_BIGINTEGER_MONTGOMERY already defined'.
class MyArrayStore extends Sami\Store\ArrayStore
{
public function removeClass(Sami\Project $project, $name)
{
unset($this->classes[$name]);
}
}
$iterator = Symfony\Component\Finder\Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/../phpseclib/')
;
$versions = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')
->add('1.0')
->add('2.0')
->add('master')
;
return new Sami\Sami($iterator, array(
'theme' => 'enhanced',
'versions' => $versions,
'title' => 'phpseclib API Documentation',
'build_dir' => __DIR__.'/api/output/%version%',
'cache_dir' => __DIR__.'/api/cache/%version%',
'default_opened_level' => 2,
'store' => new MyArrayStore,
));

View File

@ -56,7 +56,6 @@
"require-dev": {
"phing/phing": "~2.7",
"phpunit/phpunit": "^4.8.35|^5.7|^6.0",
"sami/sami": "~2.0",
"squizlabs/php_codesniffer": "~2.0"
},
"suggest": {