Skip to content

Commit

Permalink
fix copy_docs.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat authored Feb 1, 2025
1 parent ff0715b commit e9104d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/copy_docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ function Join-Repo-Root {

$jsonContent = Get-Content -Path $(Join-Repo-Root 'TShockPlugin/.config/submodule_build.json') -Raw | ConvertFrom-Json
foreach($submodule in $jsonContent.submodules)
{
Copy-Item -Path $(Join-Repo-Root 'TShockPlugin' $submodule.readme) -Destination $(Join-Repo-Root 'docs' 'zh' 'guide' ($submodule.name + ".md"))
{
if (-not [string]::IsNullOrEmpty($submodule.readme)) {
Copy-Item -Path $(Join-Repo-Root 'TShockPlugin' $submodule.readme) -Destination $(Join-Repo-Root 'docs' 'zh' 'guide' ($submodule.name + ".md"))
}
}


Expand Down

0 comments on commit e9104d9

Please sign in to comment.