Cleanup a little documentation_type from footer
This doesn't remove documentation_type completely from
the footer, but makes it more clear what we are really using.
We don't use `readthedocssinglehtml` as proven in
We don't set `page` for mkdocs projects:
Ref
@@ -95,13 +95,8 @@ def footer_html(request):
main_project = project.main_language_project or project
if page_slug and page_slug != 'index':
- if (
- main_project.documentation_type == 'sphinx_htmldir' or
- main_project.documentation_type == 'mkdocs'
- ):
+ if main_project.documentation_type == 'sphinx_htmldir':
path = page_slug + '/'
- elif main_project.documentation_type == 'sphinx_singlehtml':
- path = 'index.html#document-' + page_slug
else:
path = page_slug + '.html'
else:
