What would you recommend as a good markup language for writing technical design documentation? Ideally I'd like to have at least the following from it:
- Works well in source control - I'd like to be able to keep the documentation in the repository with the source that it designs
- Able to do UML-ey diagrams and other relevant techniques in the markup - the ability to do class diagrams, code snippits and so forth in the documentation would be useful.
- Ability to generate well laid out documents from the markup easily - so that they can be generated as part of a site build along with API documentation, for example.
AsciiDoc fits on numbers 1 and 3. Docbook and TeX I've not looked into enough yet to know how well they would fit, but I was wondering if there was anything else out there worth investigating...
EDIT: By Technical Documentation, I'm talking docs that are primarily developer facing, and almost certainly not customer facing, but that potentially will be reviewed by team leaders and the like...