Skip to content

Commit

Permalink
Migrate DocumentationProject through SHFB breaking change.
Browse files Browse the repository at this point in the history
  • Loading branch information
CXuesong committed Jan 29, 2022
1 parent 6cae030 commit e72a2b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
9 changes: 5 additions & 4 deletions DocumentationProject/DocumentationProject.shfbproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<RootNamespace>DocumentationProject</RootNamespace>
<Name>DocumentationProject</Name>
<!-- SHFB properties -->
<FrameworkVersion>Cross-platform (.NET Core/.NET Standard)</FrameworkVersion>
<FrameworkVersion>.NET Core/.NET Standard/.NET 5.0+</FrameworkVersion>
<OutputPath>Help\</OutputPath>
<HtmlHelpName>WikiClientLibrary</HtmlHelpName>
<Language>en-US</Language>
Expand Down Expand Up @@ -44,15 +44,16 @@
<ComponentConfig id="API Token Resolution" enabled="True">
<component id="API Token Resolution">
{@TokenFiles}
<replace elements="/*//token" item="string(.)" /></component>
<replace elements="/*//token" item="string(.)" />
</component>
</ComponentConfig>
<ComponentConfig id="Code Block Component" enabled="True">
<component id="Code Block Component">
<basePath value="{@HtmlEncProjectFolder}" />
<outputPaths>{@HelpFormatOutputPaths}</outputPaths>
<allowMissingSource value="false" />
<removeRegionMarkers value="false" />
<colorizer syntaxFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.xml" styleFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.xsl" stylesheet="{@SHFBFolder}PresentationStyles\Colorizer\highlight.css" scriptFile="{@SHFBFolder}PresentationStyles\Colorizer\highlight.js" disabled="{@DisableCodeBlockComponent}" language="cs" tabSize="0" numberLines="false" outlining="false" keepSeeTags="false" defaultTitle="true" />
<colorizer syntaxFile="{@CoreComponentsFolder}Colorizer\highlight.xml" styleFile="{@CoreComponentsFolder}Colorizer\highlight.xsl" stylesheet="{@CoreComponentsFolder}Colorizer\highlight.css" scriptFile="{@CoreComponentsFolder}Colorizer\highlight.js" disabled="{@DisableCodeBlockComponent}" language="cs" tabSize="0" numberLines="false" outlining="false" keepSeeTags="false" defaultTitle="true" />
</component>
</ComponentConfig>
<ComponentConfig id="Syntax Component" enabled="True">
Expand Down Expand Up @@ -105,7 +106,7 @@
<NamingMethod>Guid</NamingMethod>
<HelpTitle>Wiki Client Library</HelpTitle>
<ContentPlacement>AboveNamespaces</ContentPlacement>
<CopyrightText>Copyright %28C%29 CXuesong 2020</CopyrightText>
<CopyrightText>Copyright %28C%29 CXuesong 2022</CopyrightText>
<VisibleItems>Attributes, ExplicitInterfaceImplementations, InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable</VisibleItems>
<HeaderText>
</HeaderText>
Expand Down
11 changes: 1 addition & 10 deletions WikiClientLibrary.Commons/CI/PrepEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ if ($IsLinux) {
if ($SHFB) {
Write-Error "SHFB is not supported on Linux."
}
if (-not (checkDotNetSdkVersions -Channel 2 -ErrorAction Continue)) {
sudo apt install dotnet-sdk-2.1
CheckLastExitCode
checkDotNetSdkVersions -Channel 2
}
if (-not (checkDotNetSdkVersions -Channel 3 -ErrorAction Continue)) {
sudo apt install dotnet-sdk-3.1
CheckLastExitCode
Expand All @@ -61,10 +56,6 @@ if ($IsLinux) {
elseif ($IsWindows) {
# dotnet
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'DotNet-Install.ps1'
if (-not (checkDotNetSdkVersions -Channel 2 -ErrorAction Continue)) {
./DotNet-Install.ps1 -Version 2.1.23
checkDotNetSdkVersions -Channel 2
}
if (-not (checkDotNetSdkVersions -Channel 3 -ErrorAction Continue)) {
./DotNet-Install.ps1 -Version 3.1.10
checkDotNetSdkVersions -Channel 3
Expand All @@ -76,7 +67,7 @@ elseif ($IsWindows) {
# SHFB
if ($SHFB) {
Write-Host "Downloading SHFB."
Invoke-WebRequest "https://github.com/EWSoftware/SHFB/releases/download/v2019.9.15.0/SHFBInstaller_v2019.9.15.0.zip" -OutFile SHFBInstaller.zip
Invoke-WebRequest "https://github.com/EWSoftware/SHFB/releases/download/v2022.1.22.0/SHFBInstaller_v2022.1.22.0.zip" -OutFile SHFBInstaller.zip
New-Item -ItemType Directory SHFBInstaller | Out-Null
Expand-Archive SHFBInstaller.zip SHFBInstaller
Write-Host "Downloading SHFB."
Expand Down

0 comments on commit e72a2b3

Please sign in to comment.