2 Jun 2006

Subversion + Natural Docs + GeSHi

  1. install subversion
  2. install natural docs in /home/naturaldocs
  3. install GeSHi in /home/geshi
  4. create master subversion repository for ALL projects in /home/repo/
  5. create local working copy for processing in /home/src/
  6. copy post-commit script below to /home/repo/hooks/post-commit
  7. chmod 755 /home/repo/hooks/post-commit
  8. 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