RawGithubURL基于Python实现,用于获取GitHub资源文件的真实访问地址和自动转换Markdown文档中相对路径的资源引用,支持外网访问
Project description
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) # 替换后
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
RawGithubURL-0.1.1.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RawGithubURL-0.1.1.tar.gz.
File metadata
- Download URL: RawGithubURL-0.1.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dd60f9e169b027c2ebcce4dc7208eba38dc88cacd392d33057966d452db41d9
|
|
| MD5 |
23d441b7e9ff2779cdbd3f4e83026525
|
|
| BLAKE2b-256 |
adebaa0dc36d147df784b44903b5d2dc07407ae2138bd1237162d84186cb5051
|
File details
Details for the file RawGithubURL-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: RawGithubURL-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51f2ce6dfb68613a1c696d71db88c9114c5d21b844abe9cbbfc9fbb154ebf4bb
|
|
| MD5 |
dde9f8b3637e1851ad29913f57467fb1
|
|
| BLAKE2b-256 |
b5825ebac6dd3f9fc521de07b2141fdb48ddeec1bd4df4fded919b3305a6e676
|