- Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathbuild-apidocs.sh
17 lines (13 loc) · 640 Bytes
/
build-apidocs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
set -o errexit # Exit the script with error if any of the commands fail
if [ -z"$PACKAGE_VERSION" ];then
PACKAGE_VERSION=$(bash ./evergreen/get-version.sh)
echo Calculated PACKAGE_VERSION value: "$PACKAGE_VERSION"
fi
echo"Configure dotnet cli to use local manifest"
dotnet new tool-manifest --force
echo"Installing docfx tool"
dotnet tool install docfx --version "2.74.1" --local --verbosity q
echo"Building the api-docs"
dotnet tool run docfx metadata ./apidocs/docfx.json --property ProduceReferenceAssembly=true
dotnet tool run docfx build ./apidocs/docfx.json -o:./artifacts/apidocs/"$PACKAGE_VERSION"