-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Search isn't indexing the index page of nested pages in htmldir builder #5368
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
Comments
Hrm, I thought we fixed this here: https://github.com/rtfd/readthedocs.org/blob/e4966e51a521a5cae44842aa87bb870f59b13b36/readthedocs/projects/models.py#L1149-L1159 |
We shouldn't use doctype anymore :). I think |
How do you figure out if you should check for an HTMLDir path without doctype? I guess we could just try both, but that feels like it would lead to other bugs. |
That's what I want I figure out now. If there isn't a clean way, we have the doctype from the config module in the database (old projects don't have this, but we could create a migration). |
Seems like this should work?
|
Oh, the filename is |
Seems like the logic is broken, and without it it would work 😢 |
Seems like this logic works for everything except the index file... There's some weird edge case here:
|
Yeah, index is the only one affected. |
It's because |
There isn't a |
Right, but both files could lead to the same output file, so there's no way to know which it came from :/ |
This is because HTMLDir can generate a file from two different places: * foo.rst * foo/index.rst Both lead to `foo/index.html` refs #5368
You can test with this project
https://anymail.readthedocs.io/en/latest/search/?q=Sending+email&check_keywords=yes&area=default
There aren't results from this page https://anymail.readthedocs.io/en/latest/sending/
This is kind of related to the doctype that we want to remove #4638 and kind of the same as #5254
In a more minimal example this is more visible, our search returns 0 results and fallback to sphinx.
The explanation is that we try to index the file
sending.fjson
but that file doesn't exists, what we want is to indexsending/index.fjson
The text was updated successfully, but these errors were encountered: