0.1.1 • Published 12 years ago
derby-ui-github-buttons v0.1.1
Derby Github Buttons
A Derby component library for the Unofficial Github Buttons. Refer to their documentation for more details.
Installation
$ npm install derby-ui-github-buttonsIn "lib/app/index.js" include:
app.use(require('derby-ui-github-buttons'));Usage
In your view include:
<ghbtns:button user="psirenny" repo="derby-ui-github-buttons" type="watch" width="100">or better yet:
<ghbtns:button giturl="https://github.com/psirenny/derby-ui-github-buttons.git" type="watch" width="100">Options
countTrue if the count should be shown.domainThe domain hosting the .html file. Defaults to ghbtns.com.filenameThe name of the .html file. Defaults to github-btn.html.fileurlThe url to the .html file. This will overridesecure,domainandfilename.giturlThe url to the repository. This will overrideuserandrepo.heightThe height of the button. The default value depends on the button size.repoThe name of the repository. RequiredsecureTrue if the url should be in https. Defaults to false.sizeThe size of the button.typeThe type of button. RequireduserThe username of the repository owner. RequiredwidthThe width of the button.