forked from OfficeDev/office-js-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.cmd
33 lines (21 loc) · 1.03 KB
/
deploy.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
:: Setup
:: -----
setlocal enabledelayedexpansion
IF NOT DEFINED SITE (
SET SITE=%~dp0%..
)
IF NOT DEFINED DEPLOYMENT_SOURCE (
SET DEPLOYMENT_SOURCE=%SITE%\repository
)
IF NOT DEFINED DEPLOYMENT_TARGET_DIR (
SET DEPLOYMENT_TARGET_DIR=%SITE%\wwwroot\OfficeDocuments
)
IF NOT DEFINED DEPLOYMENT_TEMPLATE (
SET DEPLOYMENT_TEMPLATE=%SITE%\wwwroot\MDConverter\html-template
)
IF NOT DEFINED APIDOCS_PATH (
SET APIDOCS_PATH=%SITE%\wwwroot\MDConverter\bin
)
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\docs --output %DEPLOYMENT_TARGET_DIR%\docs --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/office-js-docs/tree/master/docs
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\reference --output %DEPLOYMENT_TARGET_DIR%\reference --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/office-js-docs/tree/master/reference
xcopy %DEPLOYMENT_SOURCE%\images %DEPLOYMENT_TARGET_DIR%\images /Y