-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocu.sh
38 lines (30 loc) · 795 Bytes
/
docu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
docuIndexYamlHeader="---
IMPORTANT: This file is generated by \`./docu.sh\`. Please don't edit it manually!
title: FsHttp Overview
index: 1
---
"
readmeContent=$(cat ./README.md)
echo "$docuIndexYamlHeader$readmeContent" > ./docs/index.md
if [ -d ./.fsdocs ]; then
rm -rf ./.fsdocs
fi
dotnet tool restore
dotnet build ./src/FsHttp/FsHttp.fsproj -c Release -f net8.0
# what a hack...
if [ -z "$1" ]; then
mode="build"
else
mode="watch"
fi
dotnet fsdocs \
$mode \
--clean \
--sourcefolder ./src \
--properties Configuration=Release TargetFramework=net8.0 \
--sourcerepo https://github.com/fsprojects/FsHttp/blob/master/src \
--parameters root /FsHttp/ \
--output ./.docsOutput \
--ignoreprojects Test.CSharp.csproj \
--strict