-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Tip message for config file when already using it #5909
Comments
Hmm, I think this is a bug, because the build didn't reach the save config step, the config is empty. So rtd thinks it doesn't have a configuration file. Not sure how we can fix this, maybe only show the tip if the build success? |
Can we save the |
Also note that the tip recommends |
I'd like to move this logic out of templates entirely, it's hard to keep in sync with what we do at the model or build process level. We have recently discussed wanting more suggestions -- ie "Pin docutils!" -- and it would help to have a generic way to pass a suggestion or list of suggestions to the templates for display manipulation. Perhaps similar to #3399 it would be fan-fucking-tastic if the build process was able to emit warnings/suggestions as we come across each during the build process. This does complicate modeling around errors/warnings on builds though, so might be a long term goal. An fine middle step between these two is to simply do this at the build detail view level. That is, iterate over all of the suggestions we might emit and evaluate whether the suggestion is valid for a build, adding valid suggestion(s) to the template context. This way we can keep the conditional logic maintained closer to application code, and still abstract the concept of suggestions away from template display. This is a good backend change that someone could take on to help with new templates beta. |
I read this issue and I'm taking into consideration what we have discussed here. I'm preparing a document with my thoughts that we can polish together once I push it. In general, we will be able to create (error, warning, tip) notifications from inside the build process and they will be attached to the |
When the build fails, we are showing a message saying that using a
.readthedocs.yml
is the recommended way, even if the user is already using our config file.The text was updated successfully, but these errors were encountered: