working script to generate sphinx structure