Skip to content

Commit 1550de9

Browse files
committed
Add serve script
1 parent 9f21e60 commit 1550de9

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

serve.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Exit on any error
2+
$ErrorActionPreference = "Stop"
3+
4+
# Run the build script to make sure there's something to serve
5+
.\build.ps1
6+
7+
# Start DocFx serve
8+
dotnet docfx docfx.json --serve

serve.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Run the build script to make sure there's something to serve
6+
./build.sh
7+
8+
# Start DocFx serve
9+
dotnet docfx docfx.json --serve

0 commit comments

Comments
 (0)