Only generate docs/index.rst when file is not existing