0.0.3 • Published 6 years ago

gitbook-plugin-github-link v0.0.3

Weekly downloads
1
License
Apache 2
Repository
github
Last release
6 years ago

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.

Author

@Akashi_SN

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago