added README to main framework docs

This commit is contained in:
Carsten Brandt
2014-01-29 02:27:20 +01:00
parent 7fa619feb3
commit 4f68b8a4bb

View File

@@ -70,6 +70,13 @@ class Renderer extends \yii\apidoc\templates\html\Renderer
]); ]);
file_put_contents($dir . "/ext_{$ext}_index.html", $indexFileContent); file_put_contents($dir . "/ext_{$ext}_index.html", $indexFileContent);
} }
$readme = @file_get_contents("https://raw.github.com/yiisoft/yii2-framework/master/README.md");
$indexFileContent = $this->renderWithLayout($this->indexView, [
'docContext' => $context,
'types' => $this->filterTypes($types, 'yii'),
'readme' => $readme ?: null,
]);
file_put_contents($dir . '/index.html', $indexFileContent);
$controller->stdout('done.' . PHP_EOL, Console::FG_GREEN); $controller->stdout('done.' . PHP_EOL, Console::FG_GREEN);
} }