I would advise using a wiki. Wikis fit well the programmers mental model as their main concept of editing "source" code that is compiled into a "machine" language (HTML). What wiki to use will depend on your favorite language or concepts. I use Foswiki http://foswiki.org (although I hate perl), because you can mix html/css/javastrict with the wiki syntax, and it has no database so I can hand edit easily the pages in emacs or use various shell hacks on them. But many nice wikis exist, for intance moinmoin is a nice one for python lovers.
I maintained my site with hand edited html, then I wrote a template engine for it, but for one year I have just ported everything on Foswiki (Foswiki is the active fork of TWiki), and have no regret. And if I want to add features, I can code plugins to it, use other people plugins.
I maintained my site with hand edited html, then I wrote a template engine for it, but for one year I have just ported everything on Foswiki (Foswiki is the active fork of TWiki), and have no regret. And if I want to add features, I can code plugins to it, use other people plugins.