We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b37cd9 commit 2f6fe90Copy full SHA for 2f6fe90
readthedocs/restapi/views/footer_views.py
@@ -95,13 +95,8 @@ def footer_html(request):
95
main_project = project.main_language_project or project
96
97
if page_slug and page_slug != 'index':
98
- if (
99
- main_project.documentation_type == 'sphinx_htmldir' or
100
- main_project.documentation_type == 'mkdocs'
101
- ):
+ if main_project.documentation_type == 'sphinx_htmldir':
102
path = page_slug + '/'
103
- elif main_project.documentation_type == 'sphinx_singlehtml':
104
- path = 'index.html#document-' + page_slug
105
else:
106
path = page_slug + '.html'
107
0 commit comments