added install docs
This commit is contained in:
parent
6e92de1b36
commit
181a3094eb
@ -13,6 +13,11 @@ class DocsController extends Controller
|
||||
return $this->render('index');
|
||||
}
|
||||
|
||||
public function actionInstall()
|
||||
{
|
||||
return $this->render('install');
|
||||
}
|
||||
|
||||
public function actionBowerFormat()
|
||||
{
|
||||
return $this->render('bower-format');
|
||||
|
@ -12,12 +12,11 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<?php
|
||||
echo Nav::widget([
|
||||
<?= Nav::widget([
|
||||
'items' => [
|
||||
['label' => 'Installation', 'url' => ['/docs/install']],
|
||||
['label' => 'bower.json Format', 'url' => ['/docs/bower-format']],
|
||||
],
|
||||
]);
|
||||
?>
|
||||
]) ?>
|
||||
|
||||
</div>
|
||||
|
53
src/views/docs/install.php
Normal file
53
src/views/docs/install.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
|
||||
use yii\bootstrap\Nav;
|
||||
use yii\helpers\Html;
|
||||
|
||||
$this->title = 'Installation';
|
||||
$this->params['breadcrumbs'][] = ['label' => 'Docs', 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="docs-install">
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<h2>Windows</h2>
|
||||
|
||||
<ol>
|
||||
<li>Download and install <a href="http://nodejs.org/">nodejs</a>.</li>
|
||||
<li>Download and install <a href="http://git-scm.com/download/win">git</a>.</li>
|
||||
</ol>
|
||||
|
||||
<p>Install bower</p>
|
||||
<pre>C:\> npm install -g bower</pre>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<h2>Mac</h2>
|
||||
|
||||
<ol>
|
||||
<li>Download and install <a href="http://nodejs.org/">nodejs</a>.</li>
|
||||
<li>Download and install <a href="http://git-scm.com/download/mac">git</a>.</li>
|
||||
</ol>
|
||||
|
||||
<p>Install bower</p>
|
||||
<pre>$ npm install -g bower</pre>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<h2>Ubuntu/Debian</h2>
|
||||
|
||||
<p>Install nodejs, npm and git</p>
|
||||
<pre>$ sudo apt-get install nodejs npm git-core</pre>
|
||||
|
||||
<p>Install bower</p>
|
||||
<pre>$ npm install -g bower</pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -21,6 +21,8 @@ $this->params['jumbotron'] = '/site/_index-jumbotron';
|
||||
<p>Bower requires <a href="http://nodejs.org/">Node and npm</a> and
|
||||
<a href="http://git-scm.com/">Git</a>.</p>
|
||||
|
||||
<p><?= Html::a('detailed installation »', ['/docs/install'], ['class' => 'btn btn-sm btn-default']); ?></p>
|
||||
|
||||
<h2>Configure Bower</h2>
|
||||
|
||||
<p>Create a
|
||||
|
Loading…
x
Reference in New Issue
Block a user