How do I build a codex.wordpress.org look-alike for private code?

I’m in a development group, and we’re building a bunch of plugins for a closed community site. None of the stuff we make will become public, but I want to set up documentation like codex.wordpress.org.

Any tips on how to do that? Does anyone know if they use special plugins and theme functions for cross references and other smart stuff?