Skip to content

Commit

Permalink
Add OP Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
qinezh committed Jun 20, 2016
1 parent e288645 commit 4525851
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 15 deletions.
17 changes: 17 additions & 0 deletions .openpublishing.build.ps1
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions .openpublishing.publish.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"build_entry_point": "",
"package_version": "latest-prerelease",
"need_generate_pdf": false,
"docsets_to_publish": [
{
"docset_name": "core-docs",
"build_source_folder": null,
"build_output_subfolder": ".",
"build_entry_point": "docs.ps1",
"locale": "en-us",
"version": 0,
"open_to_public_contributors": true,
"type_mapping": {
"Conceptual": "Content",
"ManagedReference": "Content"
}
}
],
"dependent_repositories": [
{
"path_to_root": "api_ref",
"url": "https://github.com/docascode/coreapi.git",
"branch": "master"
},
{
"path_to_root": "_themes",
"url": "https://github.com/Microsoft/templates.docs.msft",
"branch": "develop"
}
],
"notification_subscribers": []
}
1 change: 0 additions & 1 deletion api/toc.yml

This file was deleted.

7 changes: 7 additions & 0 deletions apidoc/System.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
uid: System
summary: This is *System* namespace.
remarks: *content
---

Add more content about *System* namespace here.
28 changes: 20 additions & 8 deletions docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,46 @@
"content":
[
{
"files": ["api/**/*.yml"]
"files": ["*.yml"],
"src": "api_ref",
"dest": "core/api"
},
{
"files": [
"docs/**/*.md",
"api/*.md"
]
"files": ["**/*.md"],
"src": "docs",
"dest": "core"
},
{
"files": ["toc.yml"]
"files": ["*.md"],
"src": "api",
"dest": "core/api"
},
{
"files": ["toc.yml", "index.md"]
}
],
"resource":
[
{
"files": [
"docs/images/**",
"images/**"
"images/**",
"_themes/**"
],
"exclude": [
"**/obj/**",
"_themes/DocPacker/**"
]
}
],
"overwrite": "apidoc/*.md",
"externalReference": [
],
"globalMetadata": {
"breadcrumb_path": "/dotnet/toc.json",
"_appTitle": "CoreCLR site"
},
"dest": "_site",
"template": [ "default", "template" ]
"template": [ "docs.html" ]
}
}
6 changes: 0 additions & 6 deletions exclude.list

This file was deleted.

17 changes: 17 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: HubPage
---

<article id="main">
<section id="hero-content" class="graph">
<h1>.NET Core</h1>
<h2>Welcome to .NET Core documentation!</h2>
</section>

<aside class="alert section-border">
<ol class="action-list">
<li><a href="docs/index" class="button-bordered button-translucent">Documentation</a></li>
<li><a href="api/index" class="button-bordered button-translucent">API reference</a></li>
</ol>
</aside>
</article>

0 comments on commit 4525851

Please sign in to comment.