Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add php api doc generation using phpdox

commit a683198439c32096274e1e99906dbe038c81b167 1 parent 4b0f3fa
@avalanche123 authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Makefile
View
6 Makefile
@@ -1,3 +1,5 @@
+SHELL := /bin/bash
+
phar:
phar-build -s ./lib/Imagine -S ./lib/stub.php --phar ./imagine.phar --ns
@echo
@@ -5,3 +7,7 @@ phar:
test:
phpunit tests/
+
+sphinxdocs:
+ @echo "Making docs"
+ git ls-files lib/Imagine | while read line; do DIR=`dirname docs/api$${line/#lib\/Imagine/}`; FILE=docs/api$${line/#lib\/Imagine/}; echo $$DIR; test -d $$DIR || mkdir -p $$DIR && doxphp < $$line | doxphp2sphinx > $${FILE/%.php/.rst}; done
Please sign in to comment.
Something went wrong with that request. Please try again.