Skip to content

Commit d7da8dd

Browse files
authored
Revert DocFX changes (#6738, #6756) (#6759)
* Revert "[FIX][pre][code] CSS problem (#6756)" This reverts commit 37cb4c6. * Revert "[Doc] Upgrade to `Docfx 2.67.0` (#6738)" This reverts commit 66f348a.
1 parent 37cb4c6 commit d7da8dd

File tree

7 files changed

+39
-22
lines changed

7 files changed

+39
-22
lines changed

build.fsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,14 @@ Target "DocFx" (fun _ ->
488488
{ p with
489489
ExcludeVersion = true
490490
Version = "0.1.0-alpha-1611021200"
491-
OutputDirectory = currentDirectory @@ "tools" }) "msdn.4.5.2"
491+
OutputDirectory = currentDirectory @@ "tools" }) "msdn.4.5.2"
492492

493493
let docsPath = FullName "./docs"
494-
let docFxPath = FullName(findToolInSubPath "docfx.exe" "tools/docfx/")
494+
let docFxPath = FullName(findToolInSubPath "docfx.exe" "tools/docfx.console/tools")
495495

496496
let args = StringBuilder()
497497
|> append (docsPath @@ "docfx.json" )
498+
|> append ("--warningsAsErrors")
498499
|> toText
499500

500501
let result = ExecProcess(fun info ->

build.ps1

+7-8
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $FakeVersion = "4.63.0"
3333
$NugetVersion = "5.8.0";
3434
$NugetUrl = "https://dist.nuget.org/win-x86-commandline/v$NugetVersion/nuget.exe"
3535
$ProtobufVersion = "3.21.5"
36-
$DocfxVersion = "2.67.0"
36+
$DocfxVersion = "2.59.4"
3737

3838
$IncrementalistVersion = "0.8.0";
3939

@@ -89,14 +89,13 @@ if (!(Test-Path $ProtobufExePath)) {
8989
###########################################################################
9090

9191
# Make sure Docfx has been installed.
92-
# Make sure the Incrementalist has been installed
93-
if (Get-Command docfx -ErrorAction SilentlyContinue) {
94-
Write-Host "Found docfx. Skipping install."
95-
}
96-
else{
97-
$DocfxExePath = Join-Path $ToolPath "docfx"
92+
$DocfxExePath = Join-Path $ToolPath "docfx.console/tools/docfx.exe"
93+
if (!(Test-Path $DocfxExePath)) {
9894
Write-Host "Installing Docfx..."
99-
dotnet tool install docfx --version $DocfxVersion --tool-path "$DocfxExePath"
95+
Invoke-Expression "&`"$NugetPath`" install docfx.console -ExcludeVersion -Version $DocfxVersion -OutputDirectory `"$ToolPath`"" | Out-Null;
96+
if ($LASTEXITCODE -ne 0) {
97+
Throw "An error occured while restoring docfx.console from NuGet."
98+
}
10099
}
101100

102101
###########################################################################

docs/docfx.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,9 @@
7474
"fileMetadataFiles": [],
7575
"template": [
7676
"default",
77-
"modern",
78-
"template"
77+
"template"
7978
],
8079
"postProcessors": ["ExtractSearchIndex"],
81-
"noLangKeyword": false,
82-
"warningsAsErrors": true,
83-
"Docfx_Git_Timeout": 30000
80+
"noLangKeyword": false
8481
}
85-
}
82+
}

docs/index.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,41 @@ h2:before{
6060
<div class="container">
6161
<!-- FEATURED BOXES 3 -->
6262
<div class="row featured-box-minimal">
63+
6364
<div class="col-md-4 col-sm-6 col-xs-12">
6465
<h4><i class="fa fa-arrows-alt"></i> Simple Concurrency &amp; Distribution</h4>
6566
<p>Asynchronous and Distributed by design. High-level abstractions like Actors and FSM.</p>
6667
</div>
68+
6769
<div class="col-md-4 col-sm-6 col-xs-12">
6870
<h4><i class="fa fa-flash"></i> High Performance</h4>
6971
<p>50 million msg/sec on a single machine. Small memory footprint; ~2.5 million actors per GB of heap.</p>
7072
</div>
73+
7174
<div class="col-md-4 col-sm-6 col-xs-12">
7275
<h4><i class="fa fa-shield"></i> Resilient by Design</h4>
7376
<p>Write systems that self-heal. Remote and/or local supervisor hierarchies.</p>
7477
</div>
78+
79+
7580
<div class="col-md-4 col-sm-6 col-xs-12">
7681
<h4><i class="fa fa-th-large"></i> Elastic & Decentralized</h4>
7782
<p>Adaptive load balancing, routing, partitioning and configuration-driven remoting.</p>
7883
</div>
84+
7985
<div class="col-md-4 col-sm-6 col-xs-12">
8086
<h4><i class="fa fa-plus-circle"></i> Extensible</h4>
8187
<p>Use Akka.NET Extensions to adapt Akka to fit your needs.</p>
8288
</div>
89+
8390
<div class="col-md-4 col-sm-6 col-xs-12">
8491
<h4><i class="fa fa-exclamation"></i> Open Source </h4>
8592
<p>Akka.NET is released under the Apache 2 license</p>
8693
</div>
94+
8795
</div>
96+
<!-- /FEATURED BOXES 3 -->
97+
8898
</div>
8999
</section>
90100
<!-- /WELCOME -->
@@ -93,6 +103,7 @@ h2:before{
93103
<!-- PREMIUM -->
94104
<section class="alternate">
95105
<div class="container">
106+
96107
<div class="row">
97108
<div class="col-md-6">
98109
<h2><strong>Actor</strong> Model</h2>
@@ -101,7 +112,9 @@ The Actor Model provides a higher level of abstraction for writing concurrent an
101112
<p>Actors were defined in the 1973 paper by <a href="http://en.wikipedia.org/wiki/Carl_Hewitt">Carl Hewitt</a> but have been popularized by the Erlang language, and used for example at Ericsson with great success to build highly concurrent and reliable telecom systems.</p>
102113
<p><a href="/articles/intro/what-problems-does-actor-model-solve.html">Read more</a></p>
103114
</div>
115+
104116
<div class="col-md-6 text-center">
117+
105118
<img class="img-responsive img-rounded appear-animation" data-animation="fadeIn" style="border:2px solid white;width:100%;border-radius:10px" src="/images/actor.png" alt="" />
106119
</div>
107120
</div>
@@ -115,6 +128,7 @@ Everything in Akka.NET is designed to work in a distributed setting: all interac
115128
</p>
116129
<p><a href="/articles/Remoting">Read more</a></p>
117130
</div>
131+
118132
<div class="col-md-6 text-center">
119133
<img class="img-responsive img-rounded appear-animation" data-animation="fadeIn" style="border:2px solid white;width:100%;border-radius:10px" src="/images/network.png" alt="" />
120134
</div>
@@ -129,10 +143,10 @@ As a parent, the actor is responsible for handling its children’s failures (so
129143
This enables a clean set of semantics for managing failures in a concurrent, distributed system and allows for writing highly fault-tolerant systems that self-heal.</p>
130144
<p><a href="/articles/concepts/supervision.html">Read more</a></p>
131145
</div>
146+
132147
<div class="col-md-6 text-center">
133148
<img class="img-responsive img-rounded appear-animation" data-animation="fadeIn" style="border:2px solid white;width:100%;border-radius:10px" src="/images/supervision.png" alt="" />
134149
</div>
135150
</div>
136151
</div>
137152
</section>
138-
<div style="height:90px;"></div>

docs/template/styles/main.css

+6
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ ul li::marker{
247247
}
248248

249249

250+
footer{
251+
position: relative !important;
252+
opacity: 1 !important;
253+
display: block !important;
254+
}
255+
250256
.footer{
251257
background: url(/images/footer.png) no-repeat left top, linear-gradient(270deg, #FFFFFF, #6DC9ED);
252258

serve-docs.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# docfx.ps1
2-
$VisualStudioVersion = "17.5.0";
3-
$DotnetSDKVersion = "7.0.203";
2+
$VisualStudioVersion = "15.0";
3+
$DotnetSDKVersion = "2.0.0";
44

55
# Get dotnet paths
66
$MSBuildExtensionsPath = "C:\Program Files\dotnet\sdk\" + $DotnetSDKVersion;
@@ -18,4 +18,4 @@ $env:MSBuildExtensionsPath = $MSBuildExtensionsPath;
1818
$env:MSBuildSDKsPath = $MSBuildSDKsPath;
1919

2020
# Build our docs
21-
& .\tools\docfx\docfx @args
21+
& .\tools\docfx.console\tools\docfx @args

src/Directory.Build.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<Copyright>Copyright © 2013-2023 Akka.NET Team</Copyright>
44
<Authors>Akka.NET Team</Authors>
5-
<VersionPrefix>1.5.7</VersionPrefix>
5+
<VersionPrefix>1.5.4</VersionPrefix>
66
<PackageIcon>akkalogo.png</PackageIcon>
77
<PackageProjectUrl>https://github.com/akkadotnet/akka.net</PackageProjectUrl>
88
<PackageLicenseUrl>https://github.com/akkadotnet/akka.net/blob/master/LICENSE</PackageLicenseUrl>
@@ -40,7 +40,7 @@
4040
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
4141
</PropertyGroup>
4242
<PropertyGroup>
43-
<PackageReleaseNotes>Placeholder for nightlies*</PackageReleaseNotes>
43+
<PackageReleaseNotes>placeholder for nightlies*</PackageReleaseNotes>
4444
</PropertyGroup>
4545
<!-- SourceLink support for all Akka.NET projects -->
4646
<ItemGroup>

0 commit comments

Comments
 (0)