File tree 1 file changed +2
-6
lines changed
readthedocs/projects/tasks
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 6
6
from readthedocs .builds .models import Build , Version
7
7
from readthedocs .projects .models import HTMLFile , Project
8
8
from readthedocs .projects .signals import files_changed
9
- from readthedocs .proxito .views .utils import allow_readme_html_as_index
10
9
from readthedocs .search .documents import PageDocument
11
10
from readthedocs .search .utils import index_objects , remove_indexed_files
12
11
from readthedocs .storage import build_media_storage
@@ -204,11 +203,8 @@ def _create_imported_files_and_search_index(
204
203
205
204
# Create the imported file only if it's a top-level 404 file,
206
205
# or if it's an index file. We don't need to keep track of all files.
207
- if allow_readme_html_as_index ():
208
- tryfiles = ["index.html" , "README.html" ]
209
- else :
210
- tryfiles = ["index.html" ]
211
-
206
+ # TODO: delete README.html from this list after deprecation.
207
+ tryfiles = ["index.html" , "README.html" ]
212
208
if relpath == "404.html" or filename in tryfiles :
213
209
html_files_to_save .append (html_file )
214
210
You can’t perform that action at this time.
0 commit comments