Open
Bug 1420216
Opened 8 years ago
Updated 3 years ago
Investigate why images are not showing in Telemetry in-tree docs
Categories
(Firefox Build System :: General, defect, P3)
Firefox Build System
General
Tracking
(firefox59 affected)
NEW
| Tracking | Status | |
|---|---|---|
| firefox59 | --- | affected |
People
(Reporter: Dexter, Unassigned)
Details
An image should be showing at https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/concepts/sessions.html
However, it isn't showing up. Let's investigate why that's happening.
| Reporter | ||
Updated•8 years ago
|
Assignee: nobody → alessio.placitelli
Points: --- → 1
Priority: -- → P1
| Reporter | ||
Comment 1•8 years ago
|
||
Looks like the compiled docs are referencing a wrong path for the image resources. Building the documentation locally works fine and the image source is:
> ../../../../../_images/subsession_triggers.png
On firefox-source-docs, however, it's:
> toolkit/components/telemetry/telemetry/concepts/subsession_triggers.png
It's easy to verify that there's no image in the telemetry/concepts/ directory. However if we try to access
> https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/concepts/../../../../../_images/subsession_triggers.png
which resolves to:
> https://firefox-source-docs.mozilla.org/_images/subsession_triggers.png
The image is loaded, so the static file is definitely there but, for some reason, the online compiled docs are looking into the wrong place.
The code itself seems to look good:
https://dxr.mozilla.org/mozilla-central/rev/c2248f85346939d3e0b01f57276c440ccb2d16a1/toolkit/components/telemetry/docs/concepts/sessions.rst#24
| Reporter | ||
Comment 2•8 years ago
|
||
:gps, are you the right person to ask about this? Do you have any clue why the generated docs are referencing the wrong path? Please note that this was working fine on read-the-docs and is working fine with ./mach doc.
Flags: needinfo?(gps)
Comment 3•8 years ago
|
||
I'm scratching my head with this one.
https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/concepts/sessions.html is using a root relative path in the <img>. But locally the HTML has a ../.. path.
We're not touching the content as part of uploading it. So I have no clue why we're seeing relative paths in automation but not locally. Perhaps something in Sphinx land is looking at a CWD variable or something that isn't properly defined in automation? This is most wonky.
Anyway, this is almost certainly not a problem with the Telemetry docs, so moving the component.
Component: Telemetry → Build Config
Flags: needinfo?(gps)
Product: Toolkit → Core
| Reporter | ||
Comment 4•8 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #3)
> Anyway, this is almost certainly not a problem with the Telemetry docs, so
> moving the component.
Thanks Gregory, I'm untaking this then!
Assignee: alessio.placitelli → nobody
Updated•8 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•