Merge pull request #7910 from obrakmann/make-docs-with-version

Set version before creating docs
This commit is contained in:
Matthias Mailänder
2015-04-10 20:22:33 +02:00
3 changed files with 2 additions and 2 deletions

View File

@@ -309,7 +309,7 @@ version: mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/modchooser/mo
done done
# Documentation (d2k depends on all mod libraries) # Documentation (d2k depends on all mod libraries)
docs: utility mods docs: utility mods version
@mono --debug OpenRA.Utility.exe d2k --docs > DOCUMENTATION.md @mono --debug OpenRA.Utility.exe d2k --docs > DOCUMENTATION.md
@mono --debug OpenRA.Utility.exe ra --lua-docs > Lua-API.md @mono --debug OpenRA.Utility.exe ra --lua-docs > Lua-API.md

View File

@@ -16,7 +16,6 @@ test_script:
- nunit-console-x86.exe OpenRA.Test.dll - nunit-console-x86.exe OpenRA.Test.dll
after_test: after_test:
- make version
- choco install pandoc -y - choco install pandoc -y
- '%LOCALAPPDATA%\Pandoc\pandoc.exe -o README.html README.md' - '%LOCALAPPDATA%\Pandoc\pandoc.exe -o README.html README.md'
- '%LOCALAPPDATA%\Pandoc\pandoc.exe -o CONTRIBUTING.html CONTRIBUTING.md' - '%LOCALAPPDATA%\Pandoc\pandoc.exe -o CONTRIBUTING.html CONTRIBUTING.md'

View File

@@ -157,6 +157,7 @@ elseif ($command -eq "check")
} }
elseif ($command -eq "docs") elseif ($command -eq "docs")
{ {
./make.ps1 version
./OpenRA.Utility.exe d2k --docs | Out-File -Encoding "UTF8" DOCUMENTATION.md ./OpenRA.Utility.exe d2k --docs | Out-File -Encoding "UTF8" DOCUMENTATION.md
./OpenRA.Utility.exe ra --lua-docs | Out-File -Encoding "UTF8" Lua-API.md ./OpenRA.Utility.exe ra --lua-docs | Out-File -Encoding "UTF8" Lua-API.md
} }