Skip to content

Commit

Permalink
docs: add API docs config/generation make target
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaschen committed Aug 18, 2016
1 parent da5a59a commit 5dd441c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/composer.lock
/vendor/
/docs/phpgeo.html
/docs/api/
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
.PHONY: docs
.PHONY: apidocs
.PHONY: clean


docs: docs/phpgeo.html
docs: docs/phpgeo.html apidocs

docs/phpgeo.html: docs/phpgeo.adoc docs/piwik.html
asciidoctor $<
awk '/<\/body>/ { system("cat docs/piwik.html") }; {print} ' $@ > $@.tmp
mv $@.tmp $@

apidocs:
yes | apigen generate

clean:
rm -f docs/phpgeo.html
rm -Rf docs/api
7 changes: 7 additions & 0 deletions apigen.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source:
- ./src
destination: ./docs/api
deprecated: true
todo: true
tree: true
title: "phpgeo - A Simple Geo Library for PHP"

0 comments on commit 5dd441c

Please sign in to comment.