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

Commit c8c13ec

Browse files
committed
Add serve-apidoc make target
1 parent b2994b4 commit c8c13ec

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
WWW_BROWSER=xdg-open
2+
REALPATH=$(shell \
3+
{ type readlink >/dev/null 2>&1 && echo "readlink -f"; } || \
4+
{ type realpath >/dev/null 2>&1 && echo "realpath"; } || \
5+
echo "echo" \
6+
)
7+
18
default:
29
false
310

@@ -45,3 +52,7 @@ apidoc:
4552
ldoc -d doc/apidoc graphql --all -f markdown
4653
# fix navigation panel width
4754
sed -i -e 's/: 14em;/: 24em;/' doc/apidoc/ldoc.css
55+
56+
.PHONY: serve-apidoc
57+
serve-apidoc: apidoc
58+
$(WWW_BROWSER) "$$($(REALPATH) ./doc/apidoc/index.html)"

0 commit comments

Comments
 (0)