File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 15
15
from readthedocs .builds .constants import LATEST , TAG
16
16
from readthedocs .builds .models import Version
17
17
from readthedocs .core .utils .extend import SettingsOverrideObject
18
+ from readthedocs .projects .constants import MKDOCS , SPHINX_HTMLDIR
18
19
from readthedocs .projects .models import Project
19
20
from readthedocs .projects .version_handling import (
20
21
highest_version ,
@@ -147,7 +148,7 @@ def _get_context(self):
147
148
page_slug = self .request .GET .get ('page' , '' )
148
149
path = ''
149
150
if page_slug and page_slug != 'index' :
150
- if version .documentation_type == 'sphinx_htmldir' :
151
+ if version .documentation_type in { SPHINX_HTMLDIR , MKDOCS } :
151
152
path = re .sub ('/index$' , '' , page_slug ) + '/'
152
153
else :
153
154
path = page_slug + '.html'
You can’t perform that action at this time.
0 commit comments