Browse Source

added README to main framework docs

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
4f68b8a4bb
  1. 7
      extensions/apidoc/templates/bootstrap/Renderer.php

7
extensions/apidoc/templates/bootstrap/Renderer.php vendored

@ -70,6 +70,13 @@ class Renderer extends \yii\apidoc\templates\html\Renderer
]);
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);
}

Loading…
Cancel
Save