mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 04:46:26 +01:00
Merge branch '1.0' into 2.0
* 1.0: Move Doctum config files to phpseclib/api-docs
This commit is contained in:
commit
901382d724
@ -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/2.0/) (generated by Sami)
|
||||
* [API Documentation](https://api.phpseclib.org/2.0/) (generated by Doctum)
|
||||
|
||||
## Branches
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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,
|
||||
));
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user