Add script to compile design docs (#5315)