golang/gddo

Talks doesn't support .background

nezorflame opened this issue ยท 13 comments

Host any present slide with .background image.
It won't be shown for your presentation.
Other images seem to work fine.

Is this a bug or feature?

Is this an issue with the present command? Or just talks.godoc.org?

Background works fine when present is launched locally.

I'm seeing this too. There seems to be some re-processing of presentations happening which is not re-mapping .background URLs to point at github instead. See

gddo/gosrc/present.go

Lines 37 to 39 in 9d8ff1c

case "iframe", "image":
data = append(data, b.data[i:m[4]]...)
data = append(data, b.resolveURL(name)...)

Looks like this would not be too hard to fix.

@nezorflame (or anyone else), do you know of a sample talk that has a slide with .background that can be used to reproduce the bug?

@mmcloughlin I read it and tested it locally, everything works fine on my workstation.

The new version is deployed now, so .background should be working. Thank you for the contribution!

Thank you @dmitshur . It now works fine on the public URL of my slideshow.

We can also test this with the sample presentation that was also included in the CL. This was intended to exercise all possible features of the present tool.

https://talks.godoc.org/github.com/golang/gddo/gosrc/testdata/sample.slide

We do indeed see the .background correctly, however it seems the the vector graphic is broken.

I'm getting a 403 from https://rawgit.com/golang/gddo/master/gosrc/testdata/gopher.svg

https://rawgit.com says "RawGit has reached the end of its useful life".