0.0.3 • Published 6 years ago
gitbook-plugin-github-link v0.0.3
gitbook-plugin-github-link
Change the link of the binary file etc. to that of GitHub.
Installation
Adds the plugin to your book.json
, then run gitbook install
if you are building your book locally.
{
"plugins": ["github-link"]
}
Usage
By enclosing it with [[
and ]]
, it recognizes the link.
[[hoge.exe]]
Generate the following html:
<a href="https://github.com/{user_name}/{repo_name}/blob/master/{path_to_hoge.exe}" target="_blank">hoge.exe</a>
Future
- Allow link and display names to be different.
- Add a direct raw link. (https://raw.githubusercontent.com)
- Remove the file which link was changed from the build target of gitbook.