Feature flag: remove DONT_CREATE_INDEX (#10471)
* Feature flag: remove `DONT_CREATE_INDEX`
Remove the usage of `DONT_CREATE_INDEX` feature flag that only 1 project is
currently using.
Besides, this commit removes the auto-creation of the `index.html` file when
building with MkDocs or Sphinx. We will be checking at "Uploading" status if
there is no `index.html` file and we will fail the build in that case.
* Build: fail the build if HTML output does not contain an `index.html`
Fail the build when there is no `index.html` at its root directory.
* Tests: remove mock for `create_index`
* Update readthedocs/doc_builder/exceptions.py
Co-authored-by: Eric Holscher <25510+ericholscher@users.noreply.github.com>
* Do not fail the build for now
Only collect data of projects without index.html or README.html at the root.
Once we have that data will be contacting those projects to let them know this
is deprecated and will make the builds to fail.
* Keep the generation of `conf.py` in its place
We cannot remove this yet.
---------
Co-authored-by: Eric Holscher <25510+ericholscher@users.noreply.github.com>