[tahoe-lafs-trac-stream] [tahoe-lafs] #1828: Problem with linked images' display in rst docs from trac
tahoe-lafs
trac at tahoe-lafs.org
Thu Feb 13 18:10:37 UTC 2014
#1828: Problem with linked images' display in rst docs from trac
-------------------------+--------------------------
Reporter: mk.fg | Owner: zooko
Type: defect | Status: assigned
Priority: minor | Milestone: undecided
Component: website | Version: n/a
Resolution: | Keywords: website docs
Launchpad Bug: |
-------------------------+--------------------------
Comment (by daira):
Replying to [comment:20 daira]:
> I'm going to try doing the nginx rewrite again.
I added this redirect which does what I intended:
{{{
rewrite ^/trac/tahoe-lafs/browser/trunk/(.*)[.]svg /trac/tahoe-
lafs/export/HEAD/trunk/$1.svg redirect;
}}}
but it still doesn't work, I think because we're now using Trac 1.0, which
renders the rst images to HTML like this:
{{{
<object data="file-encoding1.svg" type="image/svg+xml">
file-encoding1.svg</object>
}}}
This ends up just displaying as the text "file-encoding1.svg", even though
the relative URL in the {{{data}}} attribute is pointing to the
[source:docs/specifications/file-encoding1.svg correct raw file].
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1828#comment:21>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list