Diagrams and revisions in code docs