diff --git a/.openpublishing.build.ps1 b/.openpublishing.build.ps1 new file mode 100644 index 0000000000..aadef76202 --- /dev/null +++ b/.openpublishing.build.ps1 @@ -0,0 +1,17 @@ +param( + [string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", + [string]$parameters +) +# Main +$errorActionPreference = 'Stop' + +# Step-1: Download buildcore script to local +echo "download build core script to local with source url: $buildCorePowershellUrl" +$repositoryRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition +$buildCorePowershellDestination = "$repositoryRoot\.openpublishing.buildcore.ps1" +Invoke-WebRequest $buildCorePowershellUrl -OutFile "$buildCorePowershellDestination" + +# Step-2: Run build core +echo "run build core script with parameters: $parameters" +& "$buildCorePowershellDestination" "$parameters" +exit $LASTEXITCODE diff --git a/.openpublishing.publish.config.json b/.openpublishing.publish.config.json new file mode 100644 index 0000000000..c996b99d5d --- /dev/null +++ b/.openpublishing.publish.config.json @@ -0,0 +1,35 @@ +{ + "build_entry_point": "docs", + "need_generate_pdf": true, + "need_generate_intellisense": false, + "docsets_to_publish": [ + { + "docset_name": "ef", + "build_source_folder": "entity-framework", + "build_output_subfolder": "ef", + "locale": "en-us", + "version": 0, + "open_to_public_contributors": true, + "type_mapping": { + "Conceptual": "Content", + "ManagedReference": "Content", + "RestApi": "Content" + }, + "template_folder": "_themes" + } + ], + "notification_subscribers": [ + "rowmil@microsoft.com" + ], + "branches_to_filter": [], + "skip_source_output_uploading": false, + "need_preview_pull_request": false, + "dependent_repositories": [ + { + "path_to_root": "_themes", + "url": "https://github.com/Microsoft/templates.docs.msft", + "branch": "master", + "branch_mapping": {} + } + ] +} \ No newline at end of file