Skip to content
Permalink
Browse files

Updated the build system

  • Loading branch information
cedx committed Nov 26, 2020
1 parent 573714e commit 4d741de986ac3d22f925313072a6489493bd74f2
Showing with 5 additions and 6 deletions.
  1. +2 −2 docs/README.md
  2. +1 −1 tool/clean.ps1
  3. +2 −3 tool/doc.ps1
@@ -1,8 +1,8 @@
# Mustache <small>for Yii</small>
![Yii Framework](https://badgen.net/badge/yii/%3E%3D2.0.0/green) ![Runtime](https://badgen.net/packagist/php/cedx/yii2-mustache) ![Release](https://badgen.net/packagist/v/cedx/yii2-mustache) ![License](https://badgen.net/packagist/license/cedx/yii2-mustache) ![Downloads](https://badgen.net/packagist/dt/cedx/yii2-mustache) ![Coverage](https://badgen.net/coveralls/c/github/cedx/yii2-mustache) ![Build](https://badgen.net/github/checks/cedx/yii2-mustache/main)

This extension provides a view renderer, the `yii\mustache\ViewRenderer` class.
This renderer allows to use [Mustache syntax](https://mustache.github.io/mustache.5.html) in view templates.
> This extension provides a view renderer, the `yii\mustache\ViewRenderer` class.
> This renderer allows to use [Mustache syntax](https://mustache.github.io/mustache.5.html) in view templates.
## Quick start
Install the latest version of **Mustache for Yii** with [Composer](https://getcomposer.org):
@@ -2,7 +2,7 @@
Set-StrictMode -Version Latest
Set-Location (Split-Path $PSScriptRoot)

foreach ($item in "build", "doc/api", "www") {
foreach ($item in "build", "docs/api") {
if (Test-Path $item) { Remove-Item $item -Force -Recurse }
}

@@ -3,6 +3,5 @@ Set-StrictMode -Version Latest
Set-Location (Split-Path $PSScriptRoot)

phpdoc --config=etc/phpdoc.xml
if (-not (Test-Path doc/api/images)) { New-Item doc/api/images -ItemType Directory | Out-Null }
Copy-Item doc/img/favicon.ico doc/api/images
mkdocs build --config-file=etc/mkdocs.yaml
if (-not (Test-Path docs/api/images)) { New-Item docs/api/images -ItemType Directory | Out-Null }
Copy-Item docs/favicon.ico docs/api/images

0 comments on commit 4d741de

Please sign in to comment.