mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
minor fixes to api doc template
also ignore tests and vendor
This commit is contained in:
@ -115,7 +115,7 @@ class RenderController extends Controller
|
||||
return new $rendererClass();
|
||||
}
|
||||
|
||||
protected function findFiles($path, $except = [])
|
||||
protected function findFiles($path, $except = ['/vendor/', '/tests/'])
|
||||
{
|
||||
$path = FileHelper::normalizePath($path);
|
||||
$options = [
|
||||
|
@ -23,8 +23,8 @@ use yii\apidoc\models\TraitDoc;
|
||||
ksort($types);
|
||||
foreach($types as $i=>$class): ?>
|
||||
<tr>
|
||||
<td><?php echo $this->context->typeLink($class, $class->name); ?></td>
|
||||
<td><?php echo $class->shortDescription; ?></td>
|
||||
<td><?= $this->context->typeLink($class, $class->name) ?></td>
|
||||
<td><?= \yii\apidoc\helpers\Markdown::process($class->shortDescription, $class) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user