Merge pull request #7910 from obrakmann/make-docs-with-version
Set version before creating docs
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
1
make.ps1
1
make.ps1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user