diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..4d375af84b --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +log/ +obj/ +_site/ +.optemp/ +_themes/ + +.openpublishing.buildcore.ps1 \ No newline at end of file diff --git a/.openpublishing.build.ps1 b/.openpublishing.build.ps1 new file mode 100644 index 0000000000..b6eb29c3db --- /dev/null +++ b/.openpublishing.build.ps1 @@ -0,0 +1,17 @@ +param( + [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.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..17734fe378 --- /dev/null +++ b/.openpublishing.publish.config.json @@ -0,0 +1,25 @@ +{ + "need_generate_pdf": false, + "need_generate_intellisense": false, + "docsets_to_publish": [ + { + "docset_name": "WindowsServerDocs", + "build_source_folder": "WindowsServerDocs", + "build_output_subfolder": "windows-server", + "locale": "en-us", + "version": 0, + "open_to_public_contributors": false, + "type_mapping": { + "Conceptual": "Content", + "ManagedReference": "Content", + "RestApi": "Content" + }, + "build_entry_point": "op" + } + ], + "notification_subscribers": [], + "branches_to_filter": [ + "live" + ], + "skip_source_output_uploading": false +} \ No newline at end of file diff --git a/WindowsServerDocs/docfx.json b/WindowsServerDocs/docfx.json new file mode 100644 index 0000000000..4119f5253c --- /dev/null +++ b/WindowsServerDocs/docfx.json @@ -0,0 +1,35 @@ +{ + "build": { + "content": [ + { + "files": [ + "**/*.md" + ], + "exclude": [ + "**/obj/**", + "windows-server/**" + ] + } + ], + "resource": [ + { + "files": [ + "**/*.png", + "**/*.jpg" + ], + "exclude": [ + "**/obj/**", + "windows-server/**" + ] + } + ], + "overwrite": [], + "externalReference": [], + "globalMetadata": {}, + "fileMetadata": {}, + "template": [ + null + ], + "dest": "windows-server" + } +} \ No newline at end of file