Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 7c13a3a

Browse files
committed
Add serve-apidoc make target
1 parent 30c64ab commit 7c13a3a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
WWW_BROWSER=$(shell \
2+
{ type xdg-open >/dev/null 2>&1 && echo "xdg-open"; } || \
3+
{ type open >/dev/null 2>&1 && echo "open"; } \
4+
)
5+
16
default:
27
false
38

@@ -45,3 +50,7 @@ apidoc:
4550
ldoc -d doc/apidoc graphql --all -f markdown
4651
# fix navigation panel width
4752
sed -i -e 's/: 14em;/: 24em;/' doc/apidoc/ldoc.css
53+
54+
.PHONY: serve-apidoc
55+
serve-apidoc: apidoc
56+
$(WWW_BROWSER) ./doc/apidoc/index.html

0 commit comments

Comments
 (0)