Skip to content

Commit

Permalink
#104 improve run docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maythamfahmi committed Nov 3, 2024
1 parent 319b725 commit 1344ae2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 10 additions & 5 deletions run_docs.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
## Once
# dotnet tool install -g docfx // install this tool once.
# docfx init -y // already done and configured once.

## Each time
Remove-Item .\api -Recurse
Remove-Item .\_site\. -Recurse
docfx metadata
docfx build .\docfx.json

$Url = "http://localhost:8080"
$ProcId = (Get-Process -Name '*edge*' | Where-Object MainWindowTitle -like "*Summary - Coverage Report*").Id

if ($ProcId) {
Stop-Process -Id $ProcId
}

Start-Process msedge $($Url)

docfx serve _site
5 changes: 5 additions & 0 deletions run_docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Run following to
- install docfx tool once.
dotnet tool install -g docfx
- this is already done in this repo, but in case to start over run following and configured once.
docfx init -y

0 comments on commit 1344ae2

Please sign in to comment.