forked from girish/microsoft-graph-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.cmd
33 lines (22 loc) · 1.62 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
31
32
:: 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\GraphDocuments\en-us
)
IF NOT DEFINED DEPLOYMENT_TEMPLATE (
SET DEPLOYMENT_TEMPLATE=%SITE%\wwwroot\MD\office-content-pr\rest-api\Microsoft.Graph\html-template
)
IF NOT DEFINED APIDOCS_PATH (
SET APIDOCS_PATH=%SITE%\wwwroot\MD\apidocs
)
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\api-reference --output %DEPLOYMENT_TARGET_DIR%\api-reference --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/microsoft-graph-docs/tree/master/api-reference
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\content\authorization --output %DEPLOYMENT_TARGET_DIR%\authorization --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/microsoft-graph-docs/tree/master/content/authorization
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\content\overview --output %DEPLOYMENT_TARGET_DIR%\overview --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/microsoft-graph-docs/tree/master/content/overview
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\content\walkthroughs --output %DEPLOYMENT_TARGET_DIR%\platform --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/microsoft-graph-docs/tree/master/content/walkthroughs