Skip to content

Commit 903f00e

Browse files
committed
Add docs target to Makefile.
This target creates a public directory containing the generated HTML files for goa godoc.
1 parent 1a35e4d commit 903f00e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ DEPEND=\
3636

3737
all: depend lint cyclo goagen test
3838

39+
docs:
40+
@git clone https://github.com/goadesign/goa.design
41+
@rm -rf goa.design/content/godoc goa.design/public
42+
@mdc github.com/goadesign/goa goa.design/content/godoc --exclude goa.design
43+
@cd goa.design && hugo --theme goa
44+
@rm -rf public
45+
@mv goa.design/public public
46+
@rm -rf goa.design
47+
3948
depend:
4049
@go get $(DEPEND)
4150

0 commit comments

Comments
 (0)