Get Github Resource Real URL
1、GitHub文件在线访问地址
https://github.com/zhuifengshen/AppSetting/blob/master/settingview.PNG
2、添加获取真实访问地址的参数
https://github.com/zhuifengshen/AppSetting/blob/master/settingview.PNG?raw=true
3、返回文件在GitHub上的真实访问地址
https://raw.githubusercontent.com/zhuifengshen/AppSetting/master/settingview.PNG
4、非master分支的情况
https://github.com/zhuifengshen/zhangchuzhao/blob/gh-pages/img/home-bg-o.jpg
https://raw.githubusercontent.com/zhuifengshen/zhangchuzhao/gh-pages/img/home-bg-o.jpg
5、常见Markown文档示例
picture reference
 # 相对路径图片资源,需要替换
 # 完整路径图片资源,不需要替换


file reference
[parse_xmind.py](example/parse_xmind.py) # 相对路径文件资源,需要替换
[parse_xmind.py](http://example/parse_xmind.py) # 完整文件资源路径,不需要替换
[parse_xmind.py](example/parse_xmind.py)
[parse_xmind.py](https://example/parse_xmind.py)
6、Markdown文档中通过相对路径引用项目中的图片资源
 # 替换前
 # 替换后
7、Markdown文档中通过相对路径引用项目中的文件资源
[parse_xmind.py](example/parse_xmind.py) # 替换前
[parse_xmind.py](https://github.com/zhuifengshen/xmind/blob/master/example/parse_xmind.py) # 替换后
Metadata
Release files for RawGithubURL 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| RawGithubURL-0.1.2.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| RawGithubURL-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / RawGithubURL-0.1.2.tar.gz
| Download URL | RawGithubURL-0.1.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
439eb3b003603913e1fc92b0bb426b1d8c4ac256e6c7029191359f9bdd7b1620
|
|
BLAKE2b-256 checksum How to use checksums |
8fbbe5ce3e02cd74c3fb0720590f16f317f18ee76e8b81e53cb5ef802e44c762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|
Release files / RawGithubURL-0.1.2-py2.py3-none-any.whl
| Download URL | RawGithubURL-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ae75f9d3566218a026f36a1e14b030aa7e4ed4dbd5a10b9c58bfbdf49b16b261
|
|
BLAKE2b-256 checksum How to use checksums |
67a4640173fe73091f0359f6d5691817d3fb8275b9941467865fb17b36df2a53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|