-
-
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
Proxito: always check 404/index.hmtml
#9983
Conversation
With the introduction of `build.commands` we cannot use `version.documentation_type` anymore since those versions will be `generic` and we can't skip checking for this file location. Note this commit may add and extra call to S3 API for all the 404 pages where our regular Maze will be shown. However, it removes 2 databsae calls from all the 404 requests. We could only add this extra check on S3 for `version.documentation_type='generic'`, but that would make the code a little more complex and we won't be removing these 2 db queries. Reference: readthedocs/sphinx-notfound-page#215 (comment)
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.
Note this commit may add and extra call to S3 API for all the 404 pages where our regular Maze will be shown. However, it removes 2 databsae calls from all the 404 requests.
Can you explain this a bit more? I don't see the 2 removals.
Overall this is the right approach. Let's just serve what is on the filesystem at either reasonable path, and not try to be magical here.
Do we need to update the docs to note that secondary location?
We are removing the db queries to know the
Yes. Good point. |
I'm interested in `README.html` since we should probably deprecate that "feature"
Oh, database calls, not S3 calls :) That makes more sense. |
Also @benjaoming, note the docs update here. Another point for getting our branch merged into main so we can stop diverging. |
oh there's been quite a lot of those already, I merge |
Two steps ahead! :) |
Wow, no conflicts. Very elegant @humitos 😍 |
With the introduction of
build.commands
we cannot useversion.documentation_type
anymore since those versions will begeneric
and we can't skip checking for this file location.Note this commit may add and extra call to S3 API for all the 404 pages where our regular Maze will be shown. However, it removes 2 databsae calls from all the 404 requests.
We could only add this extra check on S3 for
version.documentation_type='generic'
, but that would make the code a little more complex and we won't be removing these 2 db queries.Reference: readthedocs/sphinx-notfound-page#215 (comment)