docs/generate_rst.py for generating rst files