Move doc build script to root of sln.
Having documentation generation in the 'Cli-CredentialHelper' directory doesn't make a lot of sense. Instead, it should centralized to the solution as it already generates docs for both Credential Manager and Ask Pass. Added more clairity to the error message provided when 'build-docs.cmd' fails due the dependency: Pandoc is either not installed or cannot be found on $path.
This commit is contained in:
Родитель
f310fd9e49
Коммит
111f293383
|
@ -101,7 +101,7 @@ COPY /V /Y "%25src%25install.cmd" "%25dst%25install.cmd"
|
||||||
COPY /V /Y "%25src%25README.md" "%25dst%25README.md"
|
COPY /V /Y "%25src%25README.md" "%25dst%25README.md"
|
||||||
COPY /V /Y "%25src%25LICENSE.txt" "%25dst%25LICENSE.txt"
|
COPY /V /Y "%25src%25LICENSE.txt" "%25dst%25LICENSE.txt"
|
||||||
|
|
||||||
"$(ProjectDir)build-docs.cmd"
|
"$(SolutionDir)build-docs.cmd"
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
SETLOCAL ENABLEEXTENSIONS
|
SETLOCAL ENABLEEXTENSIONS
|
||||||
|
|
||||||
SET assets=%~dp0..\Assets
|
SET assets=%~dp0Assets
|
||||||
SET dstdir=%~dp0..\Deploy
|
SET dstdir=%~dp0Deploy
|
||||||
SET srcdir=%~dp0..\Docs
|
SET srcdir=%~dp0Docs
|
||||||
|
|
||||||
IF NOT EXIST "%dstdir%" (
|
IF NOT EXIST "%dstdir%" (
|
||||||
mkdir "%dstdir%" > nul 2>&1
|
mkdir "%dstdir%" > nul 2>&1
|
||||||
)
|
)
|
||||||
|
|
||||||
IF EXIST %srcdir% (
|
IF EXIST %srcdir% (
|
||||||
((WHERE pandoc > nul 2>&1) && (pandoc --from=markdown --to=html5 --self-contained --standalone --include-in-header="%assets%\head_css.html" --normalize --output="%dstdir%\git-credential-manager.html" "%srcdir%\CredentialManager.md" "%srcdir%\Configuration.md" "%srcdir%\Faq.md" "%srcdir%\Automation.md" "%srcdir%\Development.md") && (ECHO git-credential-manager.html generated.)) || (ECHO Pandoc not installed.)
|
((WHERE pandoc > nul 2>&1) && (pandoc --from=markdown --to=html5 --self-contained --standalone --include-in-header="%assets%\head_css.html" --normalize --output="%dstdir%\git-credential-manager.html" "%srcdir%\CredentialManager.md" "%srcdir%\Configuration.md" "%srcdir%\Faq.md" "%srcdir%\Automation.md" "%srcdir%\Development.md") && (ECHO git-credential-manager.html generated.)) || (ECHO Skipping git-credential-manager HTML generation, Pandoc not installed.)
|
||||||
((WHERE pandoc > nul 2>&1) && (pandoc --from=markdown --to=html5 --self-contained --standalone --include-in-header="%assets%\head_css.html" --normalize --output="%dstdir%\git-askpass.html" "%srcdir%\Askpass.md" "%srcdir%\Configuration.md" "%srcdir%\Faq.md" "%srcdir%\Automation.md" "%srcdir%\Development.md") && (ECHO git-askpass.html generated.)) || (ECHO Pandoc not installed.)
|
((WHERE pandoc > nul 2>&1) && (pandoc --from=markdown --to=html5 --self-contained --standalone --include-in-header="%assets%\head_css.html" --normalize --output="%dstdir%\git-askpass.html" "%srcdir%\Askpass.md" "%srcdir%\Configuration.md" "%srcdir%\Faq.md" "%srcdir%\Automation.md" "%srcdir%\Development.md") && (ECHO git-askpass.html generated.)) || (ECHO Skipping git-askpass HTML generation, Pandoc not installed.)
|
||||||
)
|
)
|
||||||
|
|
||||||
EXIT /B 0
|
EXIT /B 0
|
Загрузка…
Ссылка в новой задаче