generate_robots_txt#
- documenteer.ext.robots.generate_robots_txt(app, exception)#
Generate a robots.txt file automatically if conditions are met.
- Parameters:
- Return type:
Notes
This function is called during the build-finished Sphinx event. It generates a robots.txt file if:
No robots.txt file already exists in the output directory
A sitemap.xml file exists in the output directory
The html_baseurl configuration is set