Workaround for dirhtml builder with wrong canonical URLs#1407
Workaround for dirhtml builder with wrong canonical URLs#1407benjaoming wants to merge 6 commits intoreadthedocs:masterfrom
Conversation
0978285 to
7dfccd0
Compare
7dfccd0 to
b8a4d88
Compare
2f1b2ec to
55600c0
Compare
…r was used (retry with GPG signature)
55600c0 to
6beecce
Compare
ericholscher
left a comment
There was a problem hiding this comment.
This seems like a reasonable approach, but I'd like to see a test if we're going to implement this. Seems enough enough to have a test case that sets the canonical URL via sphinx?
|
@ericholscher yes, agreed -- I would think that setting I don't think this needs to be a roadmap item for 1.2.0 but would be nice to publish it sooner or later. |
|
I'm going to leave this for a little while - but I don't think it's hard to add a test dimension in Tox that parameterizes |
|
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 |
|
@Blendify this is just a workaround :) You'll find the upstream issue here: sphinx-doc/sphinx#9730 |
humitos
left a comment
There was a problem hiding this comment.
I think this is a good workaround for now. We should merge it and release a patch version.
|
Thanks for this, @benjaoming, @humitos. This would indeed help with #1303 for now! |
Fix for #1406
index.htmlbeing converted toindex/(will test manually since canonical URL does not seem to appear in local builds)