Skip to content

Commit

Permalink
Add Makefile for easily rebuilding docs
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/.gitignore → .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
/**/bin/
/**/obj/
_site
docfx/*.dll
docfx/docfx.exe
docfx/docfx.exe.config
18 changes: 18 additions & 0 deletions Makefile
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 added docfx/.gitkeep
Empty file.

0 comments on commit b24e691

Please sign in to comment.