-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile for easily rebuilding docs
Also includes a neat target for downloading a supported version of docfx easily.
- Loading branch information
Per Lundberg
committed
Mar 25, 2021
1 parent
a02489c
commit b24e691
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ | |
/**/bin/ | ||
/**/obj/ | ||
_site | ||
docfx/*.dll | ||
docfx/docfx.exe | ||
docfx/docfx.exe.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.PHONY: \ | ||
all docs | ||
|
||
all: docs | ||
|
||
docs: docfx/docfx.exe | ||
./docfx/docfx.exe docs/docfx.json | ||
|
||
# This depends on live-server being available. Install like this (presumed | ||
# Node.js already being available): | ||
# | ||
# npm install -g live-server | ||
docs-serve: | ||
live-server docs/_site | ||
|
||
docfx/docfx.exe: | ||
wget -qO- https://github.com/dotnet/docfx/releases/download/v2.51/docfx.zip | busybox unzip - -d docfx | ||
chmod +x docfx/docfx.exe |
Empty file.