Skip to content

Commit 1d53098

Browse files
committed
Build docs on GitHub action instead of in AppVeyor
1 parent 2e2e85c commit 1d53098

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+29
-109
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,24 @@ jobs:
2323
run: dotnet build build.proj --configuration Release
2424
- name: Test with dotnet
2525
run: dotnet test build.proj -v n
26+
27+
docs:
28+
runs-on: windows-latest
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Setup .NET Core 6
32+
uses: actions/setup-dotnet@v1
33+
with:
34+
dotnet-version: 6.0.201
35+
- name: Setup .NET Core 5
36+
uses: actions/setup-dotnet@v1
37+
with:
38+
dotnet-version: 5.0.405
39+
- name: Setup .NET Core 3.1
40+
uses: actions/setup-dotnet@v1
41+
with:
42+
dotnet-version: 3.1.416
43+
- name: Restore
44+
run: git submodule update --init --recursive
45+
- name: Build All Docs
46+
run: dotnet msbuild -target:AllDocs build.proj

appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ build_script:
1818
- cmd: dotnet build -c Release ./FSharpPlus.sln
1919
- cmd: dotnet test -c Release tests/FSharpPlus.Tests
2020
- ps: if ($env:VersionSuffix) { dotnet pack build.proj --version-suffix $env:VersionSuffix } else { dotnet pack build.proj }
21-
- ps: ./docsrc/tools/download_nugets.ps1
22-
- cmd: dotnet run -c Release --project ./docsrc/tools
2321
test: off
2422
artifacts:
2523
- path: bin

build.proj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
<Exec Command='dotnet test tests/FSharpPlus.Tests -c Release --logger:trx' WorkingDirectory="$(RepoRootDir)" IgnoreStandardErrorWarningFormat="true" />
1919
</Target>
2020

21+
<!-- dotnet msbuild -target:AllDocs build.proj -->
22+
<Target Name="AllDocs">
23+
<Exec Command='dotnet build FSharpPlus.sln -c Release' WorkingDirectory="$(RepoRootDir)" IgnoreStandardErrorWarningFormat="true" />
24+
<Exec Command='./docsrc/tools/download_nugets.cmd' WorkingDirectory="$(RepoRootDir)" IgnoreStandardErrorWarningFormat="true" Condition=" '$(OS)' == 'Windows_NT' " />
25+
<Exec Command='./docsrc/tools/download_nugets.sh' WorkingDirectory="$(RepoRootDir)" IgnoreStandardErrorWarningFormat="true" Condition=" '$(OS)' != 'Windows_NT' " />
26+
<Exec Command='dotnet run -c Release --project ./docsrc/tools' WorkingDirectory="$(RepoRootDir)" IgnoreStandardErrorWarningFormat="true" />
27+
</Target>
28+
2129
<Target Name="VSTest" DependsOnTargets="Test" />
2230

2331
</Project>

docsrc/content/abstraction-alternative.fsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(*** hide ***)
22
// This block of code is omitted in the generated HTML documentation. Use
33
// it to define helpers that you do not want to show in the documentation.
4-
#I "../../bin"
54

65
(**
76
Alternative

docsrc/content/abstraction-applicative.fsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(*** hide ***)
22
// This block of code is omitted in the generated HTML documentation. Use
33
// it to define helpers that you do not want to show in the documentation.
4-
#I "../../bin"
54

65
(**
76
Applicative

docsrc/content/abstraction-arrow.fsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(*** hide ***)
22
// This block of code is omitted in the generated HTML documentation. Use
33
// it to define helpers that you do not want to show in the documentation.
4-
#I "../../bin"
54

65
(**
76
Arrow

docsrc/content/abstraction-bifoldable.fsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(*** hide ***)
22
// This block of code is omitted in the generated HTML documentation. Use
33
// it to define helpers that you do not want to show in the documentation.
4-
#I "../../bin"
54

65
(**
76
Bifoldable

docsrc/content/abstraction-bifunctor.fsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(*** hide ***)
22
// This block of code is omitted in the generated HTML documentation. Use
33
// it to define helpers that you do not want to show in the documentation.
4-
#I "../../bin"
54

65
(**
76
Bifunctor

docsrc/content/abstraction-bitraversable.fsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(*** hide ***)
22
// This block of code is omitted in the generated HTML documentation. Use
33
// it to define helpers that you do not want to show in the documentation.
4-
#I "../../bin"
54

65
(**
76
Bitraversable

docsrc/content/abstraction-category.fsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(*** hide ***)
22
// This block of code is omitted in the generated HTML documentation. Use
33
// it to define helpers that you do not want to show in the documentation.
4-
#I "../../bin"
54

65
(**
76
Category

0 commit comments

Comments
 (0)