-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Doc] Upgrade to Docfx 2.67.0
#6738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b1c55e2
9552b60
e7fb676
558a3f1
64bccf7
d598251
92d05d8
4c672f2
71ac1b3
aba9f20
99b36c3
17538e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -491,10 +491,12 @@ Target "DocFx" (fun _ -> | |
OutputDirectory = currentDirectory @@ "tools" }) "msdn.4.5.2" | ||
|
||
let docsPath = FullName "./docs" | ||
let docFxPath = FullName(findToolInSubPath "docfx.exe" "tools/docfx.console/tools") | ||
let docFxPath = FullName(findToolInSubPath "docfx.exe" "tools") | ||
|
||
let args = StringBuilder() | ||
|> append (docsPath @@ "docfx.json" ) | ||
//|> append ("--Docfx_Git_Timeout") | ||
//|> append "30000" | ||
|> append ("--warningsAsErrors") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unknown option 'Docfx_Git_Timeout' |
||
|> toText | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ $FakeVersion = "4.63.0" | |
$NugetVersion = "5.8.0"; | ||
$NugetUrl = "https://dist.nuget.org/win-x86-commandline/v$NugetVersion/nuget.exe" | ||
$ProtobufVersion = "3.21.5" | ||
$DocfxVersion = "2.59.4" | ||
$DocfxVersion = "2.67.0" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Docfx 2.67.0 |
||
$IncrementalistVersion = "0.8.0"; | ||
|
||
|
@@ -89,13 +89,11 @@ if (!(Test-Path $ProtobufExePath)) { | |
########################################################################### | ||
|
||
# Make sure Docfx has been installed. | ||
$DocfxExePath = Join-Path $ToolPath "docfx.console/tools/docfx.exe" | ||
$DocfxExePath = Join-Path $ToolPath "docfx.exe" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need a sub-folder for this |
||
if (!(Test-Path $DocfxExePath)) { | ||
Write-Host "Installing Docfx..." | ||
Invoke-Expression "&`"$NugetPath`" install docfx.console -ExcludeVersion -Version $DocfxVersion -OutputDirectory `"$ToolPath`"" | Out-Null; | ||
if ($LASTEXITCODE -ne 0) { | ||
Throw "An error occured while restoring docfx.console from NuGet." | ||
} | ||
##Invoke-Expression "&dotnet new tool-manifest --force" | ||
dotnet tool install docfx --version $DocfxVersion --tool-path "$ToolPath" --output "$ToolPath" | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dotnet tool install |
||
|
||
########################################################################### | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these the settings we're trying to turn on? And don't we want to keep
--warningsAsErrors
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I turn it back, is not working. Let me try another way @Aaronontheweb