-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved README generation with render functions and section templates
- Loading branch information
Showing
6 changed files
with
39 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,7 @@ | ||
<?= $config->package->title ?> | ||
|
||
<?= str_repeat('-', mb_strlen($config->package->title, \Yii::$app->charset)) ?> | ||
|
||
|
||
<?= $config->package->description ?> | ||
|
||
|
||
<?= $config->readme->renderH1($config->package->title) ?> | ||
<?= $config->readme->renderText($config->package->description) ?> | ||
<?= $config->readme->renderBadges() ?> | ||
|
||
## Installation | ||
|
||
The preferred way to install this <?= $config->package->type ?> is through [composer](http://getcomposer.org/download/). | ||
|
||
<?php if ($config->package->type === 'project') { ?> | ||
``` | ||
php composer.phar create-project "<?= $config->package->fullName ?>:*" directory2install | ||
``` | ||
<?php } else { ?> | ||
Either run | ||
|
||
``` | ||
php composer.phar require "<?= $config->package->fullName ?>" | ||
``` | ||
|
||
or add | ||
|
||
```json | ||
"<?= $config->package->fullName ?>": "*" | ||
``` | ||
|
||
to the require section of your composer.json. | ||
<?php } ?> | ||
<?= $config->readme->renderSection('Installation') ?> | ||
<?= $config->readme->renderSection('Configuration') ?> | ||
<?= $config->readme->renderSection('Usage') ?> | ||
|
||
## Licence | ||
|
||
This project is released under the terms of the <?= $config->package->license ?> [license](<?= $config->package->getRepositoryUrl('LICENSE') ?>). | ||
Read more [here](<?= $config->license->url ?>). | ||
|
||
Copyright © <?= $config->package->years ?>, <?= $config->vendor->titleAndHomepage ?> | ||
|
||
<?= $config->readme->renderSection('License') ?> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This project is released under the terms of the <?= $config->package->license ?> [license](<?= $config->package->getRepositoryUrl('LICENSE') ?>). | ||
Read more [here](<?= $config->license->url ?>). | ||
|
||
Copyright © <?= $config->package->years ?>, <?= $config->vendor->titleAndHomepage ?> |