1.1.0 • Published 2 years ago
vuepress-plugin-gitgraph-minigram v1.1.0
vuepress-plugin-gitgraph-minigram
VuePress plugin for gitgraph-minigram.
Provides:
markdown-it
notation to draw git commit graph of @gitgraph/js.- web editor powered by CodeMirror 5.
Example site
- Run
npm run example:dev
- Visit online demo
Basic usage
module.exports = {
...
plugins: [
['gitgraph-minigram'],
],
};
Configuration
module.exports = {
...
plugins: [
['gitgraph-minigram', {
fenceName: <string>,
componentName: <string>,
}],
],
};
- The default fence name (value after `
) is
gitgraph
. - The default component is
PluginGitgraphMinigramDefault
.src/components/GitgraphMinigramDefault.vue
Example
## 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: