Reputation: 3414
I have created a Cocoapod - RPUpdatingLabelFramework and added a README.md file. I have added a link (relative path) to an image (part of my repository) in the Readme.md file. When I commit & push my repository to Github - raunakp/RPUpdatingLabel, I can see the image in Github's rendering of my README.md file.
However, I don't see the image in Cocoapod's rendering of my README.md file.
Please check my README.md file at https://github.com/raunakp/RPUpdatingLabel/blob/master/README.md and help me understand what I am doing wrong here?
I want the image to be shown in my Cocoapods description page as well.
Upvotes: 0
Views: 199
Reputation: 5212
You used the relative path screenshot1.png
for the image file. It works for the same repository, but when you try it on a different repository, the image can't be loaded.
See here, the cocoapods repo is trying to get the image from https://cocoapods.org/pods/screenshot1.png
, which does not reflect any image:
You need to replace src="screenshot1.png"
with src="https://github.com/raunakp/RPUpdatingLabel/blob/master/screenshot1.png"
or any absolute path with this image stored in your README.md
file.
Upvotes: 1