Skip to content

Commit

Permalink
Docs folder standardization and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luizcmarin committed Apr 14, 2024
1 parent ff94ae8 commit b43ba93
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 58 deletions.
30 changes: 11 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
</a>
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml" target="_blank">
<img src="https://img.shields.io/badge/PHPStan%20level-5-blue" alt="PHPStan level">
</a>
</a>
<a href="https://github.styleci.io/repos/698621511?branch=main" target="_blank">
<img src="https://github.styleci.io/repos/698621511/shield?branch=main" alt="Code style">
</a>
</a>
</p>

</br>
Expand All @@ -34,7 +34,7 @@ Web Application Basic of Yii Version 2. <a href="https://www.yiiframework.com/"

</br>

![app-basic](docs/home.png)
![app-basic](docs/images/home.png)

</br>

Expand Down Expand Up @@ -85,31 +85,25 @@ root
The web application contains:

- [x] Pages - [Screenshots]:
- [about](docs/about.png)
- [contact](docs/contact.png)
- [404](docs/404.png)
- [about](docs/images/about.png)
- [contact](docs/images/contact.png)
- [404](docs/images/404.png)

<p align="justify">
It includes all commonly used configurations that would allow you to focus on adding new
features to your application.
</P>

## Installation

<p align="justify">
If you do not have <a href="http://getcomposer.org/" title="Composer" target="_blank">Composer</a>, you may install it by following the instructions at <a href="http://getcomposer.org/doc/00-intro.md#installation-nix" title="getcomposer.org" target="_blank">getcomposer.org</a>.
</p>
If you do not have <a href="https://getcomposer.org/" title="Composer" target="_blank">Composer</a>, you may install it by following the instructions at <a href="https://getcomposer.org/doc/00-intro.md#installation-nix" title="getcomposer.org" target="_blank">getcomposer.org</a>.

You can then install this project app-basic using the following command:

```shell
composer create-project --prefer-dist --stability=dev yii2-extensions/app-basic myapp
```

<p align="justify">
Now you should be able to access the application through the following URL, assuming `public` is the directory
directly under the Web root.
</p>

__*Virtual Host:*__

Expand All @@ -131,18 +125,14 @@ __Console commands:__

## Generate translations

<p align="justify">
To generate the Yii Web Application Basic translations, you can change the language settings in the configuration file.
<p>

```
config/messages.php
```

<p align="justify">
Automatically the generator will create the folder of your language in `src/Framework/resource/message`,
If any translation is needed, you can open an issue to add it.
</p>

Root directory

Expand All @@ -152,13 +142,15 @@ Root directory

## Tests

~~~
```shell
// download all composer dependencies root project
$ composer update --prefer-dist -vvv
```

```shell
// run all tests with code coverage
$ vendor/bin/codecept run --coverage-xml
~~~
```

## Support versions Yii2

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
41 changes: 27 additions & 14 deletions public/image/yii.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/image/yiiframework.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 22 additions & 23 deletions src/Framework/resource/layout/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,26 @@
*/
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<?= Html::widget()->attributes(['lang' => Yii::$app->language, 'data-bs-theme' => 'auto'])->begin() ?>
<?= $this->render('head') ?>
<?php $this->beginBody() ?>
<?= Body::widget()->class('d-flex')->begin() ?>
<?= Div::widget()->class('cover-container d-flex w-100 h-100 mx-auto flex-column')->begin() ?>
<?= Header::widget()->class('mb-auto')->begin() ?>
<?= $this->render('component/menu') ?>
<?= $this->render('component/alert') ?>
<?= Breadcrumbs::widget(
[
'links' => $this->params['breadcrumbs'] ?? [],
]
) ?>
<?= Header::end() ?>
<?= $content ?>
<?= $this->render('footer') ?>
<?= Div::end() ?>
<?= Icon::symbols($this) ?>
<?= Body::end() ?>
<?php $this->endBody() ?>
<?= Html::end() ?>
<?php $this->beginPage() ?><!DOCTYPE html>
<?= Html::widget()->attributes(['lang' => Yii::$app->language, 'data-bs-theme' => 'auto'])->begin() ?>
<?= $this->render('head') ?>
<?php $this->beginBody() ?>
<?= Body::widget()->class('d-flex')->begin() ?>
<?= Div::widget()->class('cover-container d-flex w-100 h-100 mx-auto flex-column')->begin() ?>
<?= Header::widget()->class('mb-auto')->begin() ?>
<?= $this->render('component/menu') ?>
<?= $this->render('component/alert') ?>
<?= Breadcrumbs::widget(
[
'links' => $this->params['breadcrumbs'] ?? [],
]
) ?>
<?= Header::end() ?>
<?= $content ?>
<?= $this->render('footer') ?>
<?= Div::end() ?>
<?= Icon::symbols($this) ?>
<?= Body::end() ?>
<?php $this->endBody() ?>
<?= Html::end() ?>
<?php $this->endPage();
2 changes: 1 addition & 1 deletion yii.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rem Yii command line bootstrap script for Windows.
rem
rem @author Qiang Xue <[email protected]>
rem @link https://www.yiiframework.com/
rem @copyright Copyright (c) 2008 Yii Software LLC
rem @copyright Copyright © 2008 by Yii Software (https://www.yiiframework.com/)
rem @license https://www.yiiframework.com/license/
rem -------------------------------------------------------------

Expand Down

0 comments on commit b43ba93

Please sign in to comment.