Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix imports and semantics in HTML in templates/bootstrap/views/index.php #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
arogachev merged 1 commit into yiisoft:master from WinterSilence:patch-2
Sep 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 25 additions & 22 deletions templates/bootstrap/views/index.php
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
<?php

use yii\apidoc\models\ClassDoc;
use yii\apidoc\models\InterfaceDoc;
use yii\apidoc\models\TraitDoc;
use yii\apidoc\helpers\ApiMarkdown;

/* @var $types ClassDoc[]|InterfaceDoc[]|TraitDoc[] */
/* @var $this yii\web\View */
/* @var $renderer \yii\apidoc\templates\html\ApiRenderer */
/**
* @var yii\apidoc\models\ClassDoc[]|yii\apidoc\models\InterfaceDoc[]|yii\apidoc\models\TraitDoc[] $types
* @var string|null $readme
* @var yii\web\View $this
*/

/** @var yii\apidoc\templates\bootstrap\ApiRenderer $renderer */
$renderer = $this->context;

ksort($types);

if (isset($readme)) {
echo \yii\apidoc\helpers\ApiMarkdown::process($readme);
echo ApiMarkdown::process($readme);
}
?>
<h1>Class Reference</h1>

<table class="summaryTable docIndex table table-bordered table-striped table-hover">
<colgroup>
<col class="col-package" />
<col class="col-class" />
<col class="col-description" />
<col class="col-class">
<col class="col-description">
</colgroup>
<tr>
<th>Class</th>
<th>Description</th>
</tr>
<?php
ksort($types);
foreach ($typesas$i => $class):
?>
<tr>
<td><?= $renderer->createTypeLink($class, $class, $class->name) ?></td>
<td><?= \yii\apidoc\helpers\ApiMarkdown::process($class->shortDescription, $class, true) ?></td>
</tr>
<thead>
<tr>
<th>Class</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<?phpforeach ($typesas$class): ?>
<tr>
<td><?= $renderer->createTypeLink($class, $class, $class->name) ?></td>
<td><?= ApiMarkdown::process($class->shortDescription, $class, true) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>

AltStyle によって変換されたページ (->オリジナル) /