UNPKG

@nolebase/vitepress-plugin-git-changelog

Version:

A VitePress plugin that adds a changelog fetched from git to your documentation.

22 lines (21 loc) 764 B
import NolebaseGitChangelog from "./components/Changelog.vue"; import NolebaseGitContributors from "./components/Contributors.vue"; import { InjectionKey } from "./constants.mjs"; export { default as NolebaseGitChangelog } from "./components/Changelog.vue"; export { default as NolebaseGitContributors } from "./components/Contributors.vue"; const components = { NolebaseGitChangelog, NolebaseGitContributors }; export * from "./composables/index.mjs"; export const NolebaseGitChangelogPlugin = { install(app, options) { if (typeof options !== "undefined" && typeof options === "object") app.provide(InjectionKey, options); for (const key of Object.keys(components)) app.component(key, components[key]); } }; export { InjectionKey };