-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Doc] Upgrade to Docfx 2.67.0
#6738
Conversation
- remove `docfx.console`
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.
Removed docfx.console
@Aaronontheweb
build.fsx
Outdated
|
||
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Unknown option 'Docfx_Git_Timeout'
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Docfx 2.67.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 comment
The reason will be displayed to describe this comment to others. Learn more.
dotnet tool install
I'd work around this issue and do a local install like how we do for Incrementalist: Lines 105 to 113 in c402cc7
We make zero attempts at updating the existing tool - users have to delete their |
build.ps1
Outdated
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
need a sub-folder for this
build.fsx
Outdated
|
||
let args = StringBuilder() | ||
|> append (docsPath @@ "docfx.json" ) | ||
|> append ("--warningsAsErrors") | ||
//|> append ("--Docfx_Git_Timeout") |
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
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.
Looks like you disabled the DocFx settings we wanted to turn on in this PR and 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.
Looks like you disabled the DocFx settings we wanted to turn on in this PR and 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.
LGTM
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.
LGTM
This reverts commit 66f348a.
Fixes #6666
Changes
docfx.console
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):