|
|
@ -14,11 +14,16 @@ $this->beginContent('@yii/apidoc/templates/bootstrap/layouts/main.php'); ?> |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
asort($headlines); |
|
|
|
asort($headlines); |
|
|
|
$nav = []; |
|
|
|
$nav = []; |
|
|
|
$nav[] = [ |
|
|
|
foreach ($headlines as $file => $headline) { |
|
|
|
'label' => 'Index', |
|
|
|
if (basename($file) == 'README.md') { |
|
|
|
'url' => $this->context->generateGuideUrl('index.md'), |
|
|
|
$nav[] = [ |
|
|
|
'active' => isset($currentFile) && (basename($currentFile) == 'index.md'), |
|
|
|
'label' => $headline, |
|
|
|
]; |
|
|
|
'url' => $this->context->generateGuideUrl($file), |
|
|
|
|
|
|
|
'active' => isset($currentFile) && ($file == $currentFile), |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
unset($headlines[$file]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
foreach ($headlines as $file => $headline) { |
|
|
|
foreach ($headlines as $file => $headline) { |
|
|
|
$nav[] = [ |
|
|
|
$nav[] = [ |
|
|
|
'label' => $headline, |
|
|
|
'label' => $headline, |
|
|
|