ghscard is a JavaScript widget to generate interactive GitHub user/repository/organization cards for static web pages (like GitHub pages/Read the Docs).
Project description
Summary
ghscard is a JavaScript widget to generate interactive GitHub user/repository/organization cards for static web pages (like GitHub pages/Read the Docs).
Demo
Quick Start
CLI Tool Installation
Install ghscard CLI tool from PyPI via pip (Python package manager) command.
pip install ghscard
Generate card data files
Execute ghscard gen command to generate a GitHub user/organization/repository card data file.
$ ghscard gen thombashi -o data [INFO] ghscard gen: written user data to 'data/thombashi.json'
$ ghscard gen Microsoft/TypeScript -o data [INFO] ghscard gen: written repository data to 'data/Microsoft_TypeScript.json'
Add widget to an HTML file
- Example:
<!doctype html> <html> <body> <table border=
"0"> <tr> <td> <div class='ghscard'src='data/thombashi.json'></div> </td> <td> <div class="ghscard"src="data/Microsoft_TypeScript.json"></div> </td> </tr> </table> <script src='//cdn.jsdelivr.net/gh/thombashi/ghscard@master/dist/ghscard.min.js'></script> </body> </html>
The above HTML rendered as follows:
CDN
- Version specific
https://cdn.jsdelivr.net/npm/ghscard@<version>/dist/ghscard.min.js
e.g. https://cdn.jsdelivr.net/npm/ghscard@0.4.1/dist/ghscard.min.js
For more information
More examples are available at https://ghscard.rtfd.io/en/latest/pages/usage/index.html
Dependencies
CLI Tool Dependencies
Python 3.5+
Tested environment
Web browser |
Version |
---|---|
Google Chrome |
57.0 or newer |
Mozilla Firefox |
52.0 or newer |
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ghscard-0.5.3.tar.gz
.
File metadata
- Download URL: ghscard-0.5.3.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0bbed16d16fe6048d6340d7798bfc878f6687c9925cceed376e4b684f9720f7 |
|
MD5 | 87540c86db845afea6a89d105f1d911c |
|
BLAKE2b-256 | d83072e71e81edb178730150c5c7e5b4a0605deb6f22793a571cdf1a57ba776b |
File details
Details for the file ghscard-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: ghscard-0.5.3-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68872f6c6f381b6a3fb71fb42551a6e46eebbe48b21571fd8dc0d16948b20509 |
|
MD5 | adb427f676606563c69e10df4122699d |
|
BLAKE2b-256 | 2c5c2e6920beea628490a6d78f9db2a9a97a295b0e6e907c78fcf25387443404 |