[website] Make the widget work on localhost.
This commit is contained in:
parent
7c2f55b225
commit
300b0688c2
3
Makefile
3
Makefile
|
@ -4,7 +4,8 @@ favicon:
|
|||
node gh-badge.js '' '' '#bada55' .png > web/favicon.png
|
||||
|
||||
website:
|
||||
cat try.html | sed "s,<img src='/,<img src='//img.shields.io/," > index.html
|
||||
cat try.html | sed "s,<img src='/,&/img.shields.io/," \
|
||||
| sed "s,<span id='imgUrlPrefix'>,&http://img.shields.io," > index.html
|
||||
|
||||
deploy:
|
||||
git add Verdana.ttf
|
||||
|
|
|
@ -47,7 +47,7 @@ hr.spacing { border: 0; display: block; height: 3mm; }
|
|||
<h2> Your Badge Service </h2>
|
||||
|
||||
<p>
|
||||
<code><span id="imgUrlPrefix">http://img.shields.io/badge/</span><SUBJECT>-<STATUS>-<COLOR>.svg</code>
|
||||
<code><span id='imgUrlPrefix'>http://img.shields.io/badge/</span><SUBJECT>-<STATUS>-<COLOR>.svg</code>
|
||||
</p><p>
|
||||
Dashes <code>--</code> → <code>-</code> Dash <br/>
|
||||
Underscores <code>__</code> → <code>_</code> Underscore <br/>
|
||||
|
|
2
try.html
2
try.html
|
@ -47,7 +47,7 @@ hr.spacing { border: 0; display: block; height: 3mm; }
|
|||
<h2> Your Badge Service </h2>
|
||||
|
||||
<p>
|
||||
<code><span id="imgUrlPrefix">http://img.shields.io/badge/</span><SUBJECT>-<STATUS>-<COLOR>.svg</code>
|
||||
<code><span id='imgUrlPrefix'>/badge/</span><SUBJECT>-<STATUS>-<COLOR>.svg</code>
|
||||
</p><p>
|
||||
Dashes <code>--</code> → <code>-</code> Dash <br/>
|
||||
Underscores <code>__</code> → <code>_</code> Underscore <br/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user