gitbook-plugin-amazon-jp-link
Generate a link for amazon.co.jp.
Installation
Adds the plugin to your book.json
, then run gitbook install
if you are building your book locally.
{
" plugins " : [ " amazon-jp-link " ]
}
Usage
Generate Link tag
{% AmazonJpLink "B01N59VNQY", "johndue-22" %}macOS Sierra{% endAmazonJpLink %}
Generate the following html:
< a href = " http://www.amazon.co.jp/gp/product/B01N59VNQY/ref=as_li_qf_sp_asin_il?ie=UTF8&camp=247&creative=1211&creativeASIN=B01N59VNQY&linkCode=as2&tag=johndue-22 " target = " _blank " >
macOS Sierra
</ a >
< img src = " http://www.assoc-amazon.jp/e/ir?t=johndue-22&l=as2&o=9&a=B01N59VNQY " width = " 1 " height = " 1 " border = " 0 " alt = " " style = " border:none !important; margin:0px !important; " >
Generate Image tag
{% AmazonJpImage "B01N59VNQY", "johndue-22", "150" %}macOS Sierra{% endAmazonJpImage %}
Generate the following html:
< a href = " http://www.amazon.co.jp/gp/product/B01N59VNQY/ref=as_li_qf_sp_asin_il?ie=UTF8&camp=247&creative=1211&creativeASIN=B01N59VNQY&linkCode=as2&tag=johndue-22 " target = " _blank " >
< img border = " 0 " src = " http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&ASIN=B01N59VNQY&Format=_SL300_&ID=AsinImage&MarketPlace=JP&ServiceVersion=20070822&WS=1&tag=johndue-22 " width = " 150 " style = " float: left; margin: 0 20px 20px 0; " />
</ a >
< img src = " http://www.assoc-amazon.jp/e/ir?t=johndue-22&l=as2&o=9&a=B01N59VNQY " width = " 1 " height = " 1 " border = " 0 " alt = " " style = " border:none !important; margin:0px !important; " >
Development
Test for plugin
Test your plugin · GitBook Toolchain Documentation