From 11fd2fac670ab4f96931b0f757a17a02eb2bfbba Mon Sep 17 00:00:00 2001 From: herohua Date: Fri, 14 Oct 2016 04:13:16 +0000 Subject: [PATCH] Initialize open publishing repository: https://github.com/Microsoft/azure-docs-pr2 of branch live --- .gitignore | 9 ++++++++ .openpublishing.build.ps1 | 17 ++++++++++++++ .openpublishing.publish.config.json | 33 +++++++++++++++++++++++++++ TOC.md | 1 + docfx.json | 35 +++++++++++++++++++++++++++++ index.md | 1 + 6 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 .openpublishing.build.ps1 create mode 100644 .openpublishing.publish.config.json create mode 100644 TOC.md create mode 100644 docfx.json create mode 100644 index.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000..42594a1c0bd17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +log/ +obj/ +_site/ +.optemp/ +_themes/ +_themes.MSDN.Modern/ +_themes.VS.Modern/ + +.openpublishing.buildcore.ps1 \ No newline at end of file diff --git a/.openpublishing.build.ps1 b/.openpublishing.build.ps1 new file mode 100644 index 0000000000000..aadef762022fc --- /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 0000000000000..f64b470a06962 --- /dev/null +++ b/.openpublishing.publish.config.json @@ -0,0 +1,33 @@ +{ + "build_entry_point": "docs", + "need_generate_pdf": false, + "need_generate_intellisense": false, + "docsets_to_publish": [ + { + "docset_name": "azure-docs", + "build_source_folder": ".", + "build_output_subfolder": "azure", + "locale": "en-us", + "version": 0, + "open_to_public_contributors": false, + "type_mapping": { + "Conceptual": "Content", + "ManagedReference": "Content", + "RestApi": "Content" + }, + "build_entry_point": "docs", + "template_folder": "_themes" + } + ], + "notification_subscribers": [], + "branches_to_filter": [], + "skip_source_output_uploading": 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 diff --git a/TOC.md b/TOC.md new file mode 100644 index 0000000000000..06913f7aeffb7 --- /dev/null +++ b/TOC.md @@ -0,0 +1 @@ +# [Index](index.md) \ No newline at end of file diff --git a/docfx.json b/docfx.json new file mode 100644 index 0000000000000..c25f6bf89cb75 --- /dev/null +++ b/docfx.json @@ -0,0 +1,35 @@ +{ + "build": { + "content": [ + { + "files": [ + "**/*.md" + ], + "exclude": [ + "**/obj/**", + "azure/**", + "**/includes/**" + ] + } + ], + "resource": [ + { + "files": [ + "**/*.png", + "**/*.jpg" + ], + "exclude": [ + "**/obj/**", + "azure/**", + "**/includes/**" + ] + } + ], + "overwrite": [], + "externalReference": [], + "globalMetadata": {}, + "fileMetadata": {}, + "template": [], + "dest": "azure" + } +} \ No newline at end of file diff --git a/index.md b/index.md new file mode 100644 index 0000000000000..11da6d62af3ea --- /dev/null +++ b/index.md @@ -0,0 +1 @@ +# Welcome to azure-docs! \ No newline at end of file