VuePress plugin for gitgraph-minigram.
Provides:
markdown-itnotation to draw git commit graph of @gitgraph/js.- web editor powered by CodeMirror 5.
- Run
npm run example:dev - Visit online demo
module.exports = {
...
plugins: [
['gitgraph-minigram'],
],
};
module.exports = {
...
plugins: [
['gitgraph-minigram', {
fenceName: <string>,
componentName: <string>,
}],
],
};
- The default fence name (value after
```) isgitgraph. - The default component is
PluginGitgraphMinigramDefault.src/components/GitgraphMinigramDefault.vue
## Result
```gitgraph
[log]
git commit -m 'initial commit'
git switch -c feature/1
git commit -m '1'
git commit -m '2'
git checkout master
git merge feature/1
git tag v1.0.0
```
will be rendered as:
