-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Feature flag: remove DONT_CREATE_INDEX #10471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Fail the build when there is no `index.html` at its root directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm OK with this, but I don't have a great sense for how many people this will effect. I generally agree it shouldn't impact many folks, as I can't imagine many real projects not having an index :)
readthedocs/projects/tasks/builds.py
Outdated
"Failing the build. " | ||
"HTML output does not contain an 'index.html' at its root directory.", | ||
) | ||
raise BuildUserError(BuildUserError.BUILD_OUTPUT_HTML_NO_INDEX_FILE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to easily notify users and not fail the build, to start? I feel like we have a pretty good pattern there, if it's easy, and I would like to start doing that any time we remove something that will hard fail a user, to at least give them a heads up with a short duration (eg. 2-4 weeks).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are worried about how many people this will affect, I'd suggest to
- comment this line here
- add a
log.warning
to collect projects on NR - wait some weeks
- send those users an email (following the script pattern) and give them 1 month
- uncomment the line again and deploy the changes
What do you say?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems like a good step 👍
Co-authored-by: Eric Holscher <[email protected]>
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.
…ub.com:readthedocs/readthedocs.org into humitos/feature-flag-dont-create-index-removed
…mitos/feature-flag-dont-create-index-removed
We cannot remove this yet.
OK. I change the code to no fail the build for now, but log it on NR. This will help us to contact the users in a few weeks. I add a reminder in Slack for this. At that day, we can write an email and use the script to send the emails. |
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 noindex.html
file and we will fail the build in that case.Now, if there is no
index.html
at HTML output directory once the build is finished, we fail it and show an error message.Closes #9290
📚 Documentation previews 📚
docs
): https://docs--10471.org.readthedocs.build/en/10471/dev
): https://dev--10471.org.readthedocs.build/en/10471/