Skip to content
This repository
Browse code

add php api doc generation using phpdox

  • Loading branch information...
commit a683198439c32096274e1e99906dbe038c81b167 1 parent 4b0f3fa
Bulat Shakirzyanov authored October 26, 2011

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  Makefile
6  Makefile
... ...
@@ -1,3 +1,5 @@
  1
+SHELL := /bin/bash
  2
+
1 3
 phar:
2 4
 	phar-build -s ./lib/Imagine -S ./lib/stub.php --phar ./imagine.phar --ns
3 5
 	@echo
@@ -5,3 +7,7 @@ phar:
5 7
 
6 8
 test:
7 9
 	phpunit tests/
  10
+
  11
+sphinxdocs:
  12
+	@echo "Making docs"
  13
+	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

0 notes on commit a683198

Please sign in to comment.
Something went wrong with that request. Please try again.