Skip to content

L3au/gitbook-plugin-git-author

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitbook-plugin-git-author

This is a plugin for automatically adding author and timestamp to each gitbook article, including creator and last modified user from git commits

Example

README.md file

Be sure to commit this file to git repository

# Title of the Article content

Output

<h1>Title of the Article</h1> <p>content</p> <div class="git-author-container"> <div class="modified">Last modified by someone 2016-06-06 06:06:06</div> <div class="created">Created by someone 2016-06-06 06:06:06</div> </div>

Usage

install

npm i -D gitbook-plugin-git-author

book.json

{ "plugins": ["git-author"] "pluginsConfig": { "git-author":{ "modifyTpl": "Last modified by {user} {timeStamp}", "createTpl": "Created by {user} {timeStamp}", "timeStampFormat": "YYYY-MM-DD HH:mm:ss" } } }

hide creator

"createTpl": false 

custom styles

book.json

{ "styles": { "website": "./website.css" } }

website.css

.git-author-container { font-size: 85%; } 

About

A gitbook plugin to show git author info

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •