Skip to content

Commit caf736a

Browse files
committed
docs
1 parent 8061a56 commit caf736a

12 files changed

Lines changed: 65 additions & 186 deletions

File tree

.config/dotnet-tools.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"commands": [
2020
"aardpack"
2121
]
22+
},
23+
"fsdocs-tool": {
24+
"version": "15.0.0",
25+
"commands": [
26+
"fsdocs"
27+
]
2228
}
2329
}
2430
}

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Docs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- updates
7+
paths:
8+
- RELEASE_NOTES.md
9+
- .github/workflows/docs.yml
10+
docs:
11+
name: Docs
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Install Dotnet
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: '6.0.100'
20+
- name: Restore Tools
21+
run: dotnet tool restore
22+
- name: Paket Restore
23+
run: dotnet paket restore
24+
- name: Build
25+
run: ./docs.sh

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ jobs:
7070
with:
7171
name: packages
7272
path: bin\pack
73-
# - name: NuGet
74-
# env:
75-
# NUGET_KEY: ${{ secrets.NUGET_KEY }}
76-
# shell: cmd
77-
# run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://api.nuget.org/v3/index.json" --skip-duplicate
73+
- name: NuGet
74+
env:
75+
NUGET_KEY: ${{ secrets.NUGET_KEY }}
76+
shell: cmd
77+
run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://api.nuget.org/v3/index.json" --skip-duplicate

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ symbolCache.db
2626
/src/Demo/Fable/fable/
2727
**/node_modules/
2828
/bin/pack
29-
**/.DS_Store
29+
**/.DS_Store
30+
/tmp/
31+
/.fsdocs
32+
/output

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@
1616
"paket-files/": true,
1717
"packages/": true,
1818
"**/BenchmarkDotNet.Artifacts/": true,
19+
".fsdocs": true,
20+
"tmp": true
1921
}
2022
}

docs.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#! /bin/sh
2+
dotnet fsdocs build
3+
URL=$(git remote get-url origin)
4+
git clone --depth 1 -b gh-pages $URL ./doctmp
5+
rm -dfr doctmp/**
6+
cp -R output/** doctmp
7+
cd doctmp
8+
git add .
9+
git commit -m "Update docs"
10+
git push origin gh-pages
11+
cd ..
12+
rm -dfr doctmp
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*** hide ***)
2-
#I "../../bin/Release/netstandard2.0"
2+
#I "../bin/Debug/netstandard2.0"
33
#r "netstandard"
44
#r "FSharp.Data.Adaptive.dll"
55
open FSharp.Data.Adaptive

docs/tools/generate.fsx

Lines changed: 0 additions & 116 deletions
This file was deleted.

docs/tools/packages.config

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)