TechDocs: add gitlab preparer & rewrite default-branch package (#2469)
* add gitlab preparer & rewrite default-branch package * feat(techdocs-backend): rewrite default-branch module
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
LocalPublish,
|
||||
TechdocsGenerator,
|
||||
GithubPreparer,
|
||||
GitlabPreparer,
|
||||
} from '@backstage/plugin-techdocs-backend';
|
||||
import { PluginEnvironment } from '../types';
|
||||
import Docker from 'dockerode';
|
||||
@@ -37,9 +38,11 @@ export default async function createPlugin({
|
||||
|
||||
const preparers = new Preparers();
|
||||
const githubPreparer = new GithubPreparer(logger);
|
||||
const gitlabPreparer = new GitlabPreparer(logger);
|
||||
const directoryPreparer = new DirectoryPreparer(logger);
|
||||
preparers.register('dir', directoryPreparer);
|
||||
preparers.register('github', githubPreparer);
|
||||
preparers.register('gitlab', gitlabPreparer);
|
||||
|
||||
const publisher = new LocalPublish(logger);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user