1.3.0 • Published 5 years ago

@olian/github-readme v1.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

github-readme

A custom element that renders the readme of a github repository

<script src="https://unpkg.com/@olian/github-readme"></script>
<github-readme
    user="olian04"
    repository="github-readme"
    ></github-readme>

Click here to see this page rendered using github-readme :smile:

Or click here to see a multi page demo in a jsfiddle

Help me help you:

Install

NPM: npm install @olian/github-readme

CDN: <script src="https://unpkg.com/@olian/github-readme"></script>

Advanced

<github-readme
    user="olian04"
    repository="github-readme"
    branch="master"
    index="/README.md"
    navigation="full"
    bookmarks="[License](/LICENSE);[Demo](/index.html)"
    style=""
    id=""
    class=""
    ></github-readme>
propertydefaultdescription
userThe name of the github user that owns the repository
repositoryThe name of the github repository you want to display
branchmasterThe name of the git branch you want to display
index/README.mdThe path to the index file.
navigationfullnone will hide the navigation bar. history will only show the back, forward and reload buttons. full will show the history navigation as well as a bookmarks row.
bookmarksOptional bookmarks provided in the form of a simecolon separated string of markdown links. [TITLE](LINK);[TITLE](LINK);[TITLE](LINK)
styleOptional styles passed down to the top most element of the component.
idOptional id passed down to the top most element of the component.
classOptional class passed down to the top most element of the component.

Note: github-readme uses unauthenticated requests to the github api and is there for limited by its rate limiting rules.

For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests.

License

See Licence

1.3.0

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago