sphinx_rtd_theme
sphinx_rtd_theme copied to clipboard
Test PR: Use dirhtml builder to see if #1407 works
Testing #1407 with dirhtml
builder enabled
The test indicates that .html
is trimmed. I'm not sure if the Canonical URL on PR builds is supposed to point to the stable branch, but it seems like a good idea to avoid search indexing PR builds.
I am noticing that sphinx itself would have the same issue here: https://github.com/sphinx-doc/sphinx/blob/master/sphinx/themes/basic/layout.html#L132
Probably best to use a mixture of https://www.sphinx-doc.org/en/master/development/templating.html#file_suffix and https://www.sphinx-doc.org/en/master/development/templating.html#pagename
@Blendify responded here: https://github.com/readthedocs/sphinx_rtd_theme/pull/1407#issuecomment-1385266816