add script to generate idiagrams, display them in docs