Skip to content

Commit 8ea1fd5

Browse files
committed
Initialize open publishing repository: https://cpubwin.visualstudio.com/DefaultCollection/win32/_git/win32 of branch live
0 parents  commit 8ea1fd5

7 files changed

+475
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
log/
2+
obj/
3+
_site/
4+
.optemp/
5+
_themes*/
6+
_repo.*/
7+
8+
.openpublishing.buildcore.ps1

.openpublishing.build.ps1

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
param(
2+
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
3+
[string]$parameters
4+
)
5+
# Main
6+
$errorActionPreference = 'Stop'
7+
8+
# Step-1: Download buildcore script to local
9+
echo "download build core script to local with source url: $buildCorePowershellUrl"
10+
$repositoryRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition
11+
$buildCorePowershellDestination = "$repositoryRoot\.openpublishing.buildcore.ps1"
12+
Invoke-WebRequest $buildCorePowershellUrl -OutFile "$buildCorePowershellDestination"
13+
14+
# Step-2: Run build core
15+
echo "run build core script with parameters: $parameters"
16+
& "$buildCorePowershellDestination" "$parameters"
17+
exit $LASTEXITCODE

.openpublishing.publish.config.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"docsets_to_publish": [],
3+
"notification_subscribers": [
4+
5+
],
6+
"branches_to_filter": [],
7+
"skip_source_output_uploading": false,
8+
"need_preview_pull_request": true,
9+
"contribution_branch_mappings": {},
10+
"dependent_repositories": [
11+
{
12+
"path_to_root": "_themes",
13+
"url": "https://github.com/Microsoft/templates.docs.msft",
14+
"branch": "master",
15+
"branch_mapping": {}
16+
}
17+
],
18+
"branch_target_mapping": {},
19+
"need_generate_pdf_url_template": false
20+
}

0 commit comments

Comments
 (0)