You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document that all internal URLs must be relative #1172
In a site, referring an image with an absolute url, for example, /img/the-image.png, doesn't work. The site interprets it into http://gobblin.readthedocs.io/img/the-img.png but expects http://gobblin.readthedocs.io/en/latest/img/the-img.png. Why is there the part /en/latest injected into the url? I searched through the documentation but didn't find any related configuration.
Semantically, that absolute url should work. The root of the site should be http://gobblin.readthedocs.io/en/latest/ instead of http://gobblin.readthedocs.io/ in this case.
All internal URLs must be relative not absolute. Issue #192 addresses whether we should allow absolute URLs. This could be a duplicate of that; however, I checked the documentation and noticed that while all of the examples use relative URLs, we don't explicitly state that they must be relative. Therefore, I will leave this open to remind us to clarify the documentation regardless of what decision is made in #192.
Activity
waylan commentedon Mar 17, 2017
All internal URLs must be relative not absolute. Issue #192 addresses whether we should allow absolute URLs. This could be a duplicate of that; however, I checked the documentation and noticed that while all of the examples use relative URLs, we don't explicitly state that they must be relative. Therefore, I will leave this open to remind us to clarify the documentation regardless of what decision is made in #192.
[-]image assets absolute url doesn't work[/-][+]Document that all internal URLs must be relative[/+]Refactor writing-your-docs.md (mkdocs#1392)