Skip to content

Commit

Permalink
Fix broken links in documentation (#3054)
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe authored Oct 19, 2022
1 parent 1283b4c commit 8338a72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/templates/build-packages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#@ load("@ytt:template", "template")
#@ load("common.lib.yml", "checkoutCode", "fetchWrapperBinaries", "msBuildMultiple", "readVersionFromPackage", "uploadArtifacts", "actionCache", "nugetPackages")
#@ load("common.lib.yml", "checkoutCode", "fetchWrapperBinaries", "msBuildMultiple", "readVersionFromPackage", "uploadArtifacts", "actionCache", "nugetPackages", "setupDotnet")

#@ def buildDocs():
- name: Check Docfx cache
Expand All @@ -8,13 +8,14 @@
uses: #@ actionCache
with:
path: 'C:\docfx'
key: docfx
key: docfx-2.59.4
- name: Download docfx
if: inputs.build-docs && steps.check-docfx-cache.outputs.cache-hit != 'true'
run: |
Invoke-WebRequest -Uri https://github.com/dotnet/docfx/releases/download/v2.58/docfx.zip -OutFile C:\docfx.zip
Invoke-WebRequest -Uri https://github.com/dotnet/docfx/releases/download/v2.59.4/docfx.zip -OutFile C:\docfx.zip
Expand-Archive -Path C:\docfx.zip -DestinationPath C:\docfx
shell: powershell
- _: #@ template.replace(setupDotnet(ifCondition = "inputs.build-docs"))
- name: Build docs
if: inputs.build-docs
run: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,18 @@ jobs:
uses: nirinchev/cache@d7c96a77c26ab70dd32b202c885cb4b34d95d8a8
with:
path: C:\docfx
key: docfx
key: docfx-2.59.4
- name: Download docfx
if: inputs.build-docs && steps.check-docfx-cache.outputs.cache-hit != 'true'
run: |
Invoke-WebRequest -Uri https://github.com/dotnet/docfx/releases/download/v2.58/docfx.zip -OutFile C:\docfx.zip
Invoke-WebRequest -Uri https://github.com/dotnet/docfx/releases/download/v2.59.4/docfx.zip -OutFile C:\docfx.zip
Expand-Archive -Path C:\docfx.zip -DestinationPath C:\docfx
shell: powershell
- name: Configure .NET
uses: actions/setup-dotnet@v1
if: inputs.build-docs
with:
dotnet-version: 6.0.x
- name: Build docs
if: inputs.build-docs
run: |
Expand Down
5 changes: 4 additions & 1 deletion Docs/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
},
"template": [ "default", "template" ],
"postProcessors": [],
"noLangKeyword": false
"noLangKeyword": false,
"properties": {
"TargetFramework": "net6.0"
}
}
}

0 comments on commit 8338a72

Please sign in to comment.