
Forked from: https://github.com/aleen42/gitbook-footer
a gitbook-plugin for adding footer.
in this part, you can specify a repository and show your latest 8 opened issues or pull requests in a book:
Notice that: because there is a rate limiting for calling GitHub API, so it's suggested to generate a token following the site. In additional, you can only update this part after rebuilding your books!
add the following plugins to your book.json
and run gitbook install
{
"plugins": ["page-footer-liziwl"]
}
just find plugin on gitbook and install it on your gitbook project.
configuration option can be set as an obj like, and of course you can use a default value shown as followed:
{
"plugins": [
"page-footer-liziwl"
],
"pluginsConfig": {
"page-footer-liziwl": {
"description": "modified at",
"signature": "Aleen",
"wisdom": "More than a coder, more than a designer",
"format": "yyyy-MM-dd hh:mm:ss",
"copyright": "Copyright © aleen42",
"timeColor": "#666",
"copyrightColor": "#666",
"utcOffset": "8",
"isShowQRCode": true,
"baseUri": "https://aleen42.gitbooks.io/personalwiki/content/",
"isShowIssues": true,
"repo": "aleen42/PersonalWiki",
"issueNum": "8",
"token": "",
"style": "normal"
}
}
}
npm test
Have an idea? Found a bug? See how to contribute.
MIT © aleen42
Setting | Description | Type | Allowed values |
---|---|---|---|
baseUri
|
String default = https://aleen42.gitbooks.io/personalwiki/content/
|
- | |
copyright
|
Description for your Copyright |
String default = Copyright © liziwl
|
- |
copyrightColor
|
Default color for Copyright |
String default = #666
|
- |
description
|
Description for your modified motion |
String default = modified at
|
- |
format
|
Time format |
String default = yyyy-MM-dd hh:mm:ss
|
- |
isShowIssues
|
show issues list for a github repository |
Boolean default = true
|
- |
isShowQRCode
|
QRCode |
Boolean default = true
|
- |
issueNum
|
String default = 8
|
- | |
repo
|
String default = aleen42/PersonalWiki
|
- | |
signature
|
Author |
String default = Aleen
|
- |
styles (normal, symmetrical)
|
String default = normal
|
- | |
timeColor
|
Default color for modifed time |
String default = #666
|
- |
token
|
String |
- | |
utcOffset
|
Timezone |
String default = 8
|
- |
wisdom
|
Windom |
String default = More than a coder, more than a designer
|
- |
a gitbook-plugin for generating footer
Latest: 1.0.6
1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6,
GitBook | |
---|---|
1.0.6 | >=3.0.0-pre.0 |