Browse Source

minor fixes to api doc template

also ignore tests and vendor
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
13849e755d
  1. 2
      extensions/yii/apidoc/commands/RenderController.php
  2. 4
      extensions/yii/apidoc/templates/offline/views/index.php

2
extensions/yii/apidoc/commands/RenderController.php

@ -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 = [

4
extensions/yii/apidoc/templates/offline/views/index.php vendored

@ -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>

Loading…
Cancel
Save