I've been playing around with the ML-Doc tools. See http://www.cs.cornell.edu/People/fluet/MLtonLib for some preliminary documentation, just to get a feel for it. It isn't too hard, although there are some corner cases that even these few items have been hitting.