Subversion + Natural Docs + GeSHi
- install subversion
- install natural docs in /home/naturaldocs
- install GeSHi in /home/geshi
- create master subversion repository for ALL projects in /home/repo/
- create local working copy for processing in /home/src/
- copy post-commit script below to /home/repo/hooks/post-commit
- chmod 755 /home/repo/hooks/post-commit
-
TODO: show PHP script using GeSHi to highlight the source in /home/src
#!/bin/sh
# Update local working copy
svn update /home/src
# Normalize line endings using zip hack (Flash OS X bug)
zip -uqr /home/src/src.zip /home/src/* -i \*.as && unzip -d / -aqo /home/src/src.zip
# Generate documentation
/home/naturaldocs/NaturalDocs -i /home/src -o HTML /var/www/html/docs -p /home/ndinfo