Browse Source

View Source should now link to the exact commit it was built for

pull/13/head
Anairkoen Schno 5 years ago
parent
commit
5a71e5c148
4 changed files with 12 additions and 5 deletions
  1. +3
    -1
      appveyor.yml
  2. +7
    -0
      docs/all_globals.json
  3. +1
    -4
      docs/docfx.json
  4. +1
    -0
      docs/templates/.gitignore

+ 3
- 1
appveyor.yml View File

@ -49,8 +49,10 @@ after_deploy:
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $env:APPVEYOR_REPO_BRANCH -eq 'master') if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $env:APPVEYOR_REPO_BRANCH -eq 'master')
{ {
cd docs cd docs
Add-Content link_branch.json "{`"_gitContribute`":{`"branch`":`"$env:APPVEYOR_REPO_COMMIT`"}}"
& docfx metadata & docfx metadata
& docfx build
& docfx build --globalMetadataFiles all_globals.json,link_branch.json
if ($lastexitcode -ne 0){ if ($lastexitcode -ne 0){
throw [System.Exception] "docfx build failed with exit code $lastexitcode." throw [System.Exception] "docfx build failed with exit code $lastexitcode."
} }


+ 7
- 0
docs/all_globals.json View File

@ -0,0 +1,7 @@
{
"_enableSearch": true,
"_enableNewTab": true,
"_gitContribute": {
"apiSpecFolder": "docs/override"
}
}

+ 1
- 4
docs/docfx.json View File

@ -53,10 +53,7 @@
"template": [ "template": [
"default", "templates/material/material" "default", "templates/material/material"
], ],
"globalMetadata": {
"_enableSearch": true,
"_enableNewTab": true
},
"globalMetadataFiles": ["all_globals.json"],
"postProcessors": [], "postProcessors": [],
"markdownEngineName": "dfm", "markdownEngineName": "dfm",
"noLangKeyword": false, "noLangKeyword": false,


+ 1
- 0
docs/templates/.gitignore View File

@ -0,0 +1 @@
_exported_templates

Loading…
Cancel
Save