gitgraphjs.com (https://web.archive.org/web/20181222070223/http://gitgraphjs.com/) gives you the building blocks to start working with the JS version but leaves you to put it together. Here's a fully working example to get it running.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/gitgraph.js/1.15.1/gitgraph.css" /> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gitgraph.js/1.15.1/gitgraph.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/domready/1.0.8/ready.js"></script> | |
<script type="text/javascript"> | |
domready(function() { | |
var gitgraph = new GitGraph({ | |
template: "blackarrow", | |
mode: "compact" | |
}); | |
var develop = gitgraph.branch("develop"); | |
develop.commit(); | |
}); | |
</script> | |
</head> | |
<body> | |
<canvas id="gitGraph"></canvas> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment