SketchUp / sketchup-yard-template

YARD Template used to generate SketchUp Ruby API documentations
MIT License
13 stars 4 forks source link

Update oEmbed, OpenGraph and Twitter Card meta tags with new blue Ruby API icon #22

Open DanRathbun opened 3 years ago

DanRathbun commented 3 years ago

Update oEmbed, OpenGraph and Twitter Card meta tags with new blue Ruby API icon.

The new blue icon url is currently: https://www.sketchup.com/sites/www.sketchup.com/files/developer/ruby.png

What would be a stable URL for this icon ? We are currently using: https://ruby.sketchup.com/images/Ruby.svg

If this icon is changed on the website, then no actual change to the template files will be needed.

DanRathbun commented 3 years ago

DanRathbun: If this icon is changed on the website, then no actual change to the template files will be needed.

Reading a bit more on this. The OpenGraph developers page at Facebook says:

To update an image after it's been published, use a new URL for the new image. Images are cached based on the URL and won't be updated unless the URL changes.

I'm not sure if Discourse also caches OpenGraph images.

In addition, I've come to understand that fallback images can be and should be provided by including multiple "og:image" meta tags. So probably should also include a PNG of the blue Ruby logo as a fallback.