Skip to content

Commit

Permalink
Updated the build system
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Nov 26, 2020
1 parent 012eec4 commit a1742b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tool/clean.ps1
Expand Up @@ -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 }
}

Expand Down
5 changes: 2 additions & 3 deletions tool/doc.ps1
Expand Up @@ -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 a1742b7

Please sign in to comment.