File tree Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 25
25
"commands" : [
26
26
" reportgenerator"
27
27
]
28
+ },
29
+ "docfx" : {
30
+ "version" : " 2.60.2" ,
31
+ "commands" : [
32
+ " docfx"
33
+ ]
28
34
}
29
35
}
30
36
}
Original file line number Diff line number Diff line change 45
45
# https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html
46
46
git checkout $env:APPVEYOR_REPO_BRANCH -q
47
47
}
48
- choco install docfx -y
49
- if ($lastexitcode -ne 0) {
50
- throw "docfx install failed with exit code $lastexitcode."
51
- }
52
48
after_build :
53
49
- pwsh : |
54
50
CD ./docs
55
51
& ./generate-examples.ps1
56
- & docfx docfx.json
52
+ & dotnet docfx docfx.json
57
53
if ($lastexitcode -ne 0) {
58
54
throw "docfx build failed with exit code $lastexitcode."
59
55
}
Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ Documentation for JsonApiDotNetCore is produced using [DocFX](https://dotnet.git
3
3
In addition, the example request/response pairs are generated by executing ` curl ` commands against the GettingStarted project.
4
4
5
5
# Installation
6
- Run the following commands once to setup your system:
7
-
8
- ```
9
- choco install docfx -y
10
- ```
6
+ Run the following command once to setup your system:
11
7
12
8
```
13
9
npm install -g httpserver
Original file line number Diff line number Diff line change 1
1
# Requires -Version 7.0
2
2
3
3
# This script builds the documentation website, starts a web server and opens the site in your browser. Intended for local development.
4
- # It is assumed that you have already installed docfx and httpserver.
5
- # If that's not the case, run the next commands:
6
- # choco install docfx -y
4
+ # It is assumed that you have already installed httpserver.
5
+ # If that's not the case, run the next command:
7
6
# npm install -g httpserver
8
7
9
8
param (
@@ -26,7 +25,7 @@ if (-Not $NoBuild -Or -Not (Test-Path -Path _site)) {
26
25
Invoke-Expression ./ generate- examples.ps1
27
26
}
28
27
29
- docfx ./ docfx.json
28
+ dotnet docfx ./ docfx.json
30
29
VerifySuccessExitCode
31
30
32
31
Copy-Item - Force home/* .html _site/
You can’t perform that action at this time.
0 commit comments