Improved guide and api doc header and titles

fixes #7069
fixes #7031
This commit is contained in:
Carsten Brandt
2015-01-28 22:03:52 +01:00
parent 4e39381d49
commit fca8143440
5 changed files with 22 additions and 7 deletions

View File

@ -102,9 +102,7 @@ class ApiRenderer extends BaseApiRenderer implements ViewContextInterface
Console::startProgress(0, $typeCount, 'Rendering files: ', false);
}
$done = 0;
$oldTitle = $this->pageTitle;
foreach ($types as $type) {
$this->pageTitle = StringHelper::basename($type->name) . ", {$type->name} - $oldTitle";
$fileContent = $this->renderWithLayout($this->typeView, [
'type' => $type,
'apiContext' => $context,
@ -116,7 +114,6 @@ class ApiRenderer extends BaseApiRenderer implements ViewContextInterface
Console::updateProgress(++$done, $typeCount);
}
}
$this->pageTitle = $oldTitle;
$indexFileContent = $this->renderWithLayout($this->indexView, [
'apiContext' => $context,