forked from abdelbahgat/microsoft-graph-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.cmd
35 lines (24 loc) · 1.92 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
33
34
35
:: 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%\authorization --output %DEPLOYMENT_TARGET_DIR%\authorization --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/microsoft-graph-docs/tree/master/authorization
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\overview --output %DEPLOYMENT_TARGET_DIR%\overview --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/microsoft-graph-docs/tree/master/overview
::remarked below line as we are not going to use walkthroughs folder
::%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
%APIDOCS_PATH%\apidocs.exe publish --path %DEPLOYMENT_SOURCE%\get-started --output %DEPLOYMENT_TARGET_DIR%\get-started --template %DEPLOYMENT_TEMPLATE% --format mustache --insert-gitInfo true --gitUrl https://github.com/OfficeDev/microsoft-graph-docs/tree/master/get-started