minor fixes to api doc template

also ignore tests and vendor
This commit is contained in:
Carsten Brandt
2014-01-06 06:59:19 +01:00
parent c9baa5309f
commit 13849e755d
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ class RenderController extends Controller
return new $rendererClass(); return new $rendererClass();
} }
protected function findFiles($path, $except = []) protected function findFiles($path, $except = ['/vendor/', '/tests/'])
{ {
$path = FileHelper::normalizePath($path); $path = FileHelper::normalizePath($path);
$options = [ $options = [

View File

@ -23,8 +23,8 @@ use yii\apidoc\models\TraitDoc;
ksort($types); ksort($types);
foreach($types as $i=>$class): ?> foreach($types as $i=>$class): ?>
<tr> <tr>
<td><?php echo $this->context->typeLink($class, $class->name); ?></td> <td><?= $this->context->typeLink($class, $class->name) ?></td>
<td><?php echo $class->shortDescription; ?></td> <td><?= \yii\apidoc\helpers\Markdown::process($class->shortDescription, $class) ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>