首页 > Web开发 > 详细

conding.net或github,readme.md添加图片

时间:2016-03-18 19:52:34      阅读:240      评论:0      收藏:0      [点我收藏+]

原因:
    将图片放在仓库里面,在文件里链接它,最后 push 到 github 上。

github 图片链接格式:
(http://github.com/yourname/your-repository/raw/master/images-folder/xxx.png)

coding 图片链接格式:
(https://coding.net/u/yourname/p/your-repository/git/blob/master/images-folder/xxx.png)


要自己设定的:yourname, your-repository, your-folder, xxx.png。

    yourname            --- 你的帐号
    your-respository --- 你的 project 名
    images-folder      --- 你存放图片的文件夹,如果是直接放在 project 的项目根目录的話,就可以省略這個
    xxx.png                --- 你的图片名

然后在 README.md 里添加:

例如:我在 "wo"的 帐号 > "Beautiful"工程仓库 > master远程分支>根目录里的 screenshots 目录,在该目录里有一个 01.jpg 截图。那么添加链接的方式如下

![image](https://github.com/wo/Beautiful/raw/master/screenshots/01.png)

![image](https://coding.net/u/wo/p/Beautiful/git/blob/master/screenshots/01.png)


原文作者:hhktony    

原文链接:github readme.md 添加图片                                

 

conding.net或github,readme.md添加图片

原文:http://www.cnblogs.com/yidoucai/p/5293222.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!